VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: skifteri on September 28, 2012, 14:33:57 PM

Title: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate
Post by: skifteri on September 28, 2012, 14:33:57 PM
I dont have access to php.ini  .I know that I have to increase the file size limit in htacccess but I dont know how. i have a file htaccess.txt but without a limitation inside it. Any suggestion?
Title: Re: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate
Post by: bytelord on September 28, 2012, 15:12:08 PM
Hello,

First if you are using apache you have to rename the file to .htaccess. Then under joomla global configuration you have to enable Use URL rewriting

After that edit your .htaccess and place the line:


php_value memory_limit 64M

or

php_value memory_limit 128M

Depends on your needs

Regards

Title: Re: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate
Post by: skifteri on September 28, 2012, 15:28:30 PM
Hi. I have enabled URL rewriting. On what part of .htaccess i should add php_value memory_limit 128M? I'v added like below but with no results.
"
##
# @package      Joomla
# @copyright   Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
# @license      GNU General Public License version 2 or later; see LICENSE.txt
##
php_value memory_limit 128M
##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!

Title: Re: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate
Post by: jenkinhill on September 28, 2012, 16:06:27 PM
The position does not matter, although convention says put it at the end. Note that many of the cheaper shared hosts do not permit php memory overrides.