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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
Pages: [1]

Author Topic: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)  (Read 2098 times)

CharleyFields

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7.8
  • MySQL version: 5.1.52-cll
  • PHP version: 5.3.4 (cuz 5.3.6 REALLY doesn't work!)
Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
August 01, 2011, 09:49:47 am
I have uninstalled and reinstalled three times; each with new Drupal7 environments.  Installer says successful, but upon trying to access CiviCRM from within Drupal7 environment I get whitescreen with this error message

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: '{php' . str_repeat(&quot; &quot;, substr_count('{* Check for Status message for the page (stored in session-&gt;getStatus). Status is cleared on retrieval. *}', &quot; &quot;)) .'}' in <localhost>/sites/all/modules/civicrm/packages/Smarty/Smarty_Compiler.class.php on line 270

Anyone have suggestions on how to get this loaded successfully? ... I did have CiviCRM4 loaded in a sandbox environment, with sample data; but I had to uninstall and re-install without sample data (as per my stakeholder's request) ...
... thanks, in advance, for any words of advice!


« Last Edit: August 01, 2011, 09:59:47 am by CharleyFields »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
August 01, 2011, 10:13:04 am
Similar report here http://forum.civicrm.org/index.php?topic=19966.0 and here http://forum.civicrm.org/index.php?topic=19909.0 and http://forum.civicrm.org/index.php?topic=19967.0

Can you be sure to delete all files/folders in sites/default/files/civicrm/templates_c/ and try 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.

CharleyFields

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7.8
  • MySQL version: 5.1.52-cll
  • PHP version: 5.3.4 (cuz 5.3.6 REALLY doesn't work!)
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
August 01, 2011, 11:01:39 am
Hershel, thank you muchly for the references to other related postings ... my initial topic search didn't revealt them.
Anyway, I cleared out the templates_c but that didn't help.

I reviewed my webhost's upgrade logs, and revealed that they (A2 Hosting, as referenced by grumpybug), had upgraded my PHP from my initial 5.2.17 to 5.3.6 ... I used the c-panel PHP switcher to revert back to the 5.2.17 ...
... and now I can access CiviCRM from my D7 dashboard.

SO, apparently there are issues with the new PHP version.

Thanks again!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
August 01, 2011, 11:26:01 am
My pleasure.
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.

pdonovan

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
August 31, 2011, 07:36:49 am
I've got the same problem. Started in May when A2 hosting apparently changed their PHP version on shared hosting.

I reverted to PHP 5.2.17 as noted above. Now I get the blank screen of death whenever I try to access CiviCRM.

My server error log still references line 270:

 &quot;)) .'}' in ...../sites/all/modules/civicrm/packages/Smarty/Smarty_Compiler.class.php on line 270

I cleared template cache. Still blank screens.

 :(

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
August 31, 2011, 07:39:09 am
Did you clear your sites/default/files/civicrm/templates_c/ folder?
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.

pdonovan

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
August 31, 2011, 08:03:55 am
Yes I did!

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
September 01, 2011, 12:47:18 am
I'm running PHP 5.3.6  with MAMP on a my local machine, and have successfully installed Civi 3.4.5 with D6 and the current 4.x version with D7, without any obvious problems.
Graham Mitchell
http://mc3.coop

pdonovan

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
September 01, 2011, 04:37:00 pm
Well, following some more advice on this forum from some others who use A2 hosting, I put php.ini files in the drupal and civicrm directories and that seems to have fixed the issue.

CharleyFields

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7.8
  • MySQL version: 5.1.52-cll
  • PHP version: 5.3.4 (cuz 5.3.6 REALLY doesn't work!)
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
September 05, 2011, 10:24:04 am
Hello pdonovan ... because I bungled a CiviCase component install, I've had to uninstall everything and start over.
Now, following my own advice from early last month, I too have gotten the 'blank screen of death', as you stated.
PHP 5.3.6 still gives me that Smarty-Line270 error, but the PHP 5.2.17 gives me nada ...

... I am unfamiliar with your solution of php.ini files in the Drupal and CiviCRM directories ... could you explain further OR reference the other forum postings that you referenced?

I am most definitely stuck (and on a deadline ... yikes!)

I am running Drupal 7.8 and trying to install CiviCRM 4.0.5

Thanks!!

pdonovan

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
September 05, 2011, 10:43:31 am
Sorry, can't find it. It was an issue specific to A2hosting. And I've moved on to a VPS.

CharleyFields

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7.8
  • MySQL version: 5.1.52-cll
  • PHP version: 5.3.4 (cuz 5.3.6 REALLY doesn't work!)
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
September 05, 2011, 10:51:37 am
pdonovan, thank you for your prompt reply.  Did you determine that the A2 'issue' was a show-stopper? (unresolvable with them?)

Does, anyone else have any advice??

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
September 05, 2011, 12:49:33 pm
Did you ask your host if they can assist? Perhaps they can downgrade your account to 5.2 and you can see if that helps.

If your host can't help, then I would consider switching hosts.
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.

CharleyFields

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.0.4
  • CMS version: Drupal 7.8
  • MySQL version: 5.1.52-cll
  • PHP version: 5.3.4 (cuz 5.3.6 REALLY doesn't work!)
Re: Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)
September 06, 2011, 06:33:48 am
Hershel, thanks (again) for replying and offering your advice ...

... my host allows me to manually choose between a few versions of PHP.
Since my last posting, I have tried numerous installs of both recent (minor) versions of Civi (4.0.4 and 4.0.5) on PHP 5.2.17 (as discussed earlier in this thread) and the most current(ly offered, by my host) verison, 5.3.6.

...my host also (apperntly) had some server issues over the holiday weekend, and has been scrambling to remedy with a short staff.  So, in line with what you suggested, I still plan to discuss with them today the troubles I've been experiencing.  I am also keeping a mental note and concern, regarding pdonovan's similarly mentioned issues with the same host.

HOWEVER, this morning, I just had a successful install by selecting PHP 5.3.4 and installing Civi 4.0.4.  (So, a big 'whew!' on that score.) ... Now I haven't tried installing Civi 4.0.5, so I am not certain that the Civi version is part of the problem; just that the last successful install I had was the 4.0.4, so I went with that

Do you have any input on why different PHP versions (and/or Civi versions) might be causing issues?  Or would you still believe it all is due to 'poor hosting'?

Anywho, mucho thanks!  :D

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fatal Error upon CiviCRM4 install in Drupal7 (Smarty_Compiler -- line 270)

This forum was archived on 2017-11-26.