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 »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • CiviCRM stopped working after enabling a cloud Acceleration service
Pages: [1]

Author Topic: CiviCRM stopped working after enabling a cloud Acceleration service  (Read 2587 times)

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
CiviCRM stopped working after enabling a cloud Acceleration service
May 11, 2011, 02:55:16 am
Help please my instance of CiviCRM has stopped working and I need some help to get it working again.

Firstly the background. I’m running CiviCRM on a standard shared hosting package it has been working for over 2 years without a hitch, including standard updates. Then about a week ago things went to crap when I turned on a cloud acceleration service for my account. Even though I did not turn it for the website in question it still affected the site and even when I disabled the service it did not correct the problem. At this stage it had killed civircrm outright and nothing would load instead it would simply return a server error 500. Even doing a fresh install on that account did not fix the problem. I should also say that the of the rest of Joomla install works fine, it is only the CiviCRM that has failed. After spending a week working with host provider we moved my account to another server. This has fixed the problem somewhat, At least CiviCRM now loads but I am getting this error.

Warning: Please contact support about failure in /public_html/adcc/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty_Compiler.class.php on line 270

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

Out of interest I did a fresh install on separate site (same account) using Joomla 1.6 and CiviCRM 4.01 and it produced the same error. So I am pretty sure it is a server configuration error but I have no idea where to start looking. If anyone has any ideas it would be really appreciated.

My current configuration is
CiviCRM version: 3.4.0
CMS version: 1.5.23
MySQL version: 5.0.91
PHP version: 5.2.9
« Last Edit: May 11, 2011, 02:59:03 am by grumpybug »

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: CiviCRM stopped working after enabling a cloud Acceleration service
May 11, 2011, 03:10:27 am
Just a wild guess, have you tried clearing the templates_c directory? Perhaps something nasty is still cached from when you tried the accelerator.
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviCRM stopped working after enabling a cloud Acceleration service
May 11, 2011, 03:15:47 am
What is a cloud acceleration service ?

If this is eaccelerator, been using it without a glitch on my sites.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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: CiviCRM stopped working after enabling a cloud Acceleration service
May 11, 2011, 03:24:08 am
@mdlueck
interesting idea, where would I find the templates_c directory? Of course this wouldn't explain why it affects the fresh install as well because would have thought its cache directory would be clean.

@xavier
Cloudflare

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: CiviCRM stopped working after enabling a cloud Acceleration service
May 11, 2011, 06:49:10 am
Yes, it wouldn't explain the new install nor does it sound like it's the issue, but anyhow its' here:

    <joomla-root>/media/civicrm/templates_c/*

I would suggest you ask your host about this error and see if they have any ideas.
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.

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: CiviCRM stopped working after enabling a cloud Acceleration service
May 11, 2011, 01:53:48 pm
Doh!! and overnight (my time that this) the internal server error 500 has returned with out me doing any changes to the account

from the error logs
[Wed May 11 16:28:26 2011] [error] [client 121.45] File does not exist: /public_html/adcc/500.shtml, referer: http://www.adcc.asn.au/administrator/
[Wed May 11 16:27:15 2011] [error] [client 121.45] File does not exist: /public_html/adcc/500.shtml, referer: http://www.adcc.asn.au/administrator/

Long shot here but does anyone know what the missing file might be or what I should be looking for?

Given I know CiviCRM does work with this provider, I thinking I might look at recreating the site on a new account and then importing the mysql tables onto the new account. Does this sound like a valid or sensible solution and if so are there any pitfalls I should look for in doing this.




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: CiviCRM stopped working after enabling a cloud Acceleration service
May 13, 2011, 03:19:09 am
Another thought here? Could this problem be caused if the permission had been incorrectly set on a directory on my account? I just noticed a number of directories on my account are set 711 whereas on another account where where CiviCRM works fine the directories are generally 755.

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: CiviCRM stopped working after enabling a cloud Acceleration service
May 13, 2011, 03:58:41 am
Quote from: grumpybug on May 13, 2011, 03:19:09 am
Could this problem be caused if the permission had been incorrectly set on a directory on my account?

Could very well be. I have developed a script to scan through a subtree and make sure that the perms on dirs are 775 and files are 664. The script simply drives the chmod binary. And I coded it to add/subtract the perms by name rather than blindly blasting through and forcing perms by number. I seem to recall doing it that way was safer in a certain situation... at present I can not recall what that was...

Probably in your case dirs being 755 and files being 644 would be sufficient. In our configuration we are utilizing group writable permissions, thus the need to bump the middle number higher.

I have attached the script here. (I had to add .txt to the filename)
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

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: CiviCRM stopped working after enabling a cloud Acceleration service
May 14, 2011, 03:52:52 pm
As a follow up. I got the host provider to do a full reset of the file permissions on the account to set them back to a default new account state and that seems to have done the trick.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • CiviCRM stopped working after enabling a cloud Acceleration service

This forum was archived on 2017-11-26.