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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Post Installation - Smarty Errors and Memory Issues
Pages: [1]

Author Topic: Post Installation - Smarty Errors and Memory Issues  (Read 3104 times)

allanx

  • Guest
Post Installation - Smarty Errors and Memory Issues
December 15, 2008, 07:45:01 pm
Hi folks,

My client is a non-profit social justice institute, and requires an Event Registration and Payment system to go with their Drupal website. I've researched and decided on CiviCRM as the best option - considering we may use the extra features at a later date. After much research I've been installing and trouble-shooting CiviCRM for the last couple of weeks, with myriad installation problems - which I think have been mainly ironed out after much perseverance.

However I am experiencing problems related to...

1. Smarty.

Can anyone assist in solving the incessant "user warning: Smarty error: unable to read resource:" problems - such as this one:

user warning: Smarty error: unable to read resource: "CRM/Contact/Page/View/Tabbed.tpl" in .../sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1092.

2. And these, related to memory, such as these:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in .../sites/all/modules/civicrm/CRM/Contribute/Selector/Search.php on line 301

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in .../sites/all/modules/civicrm/packages/Smarty/internals/core.assemble_plugin_filepath.php on line 48

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in .../sites/default/files/civicrm/templates_c/en_US/en_US/%%06/069/0693F89E%%drupal.tpl.php on line 38

Perhaps I haven't set something up properly.

I've scoured the forums, which has helped solve a few of the issues. But searching for solutions to these errors, I end up more confused than anything!

ANY assistance would be greatly appreciated.

thanks
allanx

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: Post Installation - Smarty Errors and Memory Issues
December 15, 2008, 09:02:54 pm

1. Can you check and see if this file exists: templates/CRM/Contact/Page/View/Tabbed.tpl. I suspect it does not exist, which indicates some problem when you transferred / untarred the file

2. For the second issue, you might want to increase your memory size in php.ini to 64M or so. You might want to check with your hosting provider how to do so.

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

allanx

  • Guest
Re: Post Installation - Smarty Errors and Memory Issues
December 15, 2008, 09:21:10 pm
Thanks for the response Lobo.

1. Yes there is no Tabbed.tpl file in: templates/CRM/Contact/Page/View/ Indeed there is only: "CustomSearch.tpl" and "SavedSearch.tpl"

Can you please advise what to do next in terms of missing files?

2. Which php.ini file, in which directory? I added one during the installation in - sites/all/modules/civicrm/install - with the line: "memory_limit = 64M" ...

Should I create another one somewhere else?

Thanks
allanx


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: Post Installation - Smarty Errors and Memory Issues
December 16, 2008, 06:27:12 am

1. Not sure how you transferred it, but I would redo the transfer and untar and ensure that they are no errors

2. Thats is more a question for your host and how they've set up php / php.ini 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

allanx

  • Guest
Re: Post Installation - Smarty Errors and Memory Issues
December 16, 2008, 07:17:03 pm
What I have done to fix the problem.

1. Removed then transfered the /templates folder and contents.

2. Added a php.ini file, in the main Drupal directory. With the lines:

register_globals = On
memory_limit = 64M

Seems to work okay now

Thanks for your help lobo...

allanx

____

EDIT: Since receiving a php drupal error message, I've removed the "register_globals = On" from the php.ini file...

Still working okay! ax
« Last Edit: December 16, 2008, 10:20:53 pm by allanx »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Post Installation - Smarty Errors and Memory Issues

This forum was archived on 2017-11-26.