Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP fatal error - need immediate help!


fireboy63

Recommended Posts

Posted

Hey there, wizards of the OSC forums...

 

I got a call this morning from one of our clients saying that he couldn't login to the OS Commerce administration interface (you know, where you can change settings, see a list of customers, see current orders, etc.) My client got a call from several of *HIS* clients, saying they had placed an order WEEKS ago and hadn't received their products yet. When he went to go login to the OSC admin, he received the following message:

 

PHP Fatal error: Call to undefined function: efine() in E:\hshome\username\websitename\admin\includes\languages\english.php on line 224

 

(*Note: "username" and "websitename" have been changed above to protect the innocent.) ; )

 

Can anybody tell me more about this error? From what I can tell, it has something to do with a bunk or rejected password. When I reset the shopping cart, it goes back to working fine, but the shopping cart loses all of it's customization (all text, color changes, etc. disappear).

 

HELP!!! Thanks!

Posted

Please note the error is "efine" in line 224. Open that file and it should be "define". You must have been making some changes to your files and deleted the "d".

 

Hope that helps.

 

Ruth in AZ

 

 

Hey there, wizards of the OSC forums...

 

I got a call this morning from one of our clients saying that he couldn't login to the OS Commerce administration interface (you know, where you can change settings, see a list of customers, see current orders, etc.) My client got a call from several of *HIS* clients, saying they had placed an order WEEKS ago and hadn't received their products yet. When he went to go login to the OSC admin, he received the following message:

 

PHP Fatal error: Call to undefined function: efine() in E:\hshome\username\websitename\admin\includes\languages\english.php on line 224

 

(*Note: "username" and "websitename" have been changed above to protect the innocent.)  ; )

 

Can anybody tell me more about this error? From what I can tell, it has something to do with a bunk or rejected password. When I reset the shopping cart, it goes back to working fine, but the shopping cart loses all of it's customization (all text, color changes, etc. disappear).

 

HELP!!! Thanks!

Posted

Did you also change define() to efine() in the above error text?

 

If not then fix line 224 in english.php - someone must have munged an edit.

 

HTH

Tom

Posted

Yeah, I noticed the "efine" instead of "define" thing, too...but when I go to the notorious "line 224" in the english.php file, it says "define" there just like it should. (I am accessing the PHP code through Dreamweaver MX, but have checked it from within the admin interface, as well...again, both are correct.)

 

The error message again read:

 

PHP Fatal error: Call to undefined function: efine() in E:\hshome\username\websitename\admin\includes\languages\english.php on line 224

 

When I look at the above tag again, I notice it says the error resides on the E: drive of the server. Since we do hosting reselling via another company, I don't physically have the server here in front of me (nor would I know what to do if I did!). I'm wondering if the guys who are the techies for our particular server accidentally deleted the "d" in line 224 on their end?

 

Otherwise, everything looks correct from my side of the server... :\

 

(Thanks for the responses, BTW - always good to get help from those who know.)

Posted

Yes, I would check with them. BTW you are looking at the admin/includes/languages/english.php (and not the catalog)?

 

If need be post the english.php for good folks with sharp eyes to take a look at.

 

HTH

Tom

Posted

Thanks again for looking into this...here's what I can tell:

 

Line 224 in the catalog/includes/languages/english.php file reads like this:

 

define('ENTRY_PASSWORD_NEW_ERROR_NOT_MATCHING', 'The Password Confirmation must match your new Password.');

 

...while line 224 in the admin/includes/languages/english.php reads:

 

define('IMAGE_NEW_TAX_ZONE', 'New Tax Zone');

 

The first PHP file and the second seem to control different things, and are laid out differently, as well. The top file (the 'catalog' version) controls a password, which I think is the root of the problem, since you cannot login to the admin panel as part of this problem. I don't think a "tax zone" image would be the root of all this evil. Since I work in Dreamwevaer, it will validate code for me before I save and upload it anywhere. It seems to find no problems with the existing code, either.

 

What a complex issue...I hope there is a simple answer for this but, as in most things computer-related, I'm sure there isn't. ;)

Posted
Thanks again for looking into this...here's what I can tell:

 

Line 224 in the catalog/includes/languages/english.php file reads like this:

 

define('ENTRY_PASSWORD_NEW_ERROR_NOT_MATCHING', 'The Password Confirmation must match your new Password.');

 

...while line 224 in the admin/includes/languages/english.php reads:

 

define('IMAGE_NEW_TAX_ZONE', 'New Tax Zone');

 

The first PHP file and the second seem to control different things, and are laid out differently, as well. The top file (the 'catalog' version) controls a password, which I think is the root of the problem, since you cannot login to the admin panel as part of this problem. I don't think a "tax zone" image would be the root of all this evil. Since I work in Dreamwevaer, it will validate code for me before I save and upload it anywhere. It seems to find no problems with the existing code, either.

 

What a complex issue...I hope there is a simple answer for this but, as in most things computer-related, I'm sure there isn't.  ;)

 

 

just use a program like AM-CodeSearch to scan a local copy of the store for that string. heck of a lot quicker...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...