Hello everyone, I have been using durpal for a few months, I am not a complete noob, but I am nowhere near an expert either. I tried to install the CCK module but when I was enabled it, the modules page in my admin panel was blank. I then removed the CCK folder and it was back up to normal. Then I went to look for why this is so and got a page that said my php memory might need to be increased. I went into the settings.php section and added the code ini_??(.... '16') something like that I copied and pasted it. Then when I viewd my site the theme was completely gone and I had these errors:

warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/favicon.ico) is not within the allowed path(s): (/var/www/vhosts/mydomain.com/httpdocs:/tmp) in /var/www/vhosts/mydomain.com/httpdocs/drupal/includes/theme.inc on line 945.
warning: array_map() [function.array-map]: Argument #2 should be an array in /var/www/vhosts/mydomain.com/httpdocs/drupal/modules/system/system.module on line 975.
warning: array_keys() [function.array-keys]: The first argument should be an array in /var/www/vhosts/mydomain.com/httpdocs/drupal/includes/theme.inc on line 1728.
warning: Invalid argument supplied for foreach() in /var/www/vhosts/mydomain.com/httpdocs/drupal/includes/theme.inc on line 1728.

If anyone can help me restore my site please make a post...

Bejii

Comments

bwv’s picture

Did you try removing the line you added to settings.php?
----------------------------------------------------------------------
http://classicvinyl.biz
http://music.bwv810.com
http://association.drupal.org/user/1207

bejii’s picture

Ok I have solved the problem, the removing line did not work, that is what gave me the message to begin with. Somehow drupal has removed my themes, when I logged in and set the settings everything was fine. Everything is back to normal and I am back at the CCK problem...I can't install it for some reason, when I try I get a blank module screen.

Malthus’s picture

The Drupal settings are probably getting messed up when you see the blank screen. If PHP is running out of memory, the page load will be halted in the midst of execution. Then when you increased the memory limit, the errors you saw could just have been the result of the what happened when you saw the blank screen, and not as a result of increasing the memory limit.

Try increasing the PHP memory limit again. And then try to fix the site settings. You might want to enable (on-screen) error logging in your PHP config so that you can see what error PHP actually encounters instead of seeing a blank screen and guessing at the problem.

bejii’s picture

Wow, I swore I had a post here but I guess it did not go through. It is solved, ubercart was causing the problem, you need to install cck editor before installing ubercart and then you are set.

Thanks for the help.