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) »
  • Smarty errors on upgrade from 1.7 to 1.8
Pages: [1]

Author Topic: Smarty errors on upgrade from 1.7 to 1.8  (Read 3409 times)

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Smarty errors on upgrade from 1.7 to 1.8
August 20, 2007, 06:21:02 pm
Upon upgrading my site (Drupal 5.2, MySQL 5.0.41, PHP 5.2.3) from 1.7 to 1.8, I had the same issue as indicated in this other topic (http://forum.civicrm.org/index.php/topic,689.0.html). I also noticed that at the foot of the page, it still said
Quote
Powered by CiviCRM 1.7.9821

I followed the instructions in that post, but that caused my CiviCRM home page (index.php?q=civicrm/dashboard&reset=1) to come up blank. I restored the files, and the CiviCRM home page came back, but the Administer page is now blank and I'm getting some Smarty errors:

Code: [Select]
Smarty::include(/home/nonprofi/domains/nonprofitcongress.org/public_html/files/civicrm/templates_c/en_US//%%F7/F73/F73DB36C%%Admin.tpl.php) [<a href='function.Smarty-include'>function.Smarty-include</a>]: failed to open stream: Success in /home/nonprofi/domains/nonprofitcongress.org/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1871.
and

Code: [Select]
Smarty error: problem creating directory '/home/nonprofi/domains/nonprofitcongress.org/public_html/files/civicrm/templates_c/en_US/%%F7/F73' in /home/nonprofi/domains/nonprofitcongress.org/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.
and

Code: [Select]
fopen(/home/nonprofi/domains/nonprofitcongress.org/public_html/files/civicrm/upload/latest-version-cache.txt) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied in /home/nonprofi/domains/nonprofitcongress.org/public_html/sites/all/modules/civicrm/CRM/Utils/VersionCheck.php on line 113.
Not sure what to do next...

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: Smarty errors on upgrade from 1.7 to 1.8
August 20, 2007, 07:23:18 pm

can u check directory permissions on the following three directories:

/home/nonprofi/domains/nonprofitcongress.org/public_html/files/civicrm/templates_c
/home/nonprofi/domains/nonprofitcongress.org/public_html/files/civicrm
/home/nonprofi/domains/nonprofitcongress.org/public_html/files

The webserver user needs to be able to read and write in ALL those three directories

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

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: Smarty errors on upgrade from 1.7 to 1.8
August 21, 2007, 05:05:52 am
Lobo,

All three are 777, however, as CiviCRM creates subdirectories in templates_c, those are creating as 751 and are unchangeable.

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: Smarty errors on upgrade from 1.7 to 1.8
August 21, 2007, 07:54:46 am
Tried removing the templates_c directory again, hoping to delete the directory and recreate as 777, but it won't delete because en_US/%%8B/8B4/ keeps coming up as not empty (even though it appears to be). The same directory continue to come up as 751 and won't let me change it

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: Smarty errors on upgrade from 1.7 to 1.8
August 21, 2007, 09:16:21 am
Is there any way to populate the templates_c directory without 777 access? I have asked my host for assistance with the CHMOD command as I don't have SSH access and they are very hesitant about opening up that type of vulnerability.

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: Smarty errors on upgrade from 1.7 to 1.8
August 21, 2007, 11:22:17 am

the 'files'  directory does not need 777 access. The permissions need to be sufficient to allow the web server to read/write/create files in that directory. So depending on who 'owns' that directory, the permissions could be different and more restricted. Its a bit difficult to explain in a few sentences and hence we ask folks to give 777 permission which is all encompassing

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

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: Smarty errors on upgrade from 1.7 to 1.8
August 21, 2007, 12:47:34 pm
It appears the the problematic directories are "owned" by apache. I understand why you recommend the 777 permission, its definitely easier than setting up custom permissions for different things. The 3 top directories you mentioned (and are mentioned in the upgrade documentation) all do have 777 permissions, but the issues are cropping up with directories under templates_c being dynamically created seemingly without sufficient privileges as the Smarty errors seem to indicate insufficient access.

I am looking at an installation of 1.7 that I have on another site I maintain and the permissions actually match what I have on the 1.8 installation (777 for the top directories, 751 for the subdirectories) and I have no issues with that installation.

If anyone would be willing to take a quick peek at what is going on on my site, I'd be happy to set up a temporary username for you with admin privileges. Based on what I see on the other site, I don't understand why these issues are coming up....

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: Smarty errors on upgrade from 1.7 to 1.8
August 22, 2007, 10:51:30 am
I decided to try yet another fix, but was still unsuccessful. This time I created another directory under files/civicrm called templates_c1 and changed the compile directory in civicrm.settings.php to reflect this. Reloaded the module and menus, but am still getting the same issues (just the error says templates_c1, rather than templates_c). I'm not sure what else to try.... Anyone have another direction I should look in?

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: Smarty errors on upgrade from 1.7 to 1.8
August 22, 2007, 01:16:21 pm

Can u get on IRC and we can chat about this. I'll need ssh access to your box, so make sure u have the credentials ready

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

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: Smarty errors on upgrade from 1.7 to 1.8
August 22, 2007, 01:50:35 pm
I'm on IRC now. Will need to log off shortly for the commute home, but will log back on by 6:30 Eastern. As I mentioned earlier, I can't get SSH access.

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: Smarty errors on upgrade from 1.7 to 1.8
August 22, 2007, 05:00:27 pm
ok, here's a weird issue that I just noticed. My domain is www.nonprofitcongress.org. The site can also be accessed at http://74.200.217.218/~nonprofi/. The site is experiencing issues when I try to get to CiviCRM at www.nonprofitcongress.org/?q=civicrm. However, if I go to 74.200.217.218/~nonprofi/?q=civicrm, everything works perfectly. Not sure if this is an issue with Civi, Drupal, or maybe even the nameservers. Any idea?

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: Smarty errors on upgrade from 1.7 to 1.8
August 22, 2007, 08:23:36 pm

Please check the various settings in the settings files (both drupal and civicrm) and ensure that it uses the name and not the IP address. Also please check the various URL settings in administer civicrm >> global settings >> url settings and ensure the same is true there

if the above does not fix things, u might want to elaborate what issues you are experiencing

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

rickcohen

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: Smarty errors on upgrade from 1.7 to 1.8
August 23, 2007, 07:44:39 pm
Ok, checked all that, then just decided to uninstall and reinstall. You saw my post over in the installation forum. Well, couldn't figure out what was up there, so I did the manual install and we're back to where we were yesterday. I'm including a couple of screenshots below to show what I'm talking about. You'll see in the first one, trying to get to Civi through my domain and getting the blank page (which creates about 50 Smarty errors in my site log). The second one, going through the direct IP loads up Civi just fine. I can understand if there's nothing more we can do. If that's the case, I'll probably just roll back to 1.7 for now. I'm guessing this has something to do with my host, so I don't want to take up much more of your time. 1.7 was working, so I'm ok going back to that for now.


(http://www.nonprofitcongress.org/files/images/npcshot.jpg)

(http://www.nonprofitcongress.org/files/images/ipshot.jpg)

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: Smarty errors on upgrade from 1.7 to 1.8
August 23, 2007, 08:09:31 pm

Sorry, no idea what the issue is etc. You might want ensure that the settings files you hit with the two urls (IP vs name) is the same, since the urls are different

Being on 1.8 is more beneficial since we are fixing any critical bugs in that version

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Smarty errors on upgrade from 1.7 to 1.8

This forum was archived on 2017-11-26.