i'm stumped. when i try installing modules on my site, after a certain point i get blank pages after trying to activate the modules. i have increased memory, i have cleared cache on my browser, and all that good stuff. i thought it was faulty modules, but when i install say, admin menu followed later by ubercart, it gives me blank pages. but then sometimes i install ubercart flawlessly and i get the blank pages when i install admin menu.

someone please tell me what's going on. cause this is just too damn frustrating. :(

Comments

pete_dr’s picture

and now i can't even clear cache under settings > performance .... more good times

dadderley’s picture

After you upload and turn on the module you run update.php right?

mcfilms’s picture

And what is your memory set to in php.ini?

A list of some of the Drupal sites I have designed and/or developed can be viewed at motioncity.com

cog.rusty’s picture

More important than the memory_limit which you have set: What memory_limit does Drupal actually report in the admin/reports/status page?

pete_dr’s picture

@dougzilla would i need to if everything is right out of the box? i didn't update from any previous installs i just uploaded the latest of everything.

@mcfilms & @cog.rusty right now, i boosted it to 164M and still blanks pages. status page it shows 164M, i make sure it's the same there :P

forgot to mention, i just switched hosts, is there any reason that would make a difference? considering my last host i was doing fine and dandy with 48M php memory, how i'm getting this now is a little odd. could using all updated modules and drupal be an issue with a server or something?

cog.rusty’s picture

Try a real test to see how much memory this server allows, because sometimes they set an Apache limit which does not allow you to use all PHP memory. Upload a memtest.php file and browse to run it:

print "Before: ". memory_get_usage() ."<br />";

print "Loading 30 MB<br />";
$fill = str_repeat("0123456789", 3000000);
print "Memory usage: ". memory_get_usage() ."<br />";

unset($fill);
print "Loading 60 MB<br />";
$fill = str_repeat("0123456789", 6000000);
print "Memory usage: ". memory_get_usage() ."<br />";

unset($fill);
print "Loading 90 MB<br />";
$fill = str_repeat("0123456789", 9000000);
print "Memory usage: ". memory_get_usage() ."<br />";

This will show you if you can really go up to 90M php memory.

pete_dr’s picture

Before: 57872
Loading 30 MB
Memory usage: 30058068
Loading 60 MB

cog.rusty’s picture

Obviously it didn't even make it to 60M. It may be an Apache limit of your host. I encountered this in a hostgator account where PHP wouldn't go past 42M when running web applications.

cliff’s picture

I'm wondering if this might be part of the problem I'm encountering. I have two almost identical sites—one on my laptop as a local test and a production test on the Web server. No problems on the laptop, but on the Web server not all of my loaded modules even appear in the list.

For example, no "Content" module appears within CCK on the Web server, although CCK is installed. And the Amazon module doesn't appear there, even though it is installed. Same thing with drush. And I've run update.php like a gazillion times, cleared the cache, and so on.

I tried setting up CiviCRM, and got a warning saying that I should set my php memory limit to greater than 32 MB. Well, in php.ini it's 128 MB, and in the status report I see the same number.

So on seeing this thread, I copied the code above, added routines to test for 120 and 150 MB, and saved it in root as a file called memory_test.php, and then entered mydomain.org/memory_test.php. That's the thing to do, right? (I'm a UX guy, so indulge me as I figure out the programming side.)

It showed I wasn't getting up to 120. I revised it to add intermediate values, and it shows I'm actually getting something more than 102 MB, but not as much as 105 MB. Odd, but should that prevent modules that are installed form even appearing in the list?

And is there anything I can do to get the full 128?

– Cliff

cog.rusty’s picture

If it is an Apache limit you can't do anything to get more php memory except asking your host's support.

If the modules page loads completely but some modules are missing from the list, it is unlikely to be a memory problem. I would look for
- missing or misplaced modules
- missing or damaged ".info" files in the modules
- file/directory permissions (directories must be at least 755 and files at least 644).

pete_dr’s picture

my host recommended to do their auto install feature so drupal gets set up on the server, then just upgrade to 6.12 so i did that, things were going well i think, one after another modules were being installed. then, the dreaded fatel error memory page. i have the memory at 2512M, that is just too insane, and it is STILL not loading.

pete_dr’s picture

after refreshing the modules page i just saw this. btw, this is like 1/10th of the error i'm getting. it goes down faaaar down the page

user warning: Duplicate entry 'admin/build/themes/settings/pushbutton' for key 1 query: INSERT INTO drupal_menu_router (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, page_arguments, fit, number_parts, tab_parent, tab_root, title, title_callback, title_arguments, type, block_callback, description, position, weight, file) VALUES ('admin/build/themes/settings/pushbutton', '', '', '_system_themes_access', 'a:1:{i:0;O:8:\"stdClass\":12:{s:8:\"filename\";s:33:\"themes/pushbutton/pushbutton.info\";s:4:\"name\";s:10:\"pushbutton\";s:4:\"type\";s:5:\"theme\";s:5:\"owner\";s:45:\"themes/engines/phptemplate/phptemplate.engine\";s:6:\"status\";s:1:\"0\";s:8:\"throttle\";s:1:\"0\";s:9:\"bootstrap\";s:1:\"0\";s:14:\"schema_version\";s:2:\"-1\";s:6:\"weight\";s:1:\"0\";s:4:\"info\";a:13:{s:4:\"name\";s:10:\"Pushbutton\";s:11:\"description\";s:52:\"Tabled, multi-column theme in blue and orange tones.\";s:7:\"version\";s:4:\"6.12\";s:4:\"core\";s:3:\"6.x\";s:6:\"engine\";s:11:\"phptemplate\";s:7:\"project\";s:6:\"drupal\";s:9:\"datestamp\";s:10:\"1242243950\";s:7:\"regions\";a:5:{s:4:\"left\";s:12:\"Left sidebar\";s:5:\"right\";s:13:\"Right sidebar\";s:7:\"content\";s:7:\"Content\";s:6:\"header\";s:6:\"Header\";s:6:\"footer\";s:6:\"Footer\";}s:8:\"features\";a:10:{i:0;s:20:\"comment_user_picture\";i:1;s:7:\"favicon\";i:2;s:7:\"mission\";i:3;s:4:\"logo\";i:4;s:4:\"name\";i:5;s:17:\"node_user_picture\";i:6;s:6:\"search\";i:7;s:6:\"slogan\";i:8;s:13:\"primary_links\";i:9;s:15:\"secondary_links\";}s:11:\"stylesheets\";a:1:{s:3:\"all\";a:1:{s:9:\"style.css\";s:27:\"themes/pushbutton/style.css\";}}s:7:\"scripts\";a:1:{s:9:\"script.js\";s:27:\"themes/pushbutton/script.js\";}s:10:\"screenshot\";s:32:\"themes/pushbutton/screenshot.png\";s:3:\"php\";s:5:\"4.3.5\";}s:11:\"stylesheets\";a:1:{s:3:\"all\";a:1:{s:9:\"style.css\";s:27:\"themes/pushbutton/style.css\";}}s:6:\"engine\";s:11:\"phptemplate\";}}', 'drupal_get_form', 'a:2:{i:0;s:21:\"system_theme_settings\";i:1;s:10:\"pushbutton\";}', 31, 5, 'admin/build/themes/settings', 'admin/build/themes', 'Pushbutton', 't', '', 128, '', '', '', 0, 'modules/system/system.admin.inc') in /home/sites/zenimagery.com/public_html/includes/menu.inc on line 2423.

user warning: Duplicate entry 'admin/store/attributes/%/delete' for key 1 query: INSERT INTO drupal_menu_router (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, page_arguments, fit, number_parts, tab_parent, tab_root, title, title_callback, title_arguments, type, block_callback, description, position, weight, file) VALUES ('admin/store/attributes/%/delete', 'a:1:{i:3;s:17:\"uc_attribute_load\";}', '', 'user_access', 'a:1:{i:0;s:21:\"administer attributes\";}', 'drupal_get_form', 'a:2:{i:0;s:27:\"uc_attribute_delete_confirm\";i:1;i:3;}', 29, 5, '', 'admin/store/attributes/%/delete', '', 't', '', 4, '', '', '', 0, 'modules/ubercart/uc_attribute/uc_attribute.admin.inc') in /home/sites/zenimagery.com/public_html/includes/menu.inc on line 2423.

cog.rusty’s picture

If it is Drupal 6 try running update.php to rebuild the menus. Don't select any updates, just see that it finishes successfully.

pete_dr’s picture

ya did that too, didn't select anything just finished the update ... what else you got? hahaha this is truly a pickle for me lol

dadderley’s picture

You are moving a site from your local installation to a server right?

Something about your remote install is completely borked if you are getting these kind of messages:
"user warning: Duplicate entry 'admin/build/themes/settings/pushbutton' for key 1 query: INSERT INTO drupal_menu_router (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, pag...."

Why don't you just start over.
Drop all the tables in your remote DB and import your local one.
Delete all the remote drupal files and upload your local ones and modify the settings.php file so that you can hook up to the remote DB.

Or you can spend a whole bunch of time trying to bugshoot it.

cog.rusty’s picture

Does your database user have all the required privileges for your database?

Maybe your error was caused by a half-finished build of the menu_router table because of some timeout or an insufficient php memory_limit.

Or maybe it was a race condition caused by running menu_rebuild() while it was already running.

Try running menu_router_build(TRUE); menu_rebuild();.

pete_dr’s picture

ok ... so. sadly i must update that i have dropped my website. it was just becoming too much of a pain. almost a week of dealing with my last host, backing everything up, transferring, encountering this issue, and other little things, seems a bit of a waste of time for me. i loves drupal and everything it does, but it really sucked up a lot of time this week. instead, i'm going to use other sites which host photos and blogs, this way i can really concentrate on photos and material instead of database issues and php memory :P

thanks for all the help :)