I was getting this error:

Deprecated function: Call-time pass-by-reference has been deprecated in phptemplate_init() (line 14 of /var/www/shoppers/themes/engines/phptemplate/phptemplate.engine).

solution: just go to your template.php file and replace all instances of &$vars with $vars

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aristeides’s picture

Title: Deprecated function: Call-time pass-by-reference has been deprecated in phptemplate_init() (line 14 of themes/engines/phptemplat » Deprecated function: Call-time pass-by-reference has been deprecated in phptemplate_init

you should do the same in all the files inside includes/modules

farhadhf’s picture

The error still shows up after removing & from &$vars in template.php and files inside includes/modules,
Also removing & from twitter_bootstrap_preprocess_region(&$vars) shouldn't be removed, or sidebars won't be rendered properly.

How can I track down the probelm?
(I'm using PHP 5.3.9)

arno_b’s picture

In template.php, removing the & in &$form_state seems to do the trick.

gagarine’s picture

Status: Needs review » Reviewed & tested by the community

To be clear

$form = search_form($form, &$form_state);
need to be replaced by
$form = search_form($form, $form_state);

gagarine’s picture

Priority: Normal » Critical

let move that to critical.

If you use php-fmp it will totally crash with a SIGSEGV. This kind of error are very hard to debug as you don't have anythings in logs and just a blank nginx error page with "bad gateway". (If someone has a hint about how to debug SIGSEGV please let me know)

I first think it was my APC but switch it off didn't change anything.

frankbaele’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
frankbaele’s picture

Status: Reviewed & tested by the community » Fixed

used #4 solution

Status: Fixed » Closed (fixed)

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

heddn’s picture

Status: Closed (fixed) » Needs work
FileSize
473 bytes

Is this going to get rolled into the 7.x.1.x rev? If so, attached is a patch to apply it there.

frankbaele’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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

andregriffin’s picture

Project: Twitter's Bootstrap » Bootstrap
andregriffin’s picture

Issue summary: View changes

clarification