CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
Pages: [1] 2

Author Topic: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...  (Read 3247 times)

messy

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.05
  • CMS version: Drupal 7.7
  • MySQL version: 5.0.5
  • PHP version: 5.3.5
Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
August 22, 2011, 10:45:11 am
Hi there,

Just upgraded to Drupal 7.7 and am now attempting to upgrade CiviCRM from 3.22 to 4.05. Removed all files, replaced with the new version, added lines to civicrm.settings.php and am now attempting to run the upgrade script at civicrm/upgrade?reset=1

The following error occurs: Fatal error: Only variables can be passed by reference in .../themes/garland/page.tpl.php on line 3

Same results changing the theme.

PHP 5.2.17
MySQL 5.05

Any help would be much appreciated.

Cheers


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
August 22, 2011, 01:11:00 pm
Did you remove all Drupal source code before installing the Drupal 7 code? If not, try that.

Then try clearing the theme caches and then try the CiviCRM upgrade again.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

medicalmusings

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: 6.22
  • MySQL version: 5.1.53
  • PHP version: 5.2
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
August 22, 2012, 09:34:40 pm
Same problem upgrading to version 4.2.0 stable
Flushing themes no effect.
Ideas or pointers welcome?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
August 23, 2012, 03:34:43 am
You have the same precise error as the original post?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
November 27, 2012, 06:02:19 pm
I'm getting this same parse error as well after upgrading from 4.1.x to 4.2.x on Drupal 7 site.

-Trevor

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
November 28, 2012, 02:41:51 am
Trevor, you get the "passed by reference" error or a "parse" error? Can you post the precise error message?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
November 28, 2012, 03:58:15 am
Fatal error actually:

Fatal error: Only variables can be passed by reference in /Applications/MAMP/htdocs/localo_drupal7/themes/garland/page.tpl.php on line 3

-Trevor

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
November 28, 2012, 07:43:39 am
Bizarre. That line is

Code: [Select]
  <?php print render($page['header']); ?>

No idea why that is. Can you try another theme?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
November 28, 2012, 05:25:06 pm
I tried Bartik as well.  Same result.

-Trevor

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
November 28, 2012, 05:37:41 pm
Three users is enough for a bug I think. Can you post an Issue via the Issue Tracker link at the top of this page and refer to this thread? Seems some case of upgrades is causing this. Not clear what however. :(
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
November 30, 2012, 03:52:56 am

Will help even more if you can debug and attach a patch to the issue once you've found and fixed the issue

Filing an issue is the first step in a long chain of events :)

yes, that error does seem wierd and have absiolutely no idea why that error is even thrown

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
November 30, 2012, 12:31:18 pm
I too have this exact error trying to upgrade to 4.2 from 3.4 after just upgrading from Drupal 6 to Drupal 7.17.

I visit /civicrm/upgrade?reset=1 and it throws Fatal error: Only variables can be passed by reference in (theme/path no matter the theme used).

I have no caching enabled. Please advise.

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
November 30, 2012, 12:36:56 pm
I am running PHP 5.2.10: Do you think maybe that has something to do with it?

Thanks!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
December 01, 2012, 04:25:24 pm

r u using a PHP Optimizer? XCache or APC etc?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

linkx

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 7
Re: Upgrading to 4.05 - Only variables can be passed by reference themes/garland...
December 03, 2012, 08:06:13 am
Nope, it's just a vanilla Ubuntu install with PHP held back to 5.2

I migrated the site to a server running PHP 5.3 and was able to complete the upgrade. I remember some other D7 error on PHP 5.2 that complained about passing by reference ...

I am curious to see if any of the others on this thread are also on PHP 5.2 (and after all PHP 5.3 is stated as a minimum requirement for CiviCRM 4.2 ... the installer will not let you install unless you are on 5.3)

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrading to 4.05 - Only variables can be passed by reference themes/garland...

This forum was archived on 2017-11-26.