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) »
  • CiviContribute and Administer CiviCRM pages will not completely load
Pages: [1]

Author Topic: CiviContribute and Administer CiviCRM pages will not completely load  (Read 3661 times)

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
CiviContribute and Administer CiviCRM pages will not completely load
April 10, 2008, 08:11:51 am
Hello,

We just recently moved our Drupal 5/CiviCRM 1.9 site over to a new host. In a previous post on this board I was able to get help with moving CiviCRM and getting it online.

Well, we have been running CiviCRM successfully for awhile on the new host, but we just ran into an odd problem. Our CiviContribute pages and the Administer CiviCRM pages will not load completely. The header that says (for the admin page) "Administer CiviCRM", the "Recently Viewed" message box, and the footer with the license and version information all appear, but the tables and forms are missing. This doesn't affect every CiviCRM page. For instance, we can still lookup contacts and groups.

I'm not really sure what happened to cause this. I have been trying to get our new SSL certificate working, but I don't know why that would affect CiviCRM. Has anyone ran into this before?

Any suggestions?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviContribute and Administer CiviCRM pages will not completely load
April 10, 2008, 10:46:17 am
2.0 + will load all admin pages along w/ online contribution pages and event registration pages as https (SSL) if "Force Secure URLs (SSL)" is enabled under CiviCRM Admin >> Settings >> Resource URLs. Hence, if your SSL certificate / webserver config is not functioning properly - this might cause problems on these pages.

Try turning off Force Secure URLs (SSL) and see if that "fixes" things - which would confirm the problem.
Protect your investment in CiviCRM by  becoming a Member!

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: CiviContribute and Administer CiviCRM pages will not completely load
April 11, 2008, 08:14:32 am
I never turned Force SSL on and I can't get to the Administer CiviCRM pages to make this change if I did. Is there a way to reset the configuration?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviContribute and Administer CiviCRM pages will not completely load
April 11, 2008, 09:56:25 am
It's not clear that the Force SSL setting is causing your problem - but if you're ok about resetting all Global Settings to their defaults you can do this by running the following SQL query:

UPDATE civicrm_domain SET config_backend = NULL WHERE id = 1;

You might want to check your error logs first to see if there are further clues as to what's going on... Apache/webserver error log, PHP error log, Drupal watchdog log.
Protect your investment in CiviCRM by  becoming a Member!

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: CiviContribute and Administer CiviCRM pages will not completely load
April 11, 2008, 11:31:20 am
I looked in the watch dog logs and found these errors:

Code: [Select]
Smarty::include() [<a href='function.include'>function.include</a>]: Failed opening '/var/www/html/files/civicrm/templates_c/en_US//%%F7/F73/F73DB36C%%Admin.tpl.php' for inclusion (include_path='.:/var/www/html/sites/all/modules/civicrm:/var/www/html/sites/all/modules/civicrm/packages:.:/usr/share/pear') in /var/www/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1871.

Smarty error: unable to write to $compile_dir '/var/www/html/files/civicrm/templates_c/en_US'. Be sure $compile_dir is writable by the web server user. in /var/www/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.

Smarty error: unable to write to $compile_dir '/var/www/html/files/civicrm/templates_c/en_US'. Be sure $compile_dir is writable by the web server user. in /var/www/html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.

I'm sure this is what is causing the problem, because these errors only appear when I try to access one of the broken CiviCRM pages. And CiviCRM uses the Smarty template engine, correct?

I'm not sure what to do. I've recursively set the files directory to 0777 permissions and I still get the write errors. Is there a way to make CiviCRM rebuild its template files?
« Last Edit: April 11, 2008, 11:34:18 am by posco »

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: CiviContribute and Administer CiviCRM pages will not completely load
April 11, 2008, 12:01:13 pm

just to be clear:

1. it all works except for the above SSL pages.

2. trying to load the SSL pages results in the below smarty errors

a few questions:

a. By any chance is your https conf file for apache different from the http conf file

b. is the below path '/var/www/html/files' your drupal files path

c. you can delete 'rm -rf /var/www/html/files/civicrm' and see if it helps (i doubt it)

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

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviContribute and Administer CiviCRM pages will not completely load
April 11, 2008, 12:05:31 pm
Does your host have PHP configured w/ safe_mode ON. This has caused problems for other sites accessing the smarty template cache files / folders. Note that safe_mode is being deprecated (it's eliminated in PHP 6) - and I'm not sure if folks have successfully used the Smarty template engine w/ that setting.

If that turns out to be the issue - and you can't disable safe mode - your best bet would be to research this in the Smarty site / community to see if there's a workaround.
Protect your investment in CiviCRM by  becoming a Member!

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: CiviContribute and Administer CiviCRM pages will not completely load
April 11, 2008, 02:28:52 pm
Quote from: Dave Greenberg on April 11, 2008, 12:05:31 pm
Does your host have PHP configured w/ safe_mode ON. This has caused problems for other sites accessing the smarty template cache files / folders. Note that safe_mode is being deprecated (it's eliminated in PHP 6) - and I'm not sure if folks have successfully used the Smarty template engine w/ that setting.

If that turns out to be the issue - and you can't disable safe mode - your best bet would be to research this in the Smarty site / community to see if there's a workaround.

I will look into the safe mode issue. I can disable it if I need to.

Quote from: Donald Lobo on April 11, 2008, 12:01:13 pm

just to be clear:

1. it all works except for the above SSL pages.

2. trying to load the SSL pages results in the below smarty errors

a few questions:

a. By any chance is your https conf file for apache different from the http conf file

b. is the below path '/var/www/html/files' your drupal files path

c. you can delete 'rm -rf /var/www/html/files/civicrm' and see if it helps (i doubt it)

lobo

The pages don't load with https or http. /var/www/html/files is our drupal files path. I will try deleting the /var/www/html/files/civicrm directory if PHP safe mode is not causing the problem.

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: CiviContribute and Administer CiviCRM pages will not completely load
April 11, 2008, 02:32:57 pm
Safe mode was off. Deleting the civicrm directory from the files directory solved the issue.

Thank you guys for helping me out. We've been using CiviCRM for several months now and the support on these forums has been a tremendous help.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • CiviContribute and Administer CiviCRM pages will not completely load

This forum was archived on 2017-11-26.