At

http://www.site.org/a/?q=admin/build/themes/settings/garland

If any setting in the Color scheme is changed, the entire site goes blank.

The content is still there, although the theme is lost.

Comments

untrammelled’s picture

I have this problem too (Drupal 6.6), though only on my hosted website - the local copy works fine.

Changing the colour scheme in Garland or Minnelli to anything other than default causes the problem. Changing the colour scheme in Garland gives these messages:



    * The configuration options have been saved.
    * The directory files/color/garland-0a8ed4c1 has been created.

(after the change from /sites/default/files to /files - see below) and these errors:



    * warning: chdir() [function.chdir]: open_basedir restriction in effect. File(/home/wsymuk/public_html) is not within the allowed path(s): (/home/wsymuk/public_html/) in /home/wsymuk/public_html/includes/common.inc on line 1878.
    * warning: array_keys() [function.array-keys]: The first argument should be an array in /home/wsymuk/public_html/modules/color/color.module on line 138.
    * warning: array_shift() [function.array-shift]: The argument should be an array in /home/wsymuk/public_html/modules/color/color.module on line 139.
    * warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/wsymuk/public_html/) in /home/wsymuk/public_html/includes/file.inc on line 756.
    * The file could not be created.
    * warning: array_keys() [function.array-keys]: The first argument should be an array in /home/wsymuk/public_html/modules/color/color.module on line 138.
    * warning: array_shift() [function.array-shift]: The argument should be an array in /home/wsymuk/public_html/modules/color/color.module on line 139.
    * warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/wsymuk/public_html/) in /home/wsymuk/public_html/includes/file.inc on line 756.
    * The file could not be created.

Perhaps some script has a path problem (using /home/wsymuk/public_html/ instead of /)? The full path would work on my local machine (/var/www/wsymuk on a Debian Etch installation), but perhaps not on the hoster's server.

I have tried upping the php memory limit to 32Mb and changing the files directory from /sites/default/files to /files. The problem persists, the only difference being that, using /files, the default theme remains when the theme is reconfigured rather than the theme being lost all together.

Regards,
Chris.

dave reid’s picture

It sounds like you might have PHP's safe mode enabled, and it is recommended that it be turned off.

untrammelled’s picture

I don't think that this is caused by PHP safe mode. Here is part of the output from phpinfo() run on my hoster's server:

safe_mode	Off	Off
safe_mode_exec_dir	no value	no value
safe_mode_gid	Off	Off
safe_mode_include_dir	no value

Regards,
Chris.

anti_de’s picture

Status: Active » Closed (won't fix)

hi guys,

i discovered the same problem in my drupal installation and found this thread with google, but I finally found a solution.

I checked my apache error log just after I changed the color and found many of these lines:

[Wed Jan 21 16:30:05 2009] [alert] [client 195.24.77.134] /home/www/web0/html/drupal/sites/default/files/.htaccess: Options not allowed here,
[..]

so you have to enable the .htaccess files in your server configuration.
see Clean Urls http://drupal.org/node/15365

So its not a bug, is a configuration problem.
by the way, php safe mode is also disabled on my server.

regards,
stefan