I've just moved a copy of a sister site from a dedicated server in China to a development server in my office in Hong Kong and plan to develop the site in a different direction on the development server and rebrand it.

I've copied the drupal folder from the server in China using ftp access and placed it in my xampp installation on the windows 2003 server in my office and put the drupal folder in htdocs. I've uploaded the database to MySql and changed the settings file to point to the database.

When i run the site on the development server everything looks fine - navigation works and content is all there. I can access admin and make changes to everything but when I try to access blocks I get this error message:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 77502 bytes) in C:\xampp\htdocs\drupal\includes\theme.inc on line 808

Also when I try to access menu I get this error message:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 268240 bytes) in C:\xampp\htdocs\drupal\modules\menu\menu.module on line 628

I've tried switching on and off modules, reinstalling the database, reinstalling drupal but nothing seems to help. The sister site admin works fine and the sites are identical apart from the server set ups

Anyone our there with server experience have any suggestions or ideas that might help? I've been tring to sort this problem out myself for a while but have now drawn a blank. i'm not a server person so it might be some simple setting that I'm missing.

If this is the wrong forum for this request I apologise.

Comments

tm’s picture

just a stab...

you probably need to increase the amount of RAM allocated to php (better described here). guessing that you need about 40 or 48mb, for a little head room; the more, the better. don't forget to restart the server, or at least the web server.

good luck!

kevancummins’s picture

Hi tm

Thanks for the stab - I checked the setting and it was already quite high - 32MB. I moved this up to 48mb and restarted the server but still get an error message

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 77502 bytes) in C:\xampp\htdocs\drupal\includes\theme.inc on line 808

Any other suggestions welcomed :)

tm’s picture

looks like it is not seeing the 48mb setting. may i ask what phpinfo says is the allocated ram? have had problems where i thought i changed something, and it was being capped elsewhere. hm, where does phpinfo say php.ini is?

per http://drupal.org/node/76156, it could also be settings.php or .htaccess. also, is there anything else on the server that might be using php memory?

kevancummins’s picture

Hi tm

phpinfo in phpmyadmin folder only has this info: and the phpinfo in

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/** @version $Id: phpinfo.php 10240 2007-04-01 11:02:46Z cybot_tm $ */

/** Gets core libraries and defines some variables */
define('PMA_MINIMUM_COMMON', true);
require_once './libraries/common.inc.php';

/** Displays PHP information */
if ($GLOBALS['cfg']['ShowPhpInfo']) {
    phpinfo();
}
?>

and phpinfo in htdocs/xampp has no content apart from opening and closing php tags

i've checked the settings.php file and for some reason the site doesn't have a .htacess file - I had to add one to get clean urls working

The site was originally made by a uk company, is hosted in china and I'm trying to move it to hong kong without having any dialogue with the original UK company - so it's not easy trying to work out what the problem is - thanks for your suggestions :)

Kevan

kevancummins’s picture

soory forgot to say that the only thing on the server is my installation of xammp and drupal5.2

tm’s picture

ah, if you have xampp running, you can check phpinfo from there; on the xampp page (usually at root), it is under components. otherwise, create a "test.php" in htdocs, and stick the following code into it:

<?php
phpinfo();
?>

and point your browser to http://localhost/test.php. look for "memory_limit" (local and master values should match).

in xampp, the php.ini file is in apache/bin (odd place). if it is not already there, try changing "memory_limit" to 48mb again and restart the apache. if phpinfo still says you are capped at 32mb, something is wrong...

if it shows the 48mb, try your drupal site again.

kevancummins’s picture

tm thanks so much for your advice - you have made my week :)

My site is now working fully on the new server and I can access and make changes to all the blocks and the menu!! I created the test.php and the info showed that the memory was capped at 32MB - I chanded the other php.ini file in the apache bin to 64mb and restarted apache and everything works.

I can now get on with developing the site - thanks again for your time and help

kevan

tm’s picture

knowledge culled from the minds (and posts) of others. heh, i think i spend far too much time in here...

and you are welcome!

tm’s picture

-

tm’s picture

-

tm’s picture

-