I recently had a client website get turned off for customer non-payment. Now the customer wants it back online. I backed everything up for them knowing that they would probably want it online again so I have been in the process of rebuilding...Everything is up and working but in my logs I have a few php errors. I fixed most of them but the one below I cannot seem to figure out.

When I am in the admin screen and click the "status report" I get a blank screen, then I view the log files an get the message below.

Parameter 1 to theme_status_report() expected to be a reference, value given in includes/theme.inc on line 171.

Does this have to do anything with a newer PHP Server version?

Please help, I have googled and googled, now posting...

Comments

brent85_98’s picture

This is what is on line 171 of theme.inc

  if ($functions[$function]) {
    return call_user_func_array($functions[$function], $args);
  }
}
brent85_98’s picture

any help...does it have to do with new php version from webhost?

barbucha07’s picture

I have php 5.3 installed and I tried changing into this:

if ($functions[$function]) {
    return call_user_func_array($functions[$function], &$args);
  }

It works for me.

borazslo’s picture

worked for me also. thx!!

themusician’s picture

Works for me too. This was in preparation for upgrading a legacy D5 site to D6. On line 171 add the ampersand & character to the $args key.

$output = call_user_func_array($functions[$function], &$args);