Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / is there a CONSTANT available for 'memory_limit = xxx' found in php.ini ?

is there a CONSTANT available for 'memory_limit = xxx' found in php.ini ?

Started by tcarden on 28 Dec 2012, 3:56 PM · Views: 971

Results 1 to 3 of 3
28 Dec 2012, 3:56 PM
#1
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

is there a CONSTANT available for 'memory_limit = xxx' found in php.ini ?

When trying to add a column to the product table i got this error -

'Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 32 bytes) in /var/www/phpmyadmin/libraries/sqlparser.lib.php on line....'

supposedly this can be fixed by changing the line, 'memory_limit =value' in the php.ini file which i don't have access to right now.

when googling that error, i found on a WordPress support site that there was a corresponding CONSTANT available for that line in the php.ini file.

In the ZenCart set up is there such a CONSTANT that i could change the value for?

big thanks

28 Dec 2012, 7:33 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: is there a CONSTANT available for 'memory_limit = xxx' found in php.ini ?

No, Zen Cart doesn't tamper with that at all. It relies on your server's php.ini settings, or any of your customizations to it via a custom php.ini or even .htaccess if allowed in your server's configuration.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Dec 2012, 11:15 PM
#3
tcarden avatar

tcarden

Zen Follower

Join Date:
Oct 2012
Posts:
282
Plugin Contributions:
0

Re: is there a CONSTANT available for 'memory_limit = xxx' found in php.ini ?

ok thanks