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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Clean install of J1.6/CiviCRM 4.0.1 Error: Smarty_Compiler.class.php on line 270
Pages: [1]

Author Topic: Clean install of J1.6/CiviCRM 4.0.1 Error: Smarty_Compiler.class.php on line 270  (Read 3131 times)

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Clean install of J1.6/CiviCRM 4.0.1 Error: Smarty_Compiler.class.php on line 270
May 13, 2011, 10:38:27 am
So I'm getting this on both an attempted upgrade and a completely fresh install and it was working just fine with the previous version.  One of my clients started getting a smarty error with one of their event registrations, so I found a post on here where it was recommended that I clean the template_c folder out. I did, and started getting this error which completely crashes the Joomla backend:

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 /home/danetidw/public_html/novemberllc/jointcra/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty_Compiler.class.php on line 270

I thought it might be a problem with my installation, so I went and did a clean install of Joomla 1.6.3 and CiviCRM 4.0.1. Click on the civicrm menu item in the backend and it again completely crashes the Joomla admin backend with the same error.

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Re: Clean install of J1.6/CiviCRM 4.0.1 Error: Smarty_Compiler.class.php on line 270
May 13, 2011, 07:50:27 pm
Anyone at all? It has to be something with CiviCRM as I've tried installing it in three different directories, all fresh installs, deleting everything unused on my server -- I've done everything I can possibly think of that might have been a server setup issue.

As it is, unless its a misconfiguration by my hosting company that I can't fix, the most recent version of Joomla with the CiviCRM component is completely useless.

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: Clean install of J1.6/CiviCRM 4.0.1 Error: Smarty_Compiler.class.php on line 270
May 16, 2011, 09:44:46 am

do u have more details on this? what exactly did they do / what package did they upgrade 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

danetidwell

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 2
Re: Clean install of J1.6/CiviCRM 4.0.1 Error: Smarty_Compiler.class.php on line 270
May 16, 2011, 11:04:41 am
Thanks Lobo --

They upgraded the php security on my server. PHP 5.2.9 suhosin blocks the eval command so to rectify, your host has to allow a custom php.ini to be installed in each of the directories that CiviCRM is in.

I've attached mine as a txt file, but a2 said the code would probably depend on the provider.

grumpybug

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: 2.5.4
  • MySQL version: 5.0.91
  • PHP version: 5.2.9
Re: Clean install of J1.6/CiviCRM 4.0.1 Error: Smarty_Compiler.class.php on line 270
May 18, 2011, 04:53:42 am
That's interesting I've been struggling with similar errors on my websites with A2 Hosting. In the end I asked them to reset my file permissions as if it was a new account and that fixed most of the problems. I can now get access to my CiviCRM install but I'm still having some random problems on the contribution pages.

yktdan

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 3.4.2
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.9
Re: Clean install of J1.6/CiviCRM 4.0.1 Error: Smarty_Compiler.class.php on line 270
June 10, 2011, 12:44:42 pm
This problem get the  same error on a Drupal 6.22 install of civi latest. I am also on A2hosting. What do I need to fix in php.ini and were do I need to put the php.ini?

yktdan

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
  • CiviCRM version: 3.4.2
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.9
Re: Clean install of J1.6/CiviCRM 4.0.1 Error: Smarty_Compiler.class.php on line 270
June 10, 2011, 12:58:58 pm
The  version stuff on the left gets wrong versions. I am on D6.22 and civi 3.4.2.

planetwebb

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 2
  • CiviCRM version: 4.5.8
  • CMS version: Joomla 2.5.28 / Drupal 7.34
  • MySQL version: 5.5.34-cll-lve
  • PHP version: 5.3.22
Re: Clean install of J1.6/CiviCRM 4.0.1 Error: Smarty_Compiler.class.php on line 270
September 20, 2011, 07:17:06 am
I'm also on A2 and had same error message.  Reverted from PHP 5.3.6 TO 5.3.4 will good result.

Keith

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Clean install of J1.6/CiviCRM 4.0.1 Error: Smarty_Compiler.class.php on line 270

This forum was archived on 2017-11-26.