Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2) - HELP PLEASE!

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 09-09-2014, 02:00 AM
 
kokeyuk1 kokeyuk1 is offline
 

Member
  
Join Date: Jul 2013
Posts: 24
 

Exclamation ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2) - HELP PLEASE!

ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2)

Allowed memory size of 268435456 bytes exhausted (tried to allocate 16777216 bytes)

We are getting this error message on our site. Nothing is currently being uploaded or changed etc.

What is this error and how can we fix it?

Thanks in advance.

__________________
WBK3p2snmcUwpP0V1MtfpCuV6qUAD282
Reply With Quote
  #2  
Old 09-09-2014, 03:34 AM
  Ksenia's Avatar 
Ksenia Ksenia is offline
 

X-Cart team
  
Join Date: Apr 2013
Posts: 735
 

Default Re: ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2) - HELP PLEASE!

Hi!
What version and Edition of X-Cart are you using? Please add it to your signature.

Also, it's always useful ro describe the issues you face in as many details as possible: where do you see the problem, what you did before it appeared and so on.

Quote:
Originally Posted by kokeyuk1
ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2)

Allowed memory size of 268435456 bytes exhausted (tried to allocate 16777216 bytes)
What is this error and how can we fix it?

This error means that the server ran out of memory for some reason. Or, probably there's some memory, but it can not be used because of memory_limit value set in php.ini

Thus the easiest way to fix it is to contact your hosting provider and ask to increase the memory limit.
__________________
X-Cart team

Last edited by Ksenia : 09-09-2014 at 03:38 AM.
Reply With Quote

The following user thanks Ksenia for this useful post:
totaltec (09-09-2014)
  #3  
Old 11-03-2014, 03:51 AM
 
AAPLA AAPLA is offline
 

Newbie
  
Join Date: Jul 2014
Location: US
Posts: 6
 

Default Re: ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2) - HELP PLEASE!

I'm hitting the same error when trying to enable 'Clean URLs'. The current limit I have set is: memory_limit = 128M

What do you recommend setting the memory limit to?
__________________
X-Cart 5.1.9 (win)
Reply With Quote
  #4  
Old 11-03-2014, 04:37 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2) - HELP PLEASE!

The preferable memory_limit is more than 256M.

kokeyuk1 how many products do you have? Anyway, increasing memory limit to 512M-1024M should help.

Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #5  
Old 11-04-2014, 12:31 PM
 
AAPLA AAPLA is offline
 

Newbie
  
Join Date: Jul 2014
Location: US
Posts: 6
 

Default Re: ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2) - HELP PLEASE!

My provider updated the memory limit to over 256MB as recommended, but the issue remains. The error page layout changed a little now, but seems to be the same error message.

I attached a screenshot of the error and included the text below.

ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2)
Call to a member function map() on a non-object

Any advice on what else it might be? So far I'm only hitting this error when I try to enable Clean URLs from the Environment page.
Attached Thumbnails
Click image for larger version

Name:	FATAL_ERROR (code 2).jpg
Views:	343
Size:	71.9 KB
ID:	3973  
__________________
X-Cart 5.1.9 (win)
Reply With Quote
  #6  
Old 11-11-2014, 07:53 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2) - HELP PLEASE!

Hi AALPA!

This problem is caused by the fact that you are missing a record with name "clean_url_flag" in xc_config table of your X-Cart.

Our support team can help you to fix the problem and find its origin. Just drop us a message at support@x-cart.com
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #7  
Old 09-05-2016, 02:21 AM
 
chamitrail@gmail.com chamitrail@gmail.com is offline
 

Newbie
  
Join Date: Sep 2016
Posts: 2
 

Question Re: ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2) - HELP PLEASE!

I do have the same issue. I quadrupled my memory_limit in php.ini file. Since this is an installation of the sample XCart I don't think the issue is a missing record. But after doing all these my X-Cart's front end still doesn't work.

The followin error.....

An error occurred in your store.
ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 786432 bytes)

is anyway still there & no remedy did work for it !!!
Attached Thumbnails
Click image for larger version

Name:	ERROR on Server.png
Views:	281
Size:	76.9 KB
ID:	4668  
__________________
imahc
Reply With Quote
  #8  
Old 09-05-2016, 09:28 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2) - HELP PLEASE!

Quote:
Originally Posted by chamitrail@gmail.com
Allowed memory size of 134217728 bytes exhausted (tried to allocate 786432 bytes)

Your memory_limit is set to 128MB. Your server is likely 64-bit, so you should increase it up to 256MB, at least.
Please check this page:
http://kb.x-cart.com/en/general_setup/installation_guide.html#server-requirements

-----

Also, you should restart the web server after editing php.ini, otherwise the changes won't take effect.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #9  
Old 09-05-2016, 12:17 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2) - HELP PLEASE!

This is happening on my test installation all the time. After installing a module, after cache regeneration, after not being to store front for days and then try to load it... It goes away on screen refresh but then eventually happens again. It has something to do with Less.php class.
QT has been looking at the issue for a while now - few months - and nothing yet. It was happening on 5.2.x and now same is on 5.3.x.
It doesn't really matter how much memory you allocate to PHP - I have 256 but tried with even 500 - it always reports same numbers for the "out of memory error".

"Out of memory (allocated 133955584) (tried to allocate 1966080 bytes)"

So this is definitely an XC issue. Whether is due to some specific server settings or not I don't know.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #10  
Old 09-05-2016, 08:49 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2) - HELP PLEASE!

@chamitrail:
Did restarting the web server help?

@Steve:
I see number of "out of memory" tickets at http://bt.x-cart.com/, but all of them were solved by increasing the memory limit up to 256MB. Also, there are a few tickets with bugs causing the error, but as far as I see all these bugs are fixed by now.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions

Last edited by qualiteam : 09-05-2016 at 08:55 PM.
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:55 AM.

   

 
X-Cart forums © 2001-2020