I just installed CSS_injector, but I can't run the configuration page of CSS_injector under Site Configuration. This is the error I got:

warning: Parameter 1 to theme_css_injector_admin_form() expected to be a reference, value given in ...\includes\theme.inc on line 617.

I'm running a local test site, with XAMPP version 1.7.2: MySQL 5.1.37, PHP 5.3.0

Can anyone help me ?

Thanx.

CommentFileSizeAuthor
#5 css_injector_php5.3_01.patch479 bytesandrewfn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DimitrAT’s picture

I'm brand new in the Drupal world.
I have the exact same problem with Enrityn.
Can anyone help?
Thanks

wedge’s picture

change line 54 of css_injector.admin.inc to
function theme_css_injector_admin_form($form) {
used to be:
function theme_css_injector_admin_form(&$form) {

this is a php 5.3.0 problem. the same thing happened for me on snow leopard.

ricabrantes’s picture

I have the same problem, the change on line 54 don't work for me.

Linux 64bits
PHP Version 5.3.1
Apache/2.2.14

jcolomer’s picture

It worked for me, wedge. Thank you!

andrewfn’s picture

Status: Active » Needs review
FileSize
479 bytes

Here is a patch for the above change.

eaton’s picture

Committed. Thanks!

eaton’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.