[SOLVED] Memory allocation failed - growing buffer

14 years 4 months ago #119288 by TailorMadeSites
I am unable to activate the licence.
Its a clean install of joomla - no other components added.

Joomla: V 1.5.15
CB v1.2.1
CB Subs: V1.03

PHP Built on: Linux
Database Version: 5.0.88-community
Database Collation: utf8_general_ci
PHP Version: 5.2.11
Web Server: Apache/2
Web Server to PHP interface: cgi
Joomla! Version: Joomla! 1.5.15 Stable
User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5

When trying to access main plugin to add license details I get various errors - memory limit exceeded etc, and the one below:

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Memory allocation failed : growing buffer in .../public_html/administrator/components/com_comprofiler/plugin.class.php on line 663

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Memory allocation failed : growing buffer in .../public_html/administrator/components/com_comprofiler/plugin.class.php on line 663

Fatal error: Out of memory (allocated 26738688) (tried to allocate 415498 bytes) in .../public_html/administrator/components/com_comprofiler/plugin.class.php on line 663

Have set php5.ini as follows:
max_execution_time 480 480
max_input_nesting_level 64 64
max_input_time 60 60
memory_limit 1024M 1024M

Any suggestions, ideas, help?

Error log output:
PHP Fatal error: Out of memory (allocated 25427968) (tried to allocate 35 bytes) in .../public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/cbpaidsubscriptions.gui.php on line 0, referer: administrator/index.php?option=com_comprofiler&task=showPlugins

PHP Fatal error: Out of memory (allocated 26214400) (tried to allocate 44 bytes) in .../public_html/libraries/joomla/language/language.php on line 353, referer: administrator/index.php?option=com_comprofiler&task=showPlugins

PHP Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Memory allocation failed : growing buffer in .../public_html/administrator/components/com_comprofiler/plugin.class.php on line 689, referer: .../administrator/index.php?option=com_comprofiler&task=showPlugins

PHP Warning: SimpleXMLElement::__construct() [<a href='simplexmlelement.--construct'>simplexmlelement.--construct</a>]: Memory allocation failed : growing buffer in .../public_html/administrator/components/com_comprofiler/plugin.class.php on line 689, referer: .../administrator/index.php?option=com_comprofiler&task=showPlugins

PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in .../public_html/administrator/components/com_comprofiler/plugin.class.php:689, referer: .../administrator/index.php?option=com_comprofiler&task=showPlugins

Stack trace:, referer: .../administrator/index.php?option=com_comprofiler&task=showPlugins

#0 .../public_html/administrator/components/com_comprofiler/plugin.class.php(689): SimpleXMLElement->__construct('<?xml version="...'), referer: .../administrator/index.php?option=com_comprofiler&task=showPlugins

#1 .../public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/cbpaidsubscriptions.gui.php(0): cbPluginHandler->loadPluginXML(), referer: .../administrator/index.php?option=com_comprofiler&task=showPlugins

#2 .../public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/cbpaidsubscriptions.gui.php(0): cbMenuController->loadRows(), referer:
.../administrator/index.php?option=com_comprofiler&task=showPlugins

#3 .../public_html/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/cbpaidsubscriptions.gui.php(0): cbMenuController->draw(), referer: .../administrator/index.php?option=com_comprofiler&task=showPlugins

#4 .../public_html/administrator/components/com_comprofiler/library/cb/cb.params.php(1065): cbpaidViewExtended->renderAllParams('action', '', '4'), referer: .../administrator/index.php?option=com_comprofiler&task=showPlugins

#5 /home/sites/pub in .../public_html/administrator/components/com_comprofiler/plugin.class.php on line 689, referer: .../administrator/index.php?option=com_comprofiler&task=showPlugins
[error] \x07Out of memory (Needed 8164 bytes), referer: .../administrator/index.php?option=com_comprofiler&task=showPlugins

Can anyone shed light on this? Thanks

Post edited by: krileon, at: 2009/12/15 21:49

Please Log in to join the conversation.

14 years 4 months ago #119291 by krileon
Replied by krileon on topic Re:Memory allocation failed - growing buffer
Your memory limit is not functioning properly.
You've set: 1024mb
Limit reached: 25.5mb

25mb is not enough for CBSubs to properly function, you need at least 32mb, but 64mb is recommended.

Try using php.ini rather then php5.ini or setting the memory limit using htaccess by adding the following to .htaccess.

php_value memory_limit 64M


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

14 years 4 months ago #119297 by TailorMadeSites
Replied by TailorMadeSites on topic Re:Memory allocation failed - growing buffer
Forgot to mention I had also tried in .htaccess without success.. but spoke to webhost and they suggested editing .htaccess and adding this line:

RLimitMem 128000000

Which has done the trick.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.151 seconds

Facebook Twitter LinkedIn