Hi I’ve been working through some of the threads here on optimization. I enabled Gzip, then installed smartoptimizer and finally changed my htaccess file in line with this thread Speed Up Your CS-Cart eCommerce Website - .htaccess - Step 5 - Hints & Modifications - CS-Cart Forums
On GTmetrix I went from F F to C B which seemed pretty good as the site is only on a shared server. Then I went to access the backend and got error messages relating to Smartoptimizer and checking the homepage I get the following error Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 561768 bytes) in /home/doublebb/public_html/core/class.templater.php on line 105
I’ve uninstalled smartoptimizer and returned the htaccess file to its default setting - backend now works fine but I’m still getting the same error message on the frontend. On the front end the header and the topmenu load but not a lot else - anyone got any ideas. All help greatfully received.
Bruce
Made some progress - I had a scroller in the right sidebar and disabling that gets the site back up without the error so that's a start.
Have you tried clearing the cache folders, var compiled and var cache
Sorry to be stupid but how do I do that - is it simply a case of going in through the cpanel and deleting the contents - I don't want to break anything else
in c panel you can go into file manger then var/compiled and delete all the files in there also the same with var/cache
to do it through the site just add &cc to the end of your admin so yoursite.com/youradmin.php&cc
when you say uninstalled smart optimizer, have you deleted it via cpanel?
John
Yes I've done admin.php?cc and I deleted smartoptimizer via the file manager in cpanel - I also changed the htaccess file there.
I had the same problem with Smart Optimizer I solved changing the following line in the config.local.php:
@ini_set('memory_limit', '48M');
to
@ini_set('memory_limit', '128M');
​then retry to reinstall Smart Optimizer.
You should also delete any “.htaccess” file inside Smart Optimizer folder and subfolders.
Regards
I just installed SO on version 3 and it actually slowed my site down. My memory limit in config.local was 48m though you think a higher number will help?
Thanks for that. I will try it as soon as I get the site working properly - right now I've just discovered that the block manager isn't working either. I've lost an rss feed block from the homepage and turning it on in the block manager makes no difference whatosever. Getting pretty frustrated.
[quote name='solesurvivor' timestamp='1340143785' post='139042']
I just installed SO on version 3 and it actually slowed my site down. My memory limit in config.local was 48m though you think a higher number will help?
[/quote]
I don't know why your website is slowed down. By changing ini_set you will solve any memory problem. Check your website by using the tool on this site gtmetrix.com with and without Smart Optimizer and then note the differences.
Regards
[quote name='tecchese' timestamp='1340334441' post='139193']
I don't know why your website is slowed down. By changing ini_set you will solve any memory problem. Check your website by using the tool on this site gtmetrix.com with and without Smart Optimizer and then note the differences.
Regards[/quote]
What is ini_set, and where do I change it?
config.local.php
ini_set cannot override your webhosts memory limitation per account so it might not work regardless of the setting you provide.
odd enough I tried it again with a 150 mb setting on ini_set and still smart optimizer lowered my gtmetrix score.
Pagespeed/YSlow: 85/75 - before so
Pagespeed/YSlow: 77/76 - after so