The warning
admin_system_info_alter() expected to be a reference
pops up when i switch to php 5.3 under drupal 6.14.
The warning references common.inc in drupal's includes-folder. But i'm not a coder, so I don't have a clue what's going on. Drupal for firebug appears to stay silent.
I'm not sure if it's even an admin issue because i got a list of similar warnings at update.php as well, but disabling admin removes them. So maybe something has changed?
"I'm a designer Jim, not a developer."
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | admin-php-5.3.patch | 1.1 KB | yhager |
Comments
Comment #1
seworthi commentedI had to change the following 2 line to get admin to work under PHP 5.3:
admin.module: Line 213;
Original:
function admin_system_info_alter(&$info, &$theme) {Modified:
function admin_system_info_alter(&$info, $theme) {theme/template.php: Line 94;
Original:
function slate_fieldset(&$element) {Modified:
function slate_fieldset($element) {I have not done extensive testing yet, but seems to work.
Comment #2
whatdoesitwant commentedCheers @Seworthi, it seems to work. admin is the best thing that happened to drupal6 since views. I would create a new view set before going without it.
Comment #3
cels commentedmaintainers can confirm this solution and commit?
Comment #4
macjoyful commentedJust wanted to confirm that making the modifications is an easy fix for the php 5.3 issue. I'm a drupal newbie but definitely appreciate the look and utility of this module.
Comment #5
ezar commentedworking fine!
please commit it.
regards,
eZar
Comment #6
petebarnett commentedI can confirm this.
As detailed in http://drupal.org/node/360605 php 5.3 throws an error when passing a value to a function that takes a reference.
Both corrections to the function signatures bring them in line with the description in D6 API documentation.
theme_fieldsethas $element passed as a value (http://api.drupal.org/api/function/theme_fieldset/6) andhook_system_info_alter()(http://api.drupal.org/api/function/hook_system_info_alter) has $file passed by value, not reference.Thanks,
Peter
Comment #7
oriol_e9gtagged
Comment #8
letsdothisdrupal commentedtagged
Comment #9
yhager commentedSame fix as in #1, attached as a patch.
Works for me too.
Comment #10
Stasroot1 commentedThis work! Ok! Sory my inglish.
Comment #11
jpatiaga commentedPatch in post #1 works for me. Thanks.
Comment #12
harking commentedPatch worked for me too.
Changing to critical as interface is unusable in PHP 5.3.
Comment #13
makangus commentedworked on snow leopard
Comment #14
chris_gooley commentedworked for me too. thanks.
Comment #15
EmlynC commentedCheers worked for me (Ubuntu 10.4).
Comment #16
alexmc commentedPatch file in #9 didn't actually work - I couldn't apply the patch normally. However I manually edited the files it was trying to patch and that worked.
(Ubuntu 10.4, 32 bit, Drupal 6. whatever is current release.)
Comment #17
manuel garcia commentedpatch doesnt apply, but the changes do work apparently. Also, the 2.x branch doesnt have this problem =)
Comment #18
greg.harvey+1, this works. Patch available for 4 months, R&TBC for 3 months, issue nearly a year old...? Huh?
Edit: Hmm, 6.x-1.x maintainer required I see. That explains it. Required for some time, by the looks!
Comment #19
Anonymous (not verified) commentedThis patch has been applied and committed and will be present in the next release (which will be tagged shortly).
Comment #20
manuel garcia commentedThanks!
Comment #22
OpenChimp commentedI am running PHP Version 5.2.13 on MAMP 1.9 and am also getting this error.