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 »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Smarty->_eval() Memory allocation error when setting Organization name
Pages: [1]

Author Topic: Smarty->_eval() Memory allocation error when setting Organization name  (Read 1510 times)

bstackhouse

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.12
  • MySQL version: (test) 5.1.34 (production) 5.1.63
  • PHP version: (test) 5.3.0 (production) 5.3.10
Smarty->_eval() Memory allocation error when setting Organization name
September 29, 2012, 08:32:09 pm
When setting org name, a memory allocation error happens. Max is set to 128MB.

[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 3758620797 bytes) in /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1971, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP Stack trace:, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP   1. {main}() /Library/WebServer/Documents/nwta/index.php:0, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP   2. menu_execute_active_handler() /Library/WebServer/Documents/nwta/index.php:21, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP   3. call_user_func_array() /Library/WebServer/Documents/nwta/includes/menu.inc:517, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP   4. civicrm_invoke() /Library/WebServer/Documents/nwta/includes/menu.inc:0, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP   5. CRM_Core_Invoke::invoke() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/drupal/civicrm.module:500, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP   6. CRM_Utils_Wrapper->run() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/CRM/Core/Invoke.php:193, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP   7. CRM_Core_Controller->run() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/CRM/Utils/Wrapper.php:115, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP   8. HTML_QuickForm_Page->handle() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/CRM/Core/Controller.php:289, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP   9. HTML_QuickForm_Controller->handle() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php:103, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP  10. CRM_Core_QuickForm_Action_Display->perform() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php:203, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP  11. CRM_Core_QuickForm_Action_Display->renderForm() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php:100, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP  12. CRM_Core_Form->toSmarty() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php:116, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP  13. HTML_QuickForm->accept() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/CRM/Core/Form.php:549, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP  14. HTML_QuickForm_element->accept() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/packages/HTML/QuickForm.php:1703, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP  15. HTML_QuickForm_Renderer_Array->renderElement() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/packages/HTML/QuickForm/element.php:415, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP  16. CRM_Core_Form_Renderer->_elementToArray() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/packages/HTML/QuickForm/Renderer/Array.php:221, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP  17. HTML_QuickForm_Renderer_ArraySmarty->_elementToArray() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/CRM/Core/Form/Renderer.php:107, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP  18. HTML_QuickForm_Renderer_ArraySmarty->_renderRequired() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/packages/HTML/QuickForm/Renderer/ArraySmarty.php:197, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP  19. HTML_QuickForm_Renderer_ArraySmarty->_tplFetch() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/packages/HTML/QuickForm/Renderer/ArraySmarty.php:296, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP  20. smarty_function_eval() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/packages/HTML/QuickForm/Renderer/ArraySmarty.php:347, referer: localhost/nwta/civicrm?reset=1
[Sat Sep 29 20:12:50 2012] [error] [client ::1] PHP  21. Smarty->_eval() /Library/WebServer/Documents/nwta/sites/all/modules/civicrm/packages/Smarty/plugins/function.eval.php:43, referer: localhost/nwta/civicrm?reset=1
 
« Last Edit: October 02, 2012, 02:38:38 pm by bstackhouse »

bstackhouse

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.12
  • MySQL version: (test) 5.1.34 (production) 5.1.63
  • PHP version: (test) 5.3.0 (production) 5.3.10
Re: Smarty->_eval() Memory allocation error when setting Organization name
October 02, 2012, 02:39:47 pm
have found some forms display, but not many.


Same error for setting from email address. Default CiviMail mailbox displays form.
Under Configuration checklist
localization  same error
organization address  same error
display preferences  displays form
address settings  same error
mapping and geocoding  same error
search settings  displays form

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->_eval() Memory allocation error when setting Organization name
October 02, 2012, 04:56:43 pm

might want to use a more recent version of PHP for your tests. might also want to check and ensure you have allocated enough memory for php in php.ini (we recommend at least 64M - 128M)

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

bstackhouse

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.12
  • MySQL version: (test) 5.1.34 (production) 5.1.63
  • PHP version: (test) 5.3.0 (production) 5.3.10
Re: Smarty->_eval() Memory allocation error when setting Organization name
October 02, 2012, 05:00:39 pm
memory_limit is set to 128M  PHP on test system seems to work for everything else. Would like to know what is wrong first. Test machine is an older PowerPC Mac and all I have to test with. This version of PHP is about the newest I can install. It runs Drupal just fine.

The code being passed to eval is

?> array(array('block', 'ts', 'evaluated template', 30, false),)), $this); ?> _tpl_vars['error']): ?> _tpl_vars['label']; ?> _tpl_vars['required']): ?> * _tpl_vars['label']; ?> _tpl_vars['required']): ?> *
« Last Edit: October 02, 2012, 05:13:04 pm by bstackhouse »

bstackhouse

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Drupal 7.12
  • MySQL version: (test) 5.1.34 (production) 5.1.63
  • PHP version: (test) 5.3.0 (production) 5.3.10
Re: Smarty->_eval() Memory allocation error when setting Organization name
October 06, 2012, 09:58:39 pm
Upgraded php to 5.3.17. Problem no longer exists, but not sure it was resolved by the upgrade. There was also a problem with the case of the directory name for all the Drupal files. Anyway, I am considering this 'fixed'.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Smarty->_eval() Memory allocation error when setting Organization name

This forum was archived on 2017-11-26.