CubeCart v3 and PHP 5.3.x: Difference between revisions

From Acenet Knowledgebase
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 5: Line 5:
<pre>Deprecated: Function eregi() is deprecated in ...</pre>
<pre>Deprecated: Function eregi() is deprecated in ...</pre>


This solution is taken from the CubeCart forums here:<br /> <br /> http://forums.cubecart.com/topic/39139-installation-on-thumbdrive-problem/page__p__166757<br /> <br /> To address this problem, edit the file:<br /> <br /> includes/ini.inc.php<br /> <br /> and change:<br /> <br /> error_reporting(E_ALL ^ E_NOTICE);<br /> <br /> to:<br /> <br /> error_reporting(E_ALL  and  ~(E_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED));<br /> <br /> It is also suggested to update the file:<br /> <br /> admin/filemanager/upload.php<br /> <br /> and add the line:<br /> <br /> include("../../includes/ini.inc.php");<br /> <br /> below this line:<br /> <br /> // Init var :<br /> <br /> This will disable warnings regarding deprecated functions.  The E_DEPRECATED flag only provides warnings regarding features that will not work in the future.  The eregi() function still operates correctly, but will not be supported in a future version of PHP.  At this time, it is important to begin considering migrating to another shopping cart solution or upgrade to the pay version of CubeCart.  Once the eregi() function is removed from a future version of PHP, CubeCart v3 will no longer function correctly.</html> [[Category:CubeCart]]
This solution is taken from the CubeCart forums here:
 
http://forums.cubecart.com/topic/39139-installation-on-thumbdrive-problem/page__p__166757
 
To address this problem, edit the file:
 
<pre>includes/ini.inc.php</pre>
 
and change:
 
<pre>
error_reporting(E_ALL ^ E_NOTICE);
</pre>
 
to:
 
<pre>
error_reporting(E_ALL  and  ~(E_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED));
</pre>
 
It is also suggested to update the file:
 
<pre>admin/filemanager/upload.php</pre>
 
and add the line:
 
<pre>
include("../../includes/ini.inc.php");</pre>
 
below this line:
 
<pre>
// Init var :
</pre>
 
This will disable warnings regarding deprecated functions.  The E_DEPRECATED flag only provides warnings regarding features that will not work in the future.  The eregi() function still operates correctly, but will not be supported in a future version of PHP.  At this time, it is important to begin considering migrating to another shopping cart solution or upgrade to the pay version of CubeCart.  Once the eregi() function is removed from a future version of PHP, CubeCart v3 will no longer function correctly.
 
[[Category:CubeCart]]

Latest revision as of 17:55, 4 October 2012

CubeCart v3.0.17 is the latest version available through Fantastico. After this version, CubeCart became a pay product and is no longer freely available.

PHP 5.3.x compatibility updates for CubeCart are only available in later versions of CubeCart than what is freely available via Fantastico. When CubeCart is run on PHP 5.3.x, you may notice the following errors:

Deprecated: Function eregi() is deprecated in ...

This solution is taken from the CubeCart forums here:

http://forums.cubecart.com/topic/39139-installation-on-thumbdrive-problem/page__p__166757

To address this problem, edit the file:

includes/ini.inc.php

and change:

error_reporting(E_ALL ^ E_NOTICE);

to:

error_reporting(E_ALL  and  ~(E_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED));

It is also suggested to update the file:

admin/filemanager/upload.php

and add the line:

include("../../includes/ini.inc.php");

below this line:

// Init var :

This will disable warnings regarding deprecated functions. The E_DEPRECATED flag only provides warnings regarding features that will not work in the future. The eregi() function still operates correctly, but will not be supported in a future version of PHP. At this time, it is important to begin considering migrating to another shopping cart solution or upgrade to the pay version of CubeCart. Once the eregi() function is removed from a future version of PHP, CubeCart v3 will no longer function correctly.