Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
just installed the latest development version on Drupal 6.1 drupal. When trying to access the posts of a forum topic I get this error:
Fatal error: Unsupported operand types in .../includes/common.inc on line 1435
I think this is caused by new arguments to l(). With the help of the script from http://drupal.org/files/issues/replace.php_.txt I created the patch and the problem disappeared.
Comment | File | Size | Author |
---|---|---|---|
advancedforuml.patch | 4.08 KB | heirecka | |
Comments
Comment #1
pobster CreditAttribution: pobster commentedYeah seems to solve it for me.
Thanks,
Pobster
Comment #2
melodiesmaster CreditAttribution: melodiesmaster commentedYeah it works. Thanx a lot.
Comment #3
MichelleHmm... I guess my reply on this yesterday must have gotten eaten when the site went down for maintainance.
Anyway, I forgot to change these again last time I did a mass copy of this section of code from the 5.x version. Will get these fixed in the next update.
Thanks,
Michelle
Comment #4
MichelleI can't get your patch to work so I was doing the copy paste method and I noticed that you're changing some of the l() calls that are already in the D6 format like:
- $vars['comment_link'] = l($linktext, $linkpath, array('query' => $query, 'fragment' => $fragment));
+ $vars['comment_link'] = l($linktext, $linkpath, array('attributes' => array('query' => $query, 'fragment' => $fragment)));
What does putting them in an extra array do?
Michelle
Comment #5
MichelleChanged the l()s that were formatted like 5.x. Didn't add in the extra level of array on the others because I don't understand the purpose and the links seem to be working fine as is.
Michelle
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.