0

i tried to call cart.info api, but it said memory exhausted bla bla bla. Any idea to fix this ?

i've tried to increase the memory limit to 4 gb, but it doesn't seem to fix anything.

thanks!

asked Jan 30, 2017 at 10:00

1 Answer 1

0

First of all a few pre-checks to be sure we are looking at the correct issue.

Have you checked in your phpinfo() if indeed your scripts run at 4gb memory. If not u should update your php.ini or .htaccess file to increase memory. for example, .htaccess

 php_value memory_limit 265M
 php_value max_execution_time 18000

If thats all ok, have your tried making a smaller query and does that work?

Be aware, if you run on a shared server, the hoster probably pinned you down on a X amount of memory. Having 4GB of memory does not say your php settings reflect that as well. if the php.ini, or .htaccess does not reflect you phpinfo(); response. Than you should contact your hoster.

answered Jan 30, 2017 at 10:08
1
  • hi Kay, thanks for replying, but your solution is not working, i changed the memory limit both in the php.ini and .htaccess, my phpinfo() said that the memory_limit is already 1G, and i also change the memory_limit in the .htaccess to 1G. my query is simple, i just want to get the shippingaddress from a quote. thats it. $quote->getShippingAddress() Commented Feb 2, 2017 at 5:27

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.