Hi, I have a problem with my site new.rpg.sk. My provider has upgraded the server to PHP5 and since then my site is not working. I upgraded it yesterday to 4.7.5 but still nothing. Do you know what my cause the problem? Any suggestions are welcome.

Comments

gwideman’s picture

1. Can you get any simple php scripts (non-drupal-related) to work? (That would flush out problems with php enablement in the httpd server).
2. Can you get phpmyadmin web form to connect to MySQL?
3. Is /sites/default/settings.php correct for the current configuration of stuff?
4. Are drupal file and dir owner/group permissions coordinated with whatever user the httpdserver acts as when running php scripts?

crowen’s picture

i run update.php no problem, but when i point the browser to index.php it's not working

crowen’s picture

i tried everything you mentioned above but it seems all is ok except the site is not working... any more ideas?

crowen’s picture

any sugestions guys what to do / check?

yuit’s picture

When you say "it is not working", what do you get actually ? A blank screen ? an error message (which one ?) ? something else ?

I had a case where the update from php4 to php5 was accompanied by a switch from using the mysql extension to using the mysqli one. Depending on the version of MySQL running on the server and how the upgrade was done, have you checked this ? If there was a switch, you need to update '$db_url' in settings.php

Have you checked your .htaccess file ? It includes several sets of commands to override php settings. The defaul .htaccess file includes the ones for php5, but in case you modified/customized it, that may be a problem.

crowen’s picture

not working: i'm getting a blank screen with no error messages
mysqli: checked, not working with or without "i"
.htaccess: i even deleted it, not working

jsurcombe’s picture

This happened to me - I'd switched my site to the new Drupal files, but forget to copy across downloaded modules which are used by the site.

crowen’s picture

as far as I know all the modules are there...

andre75’s picture

I have the same problem. I am in the process of moving hosts and the new one just happens to have php5 installed (actually its VPS and I could downgrade to php4 myself, but I want to save myself the hassle)

I get this in my error log:

EACCELERATOR: PHP crashed on opline 32 of debug_backtrace() at /homepath/includes/database.mysql.inc:105

here is the offending piece from database.mysql.inc:

  if (variable_get('dev_query', 0)) {
    $bt = debug_backtrace();                         //this is line 105 that crashes php
    $query = $bt[2]['function'] . "\n" . $query;
    list($usec, $sec) = explode(' ', microtime());
    $stop = (float)$usec + (float)$sec;
    $diff = $stop - $timer;
    $queries[] = array($query, $diff);
  }

I turned off eaccelerator but I still can't display anything (I only get white pages), so I think it may not be related to eaccelerator.
I tried mysqli with the same result (different line)

Any ideas?

-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

Sean Buscay’s picture

Hello.

I also have this same problem on one of three sites sharing the same multi-install directory.

There is not much difference between the three sites in terms of module usage or caching. The problem one is running the forum module, but I do not think that's it.

Running:

Drupal 5.2 dev
MySQL database 5.0.27
PHP 4.4.6
eAccelerator v0.9.5.1
Zend Extension Manager v1.2.0
Zend Optimizer v3.2.8

I have the same error as you though it refers to the mysql.include line 156 in the version I have.

if (variable_get('dev_query', 0)) {
    $bt = debug_backtrace();
    $query = $bt[2]['function'] . "\n" . $query;
    list($usec, $sec) = explode(' ', microtime());
    $stop = (float)$usec + (float)$sec;
    $diff = $stop - $timer;
    $queries[] = array($query, $diff); 

I have temporarily commented it out to get the site back up. It now works, running eAccelerator and Zend.

I'd like to solve this problem rather than just comment out the code. Anyone have any ideas?

Sean Buscay
www.christian-web-masters.com
www.antiochian.org

Sean Buscay’s picture

Hello.

I was able to get the crashing issue solved.

Though, Zend Optimizer can run with eAccelerator, the support site recommends against it.

I commented out the Zend Optimizer loading:

;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.2.8
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.2.8
;zend_optimizer.version=3.2.8

And then tested several times with the triggering Drupal code uncommented. The crashing error went away.

Best Regards,
Sean Buscay

Sean Buscay
www.christian-web-masters.com
www.antiochian.org