Today I both upgraded my Drupal installation, and deployed it to a proper server. Everything seems to have been going swimmingly, until I discovered that anonymous users will always receive a particular error when clicking on certain links.
The Error:
Fatal error: Unsupported operand types in /home/****/public_html/includes/common.inc on line 1275
What I suspect:
IT seems that the only links generating errors are the ones aliased by the pathauto module. I've seen other speculation that the problem is related to views, or perhaps taxonomy.
I've tried clearing my cache, and all sorts of other scary things suggested by other (older) posts.
I'm really quite new to drupal, and more of a poweruser than an actual programmer, so please bear with me.
I've found many similar problems cited here and throughout google, but no satisfactory answers.
Any ideas?
Many thanks!
Comments
Comment #1
prophetsearcher commentedby the way - here are the immediately surrounding lines from the code (line 1275 is the ");" -- parenthesis, semi-colon):
function url($path = NULL, $options = array()) {
// Merge in defaults.
$options += array(
'fragment' => '',
'query' => '',
'absolute' => FALSE,
'alias' => FALSE,
'prefix' => ''
);
if (!isset($options['external'])) {
// Return an external link if $path contains an allowed absolute URL.
// Only call the slow filter_xss_bad_protocol if $path contains a ':' before
// any / ? or #.
$colonpos = strpos($path, ':');
$options['external'] = ($colonpos !== FALSE && !preg_match('![/?#]!', substr($path, 0, $colonpos)) && filter_xss_bad_protocol($path, FALSE) == check_plain($path));
}
Comment #2
prophetsearcher commentedFigured it out!
Through this link
http://drupal.org/node/290915
which led to:
http://drupal.org/node/294397
Unfortunately, it took about 7 hours of searching to find that first link! (Hint: I actually cut and pasted the actual PHP code into the search bar...)
The answer is the Community Tags has to be disabled. The developer is aware of the problem.
Comment #3
prophetsearcher commented