Jump to content
Qualityrefurbished

Error When Clicking Product

Recommended Posts

Hi im new here just installed at www.qualityrefurbished.co.uk/shop

 

When I click on a product I get this error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 924 bytes) in /var/www/vhosts/Placeformotors.co.uk/qualityrefurbished/shop/tools/smarty/sysplugins/smarty_internal_templatelexer.php on line 452

 

The only thing I've done is enable friendly irks and put the weights in for shipping how can I fix this please?

 

Thanks for your help

Share this post


Link to post
Share on other sites

Hi im new here just installed at www.qualityrefurbished.co.uk/shop

 

When I click on a product I get this error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 924 bytes) in /var/www/vhosts/Placeformotors.co.uk/qualityrefurbished/shop/tools/smarty/sysplugins/smarty_internal_templatelexer.php on line 452

 

The only thing I've done is enable friendly irks and put the weights in for shipping how can I fix this please?

 

Thanks for your help

Hi,

You should increase php memory limit value. Open config/config.inc.php and add @ini_set('memory_limit','128M');

for example before @ini_set('display_errors', 'off');

Edited by doubleD (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites

 

Hi,

You should increase php memory limit value. Open config/config.inc.php and add @ini_set('memory_limit','128M');

for example before @ini_set('display_errors', 'off');

 

Hi

 

I've done that and now it just shows a blank screen so I've restore the back up for now do you know what else I could do please?

 

Thank you

Share this post


Link to post
Share on other sites

Hi

 

I've done that and now it just shows a blank screen so I've restore the back up for now do you know what else I could do please?

 

Thank you

What is your Prestashop version?

You can turn on display errors to find out why the blank page is displayed

For PS 1.5.3.1 go to config/defines.inc.php and set

define('_PS_MODE_DEV_', true);

Share this post


Link to post
Share on other sites

Hi it's already set to true what do I need to do now?

 

Thank you

And what's your prestashop version?

If you use 1.4, you should also turn on @ini_set('display_errors', 'on')

 

Now, when you visit the website... are there any errors?

Edited by doubleD (see edit history)

Share this post


Link to post
Share on other sites

I have version 1.5.3.1 and still the same as you can see at http://qualityrefurb...-ipod-nano.html

And the line ini_set('memory_limit','128M'); is present in the config/config.inc.php file?

 

There is one mor possibility, If you have access to your php.ini file, or php configuration from hosting cpanel, you should set memory_limit value there.

Share this post


Link to post
Share on other sites

 

And the line ini_set('memory_limit','128M'); is present in the config/config.inc.php file?

 

There is one mor possibility, If you have access to your php.ini file, or php configuration from hosting cpanel, you should set memory_limit value there.

 

I tried setting it to 128m from 32m in the cpanel and still the same error as before

Share this post


Link to post
Share on other sites

I tried setting it to 128m from 32m in the cpanel and still the same error as before

I'm pretty sure the problem is in memory limit value.

You can try to follow this article...

and use 128 or even 256 instead of 32..

Share this post


Link to post
Share on other sites

 

I'm pretty sure the problem is in memory limit value.

You can try to follow this article...

and use 128 or even 256 instead of 32..

 

I've tried all the but still get

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /var/www/vhosts/Placeformotors.co.uk/qualityrefurbished/shop/tools/smarty/sysplugins/smarty_internal_compile_assign.php on line 51

Is it nothing to do with the file it shows in the error?

Share this post


Link to post
Share on other sites

I've tried all the but still get

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes) in /var/www/vhosts/Placeformotors.co.uk/qualityrefurbished/shop/tools/smarty/sysplugins/smarty_internal_compile_assign.php on line 51

Is it nothing to do with the file it shows in the error?

No,

You can create phpinfo.php file to see if the changes about memory_limit value were applied.

with this code

<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>

upload it and access qualityrefurbished.co.uk/shop/phpinfo.php

Find memory_limit value.

phpinfo.php

Edited by doubleD (see edit history)

Share this post


Link to post
Share on other sites

 

No,

You can create phpinfo.php file to see if the changes about memory_limit value were applied.

with this code

<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>

upload it and access qualityrefurbished.co.uk/shop/phpinfo.php

Find memory_limit value.

 

It doesn't look like its updated ill contact my hosts nd get them to sort it thank you

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More