Home page Error [SOLVED]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
pukka
Forum Members
Forum Members
Posts: 119
Joined: Thu Nov 12, 2009 6:02 pm

Home page Error [SOLVED]

Post by pukka »

Hello,

I am creating a new website using CMSMS and it was going well however for some weird reason when i go to the home page, it comes up with the following error

"Fatal error: Allowed memory size of 62914560 bytes exhausted (tried to allocate 40961 bytes) in D:\Websites\webhost\websitename\websitename.com\www\lib\smarty\Smarty.class.php on line 1279"

The homepage displays in a manner that suggests it is not able to read the stylesheet which it is meant to be attached to.


The weird thing is that the home page was working fine previously. Also the error only comes up on the home page. The other pages are working just fine.
Last edited by pukka on Mon Feb 15, 2010 3:32 pm, edited 1 time in total.
Peace & Love

--------------------------------------------------------------------------
Useful stuff: {$entry->fields|@print_r}

web design london
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Home page Error

Post by RonnyK »

Seems like your memory_limit is too low, although 62M is already high.... Did you install many modules, or even modules that you are not using? As either memory_increase in config.php could be done. Otherwise uninstalling some un-used modules is an option.

Ronny
User avatar
pukka
Forum Members
Forum Members
Posts: 119
Joined: Thu Nov 12, 2009 6:02 pm

Re: Home page Error

Post by pukka »

How much should i increase the memory to?


I installed about 6 modules. Is that too much?


Also if the memory is an issue why is it not affecting the other pages on the website. Only the home page seems to be affected. The homepage has the "manage simple slider" module on it. Could that be the problem?
Peace & Love

--------------------------------------------------------------------------
Useful stuff: {$entry->fields|@print_r}

web design london
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Home page Error

Post by Rolf »

pukka wrote: How much should i increase the memory to?
Increase it in the config.php file:

Code: Select all

# If you are experiencing propblems with php memory limit errors, then you may
# want to try enabling and/or adjusting this setting.
# Note: Your server may not allow the application to override memory limits.
$config['php_memory_limit'] = '120M';
Regards, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
pukka
Forum Members
Forum Members
Posts: 119
Joined: Thu Nov 12, 2009 6:02 pm

Re: Home page Error

Post by pukka »

Hello Rolf,

It didn't work.

"Fatal error: Allowed memory size of 125829120 bytes exhausted (tried to allocate 6144 bytes) in D:\Websites\webhost\websitename\websitename.com\www\lib\smarty\Smarty.class.php on line 1283"


The smarty line it refers to contains the following (bit of code is from line 1279 to 1286):

ob_start();
            if ($this->_is_compiled($resource_name, $_smarty_compile_path)
                    || $this->_compile_resource($resource_name, $_smarty_compile_path))
            {
                include($_smarty_compile_path);
            }
            $_smarty_results = ob_get_contents();
            ob_end_clean();



Any ideas...
Peace & Love

--------------------------------------------------------------------------
Useful stuff: {$entry->fields|@print_r}

web design london
User avatar
pukka
Forum Members
Forum Members
Posts: 119
Joined: Thu Nov 12, 2009 6:02 pm

Re: Home page Error

Post by pukka »

It's been fixed now.

Basically there was a content block which contained {content} in the page. Hope that makes sense.

So in the template was a {content} area. Then in the page, the {content} also contained {content}.


Apologies for the daftness.

Thanks for your help Rolf.
Peace & Love

--------------------------------------------------------------------------
Useful stuff: {$entry->fields|@print_r}

web design london
Post Reply

Return to “CMSMS Core”