Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/253.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/159.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP 5.3.8的jCart错误_Php_Shopping Cart - Fatal编程技术网

PHP 5.3.8的jCart错误

PHP 5.3.8的jCart错误,php,shopping-cart,Php,Shopping Cart,当我在PHP 5.3.8上使用库时,我发现了如下错误 Notice: Undefined index: jcart in D:\Website\JCART\jcart\jcart.php on line 588 Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 80 Deprecated: Assigning the

当我在PHP 5.3.8上使用库时,我发现了如下错误

Notice: Undefined index: jcart in D:\Website\JCART\jcart\jcart.php on line 588

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 80

Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 166

Notice: Undefined variable: config in D:\Website\JCART\jcart\config-loader.php on line 13

Notice: Undefined index: text in D:\Website\JCART\jcart\config-loader.php on line 14

Notice: Undefined index: singleItem in D:\Website\JCART\jcart\config-loader.php on line 15

Notice: Undefined index: multipleItems in D:\Website\JCART\jcart\config-loader.php on line 16

Notice: Undefined index: subtotal in D:\Website\JCART\jcart\config-loader.php on line 17

Notice: Undefined index: update in D:\Website\JCART\jcart\config-loader.php on line 18

Notice: Undefined index: checkout in D:\Website\JCART\jcart\config-loader.php on line 19

Notice: Undefined index: checkoutPaypal in D:\Website\JCART\jcart\config-loader.php on line 20

Notice: Undefined index: removeLink in D:\Website\JCART\jcart\config-loader.php on line 21

Notice: Undefined index: emptyButton in D:\Website\JCART\jcart\config-loader.php on line 22

Notice: Undefined index: emptyMessage in D:\Website\JCART\jcart\config-loader.php on line 23

Notice: Undefined index: itemAdded in D:\Website\JCART\jcart\config-loader.php on line 24

Notice: Undefined index: priceError in D:\Website\JCART\jcart\config-loader.php on line 25

Notice: Undefined index: quantityError in D:\Website\JCART\jcart\config-loader.php on line 26

Notice: Undefined index: checkoutError in D:\Website\JCART\jcart\config-loader.php on line 27

Notice: A session had already been started - ignoring session_start() in D:\Website\JCART\index.php on line 4
我在这个论坛上尝试了以下解决方案:


但我还没有找到解决这个问题的办法。如何解决这个问题?

tos是基本的php变量设置-在所有$config变量前面加一个@符号,它们应该消失-或者用一个isset替换,但@符号更容易:ie

if(!$config... 

change to:

if(!@$config...
也可以改变

$config to @$config - use the error msgs to locate file and line number ;)

顺便说一句,这在xampp上不起作用-但在wamp和linux上由于一些奇怪的原因可以正常运行

错误报告(E_ALL&~(E_DEPRECATED | E_NOTICE))
它不会修复它,但会隐藏混乱。我建议你找一辆更好的购物车。谢谢你的回复@FstaRocka