X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Function eregi() is deprecated (https://forum.x-cart.com/showthread.php?t=56583)

ecommweb 11-15-2010 03:02 PM

Function eregi() is deprecated
 
We have upgraded the server recently to php5.3.3
It has caused some excitement, but we have managed to deal with most of the issues now. Stuck with this one below though

Its the Point of Sale module from BCE Engineerring.
They are sure its nothing to do with their module, although the errors point at their encrypted files.

Anyone know where else we could look to correct this error

Its a 4.1.9 installation


Unknown Error: Function eregi() is deprecated in /home/xxxx/public_html/xxxx/pos_files/pos_functions.php(256) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) :()'d code(1) : eval()'d code(1) : eval()'d code on line 1
Unknown Error: Function eregi() is deprecated in /home/xxxx/public_html/xxxx/pos_files/pos.php(390)

balinor 11-15-2010 03:25 PM

Re: Function eregi() is deprecated
 
Did you upgrade the Ioncube loaders?

Moving to Third Party Add-Ons

Emerson 11-15-2010 04:30 PM

Re: Function eregi() is deprecated
 
If those files are not encoded you can edit them and replace eregi with preg_match

BCSE 11-15-2010 05:17 PM

Re: Function eregi() is deprecated
 
Yes that function (eregi) is not used in our POS module. I'm not sure why your server is saying it is. I've looked at all the old archives as well. Not in there.

You can email us your zip if you want, or just those two files and we can see if the encryption mechanism has put them in there for some reason.

Carrie

Quote:

Originally Posted by ecommweb
We have upgraded the server recently to php5.3.3
It has caused some excitement, but we have managed to deal with most of the issues now. Stuck with this one below though

Its the Point of Sale module from BCE Engineerring.
They are sure its nothing to do with their module, although the errors point at their encrypted files.

Anyone know where else we could look to correct this error

Its a 4.1.9 installation


Unknown Error: Function eregi() is deprecated in /home/xxxx/public_html/xxxx/pos_files/pos_functions.php(256) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code(1) :()'d code(1) : eval()'d code(1) : eval()'d code on line 1
Unknown Error: Function eregi() is deprecated in /home/xxxx/public_html/xxxx/pos_files/pos.php(390)


balinor 11-15-2010 05:34 PM

Re: Function eregi() is deprecated
 
Interesting, just found this on a Marketing Manager install as well. Any insight on this one Carrie?

BCSE 11-15-2010 07:31 PM

Re: Function eregi() is deprecated
 
We use the same encryption software. Maybe it has to do with that?

Do you want to drop Kurt an email or should I?

Carrie

Quote:

Originally Posted by balinor
Interesting, just found this on a Marketing Manager install as well. Any insight on this one Carrie?


balinor 11-16-2010 04:47 AM

Re: Function eregi() is deprecated
 
I'll open a ticket with them

ecommweb 11-22-2010 06:37 AM

Re: Function eregi() is deprecated
 
Quote:

Did you upgrade the Ioncube loaders?

we have paid to have the ioncube loaders updated, but no joy

PHP 5.3.3 (cli) (built: Nov 17 2010 10:24:13)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.1, Copyright (c) 2002-2010, by ionCube Ltd.

Sending the files to BCSE

ecommweb 11-22-2010 06:58 AM

Re: Function eregi() is deprecated
 
Quote:

You can email us your zip if you want, or just those two files and we can see if the encryption mechanism has put them in there for some reason.

Carrie

Seems to be every file in the set affected. I just quoted the fist few lines
see here
http://www.ecommweb.co.uk/projectfiles/melk.jpg

balinor 11-22-2010 07:02 AM

Re: Function eregi() is deprecated
 
I had to get a new file from Firetank for my issue.

BCSE 11-22-2010 04:41 PM

Re: Function eregi() is deprecated
 
Hopefully you have contacted us. Our files do not use that function and never have that I see. It's likely the encryption mechanism I'm thinking.

thanks,

Carrie

Quote:

Originally Posted by ecommweb
Seems to be every file in the set affected. I just quoted the fist few lines
see here
http://www.ecommweb.co.uk/projectfiles/melk.jpg


rogue 11-23-2010 04:29 AM

Re: Function eregi() is deprecated
 
you can turn off deprecation warnings in the php.ini file with this:

error_reporting = E_ALL & ~E_DEPRECATED

or you can put it in the xcart code (I don't know where though)

error_reporting(E_ALL & ~E_DEPRECATED);

search on php.net for more info.

ecommweb 12-07-2010 10:02 AM

Re: Function eregi() is deprecated
 
BCSE agreed eventually that it was their files
Quote:

it's our encryption program doing it. We're looking into a fix for it.
unfortunately that was November 23rd and it is still not working, so best to avoid this addon if you plan to upgrade your server to php5.3 any time soon.

BCSE 12-07-2010 10:27 AM

Re: Function eregi() is deprecated
 
It's not our files though. That part isn't correct. It's our encryptor that does it. We are working with the vendor that encrypts our files for a fix. We just got one the other day but since it effects our whole distribution system, I must test it off hours. I'm hoping to have that done this week.

Thank you,

Carrie


All times are GMT -8. The time now is 03:00 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.