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) »
  • CiviCRM causes PHP errors in themes?
Pages: [1]

Author Topic: CiviCRM causes PHP errors in themes?  (Read 504 times)

kenahoo

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.1.63
  • PHP version: 5.3.16
CiviCRM causes PHP errors in themes?
January 05, 2014, 08:32:53 pm
I'm upgrading my site from D6 to D7.  I'm at the stage where I'm upgrading modules and enabling them again, and I'm seeing a problem I don't understand.  As soon as I enable CiviCRM at the /admin/modules page, I start seeing fatal PHP errors from core parts of Drupal, like this:

[Sun Jan 05 21:58:50 2014] [error] [client ::1] PHP Fatal error:  Only variables can be passed by reference in /Users/ken/Documents/SIA/site-upgrade/themes/garland/page.tpl.php on line 3, referer: http://localhost/admin/modules
[Sun Jan 05 22:01:45 2014] [error] [client ::1] PHP Fatal error:  Only variables can be passed by reference in /Users/ken/Documents/SIA/site-upgrade/themes/seven/page.tpl.php on line 24, referer: http://localhost/update.php?op=selection&token=Z4goE_YA8l8WQfGEMU7wXLQx6cs-A-IhB8kl3bq3-cQ&op=start&id=828


The two lines referenced in those error messages are:
Code: [Select]
  <?php print render($page['header']); ?>  # garland line 3
Code: [Select]
          <?php print render($page['help']); ?> # seven line 24
'garland' is my default theme through this upgrade process.  I don't have the 'seven' theme enabled.

Is CiviCRM somehow changing the $page content to something that render() doesn't like?

I'm running Drupal 7.24, CiviCRM 4.4, and PHP 5.3.26.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CiviCRM causes PHP errors in themes?
January 05, 2014, 09:48:49 pm
What is the UF declared as in civicrm_settings.php - if you can find 'Drupal6' in that file change it to 'Drupal'
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

kenahoo

  • I post occasionally
  • **
  • Posts: 83
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.15
  • MySQL version: 5.1.63
  • PHP version: 5.3.16
Re: CiviCRM causes PHP errors in themes?
January 06, 2014, 05:36:48 am
Thanks, that was it.  I thought I'd taken care of that earlier but I guess I reverted it.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • CiviCRM causes PHP errors in themes?

This forum was archived on 2017-11-26.