update.php

Events happening in the community are now at Drupal community events on www.drupal.org.
rotnme's picture

Hopefully someone can shed some light on this. For whatever reason when I click on update.php (home/administer/site building/modules) all that comes up is a blank screen. Not sure why this is and am at a loss as to how to fix it. Thanks in advance.

Comments

You're probably getting a php

dpickerel's picture

You're probably getting a php error, but have display_errors set to 'off' in your php.ini. Set it to 'on', restart apache, and see what error you're getting.
Either that or you're exiting prematurely.
-Don-

Logging

kwinters's picture

PHP errors should also be logged somewhere. The Apache config would tell you where, or you might be able to access it through the hosting control panel (if applicable).

Ken Winters

Don: Found php5.ini and all

rotnme's picture

Don:
Found php5.ini and all that is there is this:

memory_limit = 192M
post_max_size = 10M
file_uploads = On
upload_max_filesize = 10M

Ken:
Yes, I went to home/administer/reports/status report. Database updates is flagged as out of date but when I click on database update script I wind up with the same blank page.

I don't know what would have caused this all of a sudden and am truly at a loss as to how to troubleshoot it.

Different log

kwinters's picture

That's the Drupal log, which may not contain everything (it can only catch what actually runs in PHP).

If you have a syntax error, etc. then it will only get printed to the screen (if enabled) or logged to the Apache log (location is set in httpd.conf normally).

Ken Winters

You can create a file with a

dpickerel's picture

You can create a file with a phpinfo() call. That will tell you what the active php.ini is. You may just have some local overrides in php5.ini, in which case you can add
display_errors = On
to php5.ini or you can add
ini_set('display_errors','On');
to the top of update.php.
Likewise, you could add error logging as well.
I'm just not sure if php5.ini is a local override or leftover from an install.
-Don-

I'm not too savvy with this

rotnme's picture

I'm not too savvy with this so if you could please give me some guidance as to how to do this I would so appreciate it.

<? php phpinfo(); ?> save as

dpickerel's picture

<? php phpinfo(); ?>

save as file.php and run.
You should get a screen full of information about your php installation.
You're looking for the row that starts with
"Loaded Configuration File "
That will tell you which php.ini file is really being loaded.

or at the top of update.php you can add
<?php
// $Id: update.php,v 1.252.2.3 2009/03/30 11:15:11 goba Exp $
ini_set('display_errors', 1);

< html > < body > <?php

dpickerel's picture

< html >
< body >

<?php
phpinfo
();
?>

< /body >
< /html >
without the html being stripped.

Honestly, this is beyond me.

rotnme's picture

Honestly, this is beyond me. I don't even know where to begin with your suggestions, I do appreciate them though. I am a newbie to all of this. All I know is I can't update php, lol and don't know how to fix it.

Hosting supprt

Branjawn's picture

Have you asked for help from your hosting provider?

talked to hosting and of

rotnme's picture

talked to hosting and of course the person I talked with had no idea about Drupal, no help whatsoever. What I did manage to glean from the conversation is that I am missing php.ini file. Where it should be I'm not quite sure and I am at a loss as to where it went, My question I guess is how can I get it back? Currently running drupal 6.20.

location of php.ini

Branjawn's picture

If you use Control Panel, look for something called "Php Config". You can use that to set up the file. It will be located in the root web directory (e.g. public_html). Use your CPanel File Manager to navigate to that file (or whatever method you use) and you can edit it.

can't find phpconfig........

rotnme's picture

can't find phpconfig........ so at a loss for what to do.............

hosting

Branjawn's picture

who hosts your site?

hate to say it, Go Daddy

rotnme's picture

hate to say it, Go Daddy

triDUG

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: