Author Topic: Error on Website  (Read 7075 times)

Offline sandy123

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-6
    • View Profile
    • Indian Saree Mandir
Error on Website
« on: July 03, 2014, 03:04:46 AM »
I am using the AbanteCart from long back and now my site is facing an  error when the url is typed in the browser

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 90097 bytes) in /home/indiasar/public_html/store/storefront/controller/blocks/content.php on line 87                  please help me to resolve this error to run the website.

Regards
Sandeep

Offline natdroid

  • Full Member
  • ***
  • Posts: 113
  • Karma: +36/-3
    • View Profile
Re: Error on Website
« Reply #1 on: July 03, 2014, 06:33:38 AM »
Edit your php.ini file. set memory_limit = 128M or higher

Offline sandy123

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-6
    • View Profile
    • Indian Saree Mandir
Re: Error on Website
« Reply #2 on: July 03, 2014, 07:45:04 AM »
htacess do u mean to say or where in cpanel the file is available to edit in the folder or else where

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5797
  • Karma: +274/-2
    • View Profile
Re: Error on Website
« Reply #3 on: July 03, 2014, 09:15:30 AM »
Hello.

Please use forum search there is a lot of similar topics

Offline sandy123

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-6
    • View Profile
    • Indian Saree Mandir
Re: Error on Website
« Reply #4 on: July 08, 2014, 08:18:19 AM »
as per the given details i made the changes to php ini setting still there is the same error on my site.

Allowed memory size of 536870912 bytes exhausted (tried to allocate 92101 bytes) in /home/indiasar/public_html/store/storefront/controller/blocks/content.php on line 87

Below is the setting code of the php ini file the memory_limit is 512.
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 600;
max_input_time = 600;
memory_limit = 512M

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5797
  • Karma: +274/-2
    • View Profile
Re: Error on Website
« Reply #5 on: July 08, 2014, 09:50:28 AM »
Hello.

Please contact your hosting provider to make sure you have not host issues and able to control you memory size
Quote
For some restricted environment, such as shared hosting user, it’s impossible to change php.ini.

Try to change memory in this way
Quote
Find the “.htaccess” in your root directory of the specified domain, if there isn’t, create one. Put the following line in it.
php_value memory_limit 128M ; Change the 128M to your needs

Offline sandy123

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +3/-6
    • View Profile
    • Indian Saree Mandir
Re: Error on Website
« Reply #6 on: July 09, 2014, 02:23:03 AM »
the same line is added to the .htacess as per your instruction the below is the

SetEnv PHPRC /home/indiasar/public_html
RewriteEngine on
RewriteCond %{HTTP_HOST} ^indiansareemandir\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.indiansareemandir\.com$
RewriteRule ^/?$ "http\:\/\/indiansareemandir\.com\/store\/" [R=302,L]

RewriteCond %{HTTP_REFERER} !^http://indiansareemandir.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://indiansareemandir.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.indiansareemandir.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.indiansareemandir.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
php_value memory_limit 128M ;



and the error is faced

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@indiansareemandir.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5797
  • Karma: +274/-2
    • View Profile
Re: Error on Website
« Reply #7 on: July 09, 2014, 03:33:20 AM »
Hi, sandy123

Please contact your hosting provider

 

Powered by SMFPacks Social Login Mod