User login

Problem

Bringing a stressed Drupal site back to its feet

Before and after restart:

0 stedile:~# free
total used free shared buffers cached
Mem: 1343636 1309280 34356 0 1856 29692
-/+ buffers/cache: 1277732 65904
Swap: 524280 513244 11036
0 stedile:~# free
total used free shared buffers cached
Mem: 1343636 164676 1178960 0 7264 98000
-/+ buffers/cache: 59412 1284224
Swap: 524280 3992 520288

Debian server not sending mail to recipients that share its domain name

In Agaric's case for this server, mail for the domain was in fact being handled elsewhere. The problem was the server thought it should do it, so it caught all the mail with its domain name and squashed it, saying "there's no user by this name."

Jan 8 11:01:31 stedile postfix/local[28262]: A35D064CFD: to=<Herrera@example.net>, orig_to=, relay=local, delay=0.12, delays=0.05/0.01/0/0.06, dsn=5.1.1, status=bounced (unknown user: "herrera")

Taxonomy_term_count_nodes gives stupid results when child terms have same nodes

The Drupal core function in taxonomy.module, taxonomy_term_count_nodes, has no check in it to remove duplicate nodes, which can happen in situations where a nodde belongs to both a child and a parent. In my opinion there should be a different function taxonomy_term_and_children_count_nodes or a flag in the function to say if nodes belonging to children terms should be counted at all, and if they are, there should be proper checking to remove duplicates.

GMap not showing up (markers and controls, but map is gray) due to validation errors

This problem is only in IE6, because it's evil.

First thing noticed: while the background was gray, and not a map, a single click to change the map style (road map, geo, or hybrid) the map would instantly appear.

http://wsf.grassrootsconnection.org/eng/view/map

So with the theme changed to bluemarine, the map shows up.

Return path module (working edition)

Due to poor reading of the issue queue AND not looking for the HEAD release, I (accidentally?) coded the fix to this myself. But actually both head and the official release are broken in different ways, so here's Agaric's service to the community.

Presumably the official version at http://drupal.org/project/returnpath will be working soon (version 5.x-1.1 does NOT), but until then here's a working download.

Parse syntax error unexpected T_SL caused by Subversion conflict

You caused a conflict in your template.php

so the status on SVN was set to "C"

apparently that means the conflict only exists in that local checkout? Did you edit directly on the server?

Anyway, whatever happened, I do SVN update on my checkout of the repository, look at line 464

as the error message is Parse error: syntax error, unexpected T_SL on line 464

and everything is fine

but if I look at the file directly on the server, even though it is up to date (but giving that C flag)

Increase PHP allowed memory size limits

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 842489 bytes) in /var/www/wsf2008/includes/database.mysql.inc on line 380

If you have control of your own host:

ben@server:~$ sudo vi /etc/php5/apache2/php.ini

/Resource Limits plus RETURN to search
i to edit

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

AND/OR logic error in Userreference Access function

OK, the problem is definitely in this function. I'll get back to it in a little bit, but it may make enough sense for you to correct where an OR isn't doing what I think it should. I'm dyslexic and I swear that's why I can't do a damn thing with ANDs and ORs.

Upload limit for account reached, how do I increase?

tried uploading banner but got error "The selected file fstvbanner2.jpg can not be attached to this post, because the disk quota of 1 MB has been reached."

please make it so I can do this, remove all restrictions like this for my account

Resolution

In Drupal 5, go to:

Administer » Site Configuration » File Uploads
admin/settings/uploads

And set max uploads in general and per user role there:

Default maximum file size per upload: MB
The default maximum file size a user can upload.

Syndicate content