Drupal errors and warnings

2010/07/31 - 20:15

The continuing story of how Drupal insists in screwing up one's life.

2015-03-10

 

2010/07/31

For most various reason Drupal can (and will!) unexpectedly generate warning and error messages, even if you thought you did it all ok.Here I start my collection of stupid problems that take away hours even if you are doing everything correctly:

SAFE MODE restriction * warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 10023 is not allowed to access /var/www/vhosts/shiclubs.org.uk/httpdocs/files owned by uid 48 in /var/www/vhosts/shiclubs.org.uk/httpdocs/includes/file.inc on line 117.

Safe mode should be off for Drupal to work correctly. But even some Drupal hosts don't seem to know, or care.... http://drupal.org/node/182058 http://drupal.org/node/655992 http://drupal.org/node/170675 Access denied for anonymous users Suddenly for no reason you can find your drupal website, that a moment ago was doing all well, denying access to anonymous users. For many maybe the biggest group of visitors they have, if not all! http://drupal.org/node/338940 In my case all user-permissions were set (in fact was working all well instances before) flushed, cronned, upddated and still not working.

Caches

Caches are used to decrease serverload you find them for menus, css, js, gmap, images and page content. They are also used to drive you insane. Because many times you find cache doesn't work. And you get a lot of unable to write to directory errors. This writing to a directory is managed through FTP where you can set CHMOD permissions (not the same as the user permissions in drupal admin). But there is no list of these permissions and everybody just seem to try until they decide to give ALL permissions (chmod 777) to the directories under sites/default/files. That is if you're lucky, if your host will let you set those permissions. Some don't. Another popular directory for problems is the tmp directory, or was it the /tmp??? Nobody seems to know. Anyway, that one to will end up with a 777 too after several hours of trying. Creating custom php.ini http://drupal.org/node/290592 Gmap stuff http://drupal.org/node/390130 changing web hosts http://www.webhostgear.com/29.html