Hello everyone,

On this windows shared hosting server which was purchased by a client, I am running into these errors about 75% of the time I click. I have googled for a long time (few days) now, and I'm really stuck. I called the host, but they are completely clueless and uninformed about what they are doing. They didn't even know what SSH is.

These errors did not exist on my own VPS, only began after I moved it to this Chinese server.

Anyway, these are the errors it is posting with just a white screen:

Notice: Constant DRUPAL_ROOT already defined in D:\___\index.php on line 17

Fatal error: Cannot redeclare class SchemaCache in D:\___\includes\bootstrap.inc on line 2761

Googling only reveals things from D5, and those issues seemed to just have worked themselves out in updates.

Comments

TheLuckys’s picture

I'm having exactly the same problem, but my problems started when trying to solve another problem discussed here: http://drupal.org/node/1275776. Basically, I enabled the Comment module and then changed the Comment display to hidden for the Basic page content type. Directly after saving, the error described above popped up.
I too am running Drupal on a Windows shared hosting server.

hedroom’s picture

Clearing the cache fixed this to me... (that is if you can get to the tables in some way)

TRUNCATE TABLE `cache`;
TRUNCATE TABLE `cache_bootstrap`;
TRUNCATE TABLE `cache_field`;
TRUNCATE TABLE `cache_filter`;
TRUNCATE TABLE `cache_form`;
TRUNCATE TABLE `cache_image`;
TRUNCATE TABLE `cache_menu`;
TRUNCATE TABLE `cache_page`;
TRUNCATE TABLE `cache_path`;
TRUNCATE TABLE `cache_token`;
TRUNCATE TABLE `cache_update`;

Not all of these cache tables may exist in your installation and there may be some not listed here...

Wade

hedroom’s picture

I should note that I had this problem again and clearing the cache did not fix things this time. So, I re-started IIS (I'm running IIS6) and the error stopped happening.

I should also note that PHP threw a memory error just before this started happening:

PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 290982 bytes) in C:\Inetpub\...\phpmyadmin\libraries\url_generating.lib.php on line 261

I don't know if the error was related but it was what prompted me to re-start IIS (and PHP).

Hope this helps...

Wade