By Thomasr976 on
I keep getting this fatal error when I go the modules page and click on "administration by module page". Same error for help page.
Fatal error: Unsupported operand types in /home/mystuff/public_html/includes/common.inc on line 1426
Comments
I'm guessing url() get's
I'm guessing url() get's passed some really strange values that it can't handle.
Try adding a
print_r($options);
as the very first line in url(), and see if any values look unusual.
edit:url() begins just above the line mentioned in the error message
Not sure how to do that
Thanks letharion, but how do I do about doing that? do u think it just night be my installation and nothing wrong with d 6.16?
I'm running 6.16 myself, and
I'm running 6.16 myself, and I can't see anything wrong with the code on that line.
It's likely related to your system somehow (or a lot of people would have complained loudly)
This could be an issue with your specific php, version, webserver, an installed module, etc.
Two things you definitely should try before you proceed with my initial suggestion is:
1) Log in the log if you can access it: www.yourdomain.com/admin/reports/dblog
2) Disable all non-core modules
3) If acceptable to you, drop the database and try re-installing, it's likely gonna be easier for you.
4) Otherwise, try this:
What you need to do is open up the file in the error message with an editor, nano is a simple one from the command-line (but I prefer vim), or maybe gedit/kate if you have a GUI.
Scroll down to line 1426, and move a few lines up, until you are just below "function url(xxx) {" and type
paste my code above there. It should look like this:
function url($path = NULL, $options = array()) {
print_r($options);
// Merge in defaults.
$options += array(
The reload the faulty page, and hope that you get some text output before the fatal error, post it here.
Very odd behavior....
I can access the logs but there is nothing recorded when this error occurs. Will follow up on your suggestion and get back to you. Thanks for helping me.
Solved this problem
I reinstalled D 6.16 but decided to disable all of the contributed modules to see if I could reproduce the error. When I clicked on those problematic links, they worked. Then I started to enable controbuted modules and that darn error reappeared. I had installed two modules recently- Trackback and Text Link Ads http://drupal.org/project/textlinkads. When I disabled the Text Link Ad mod the problem went away.
I am not sure what is causing that, but I will post the issue to the Text Link Ad project to see what they think. Thanks letharion for the insights and helping me to trouble shoot this.
Tom
trackback is the problem
Same problem here ! I just disabled trackback and it started working flawlessly again
Interesting- Trackback not causing problem, but
I get this onerous error when I click on it. I reported error as a Trackback Project issue.
temp solve
http://blog.valtersboze.com/2010/05/drupal-error-fix-fatal-error-unsuppo...