Hey guys, woke up and noticed that I was getting a similar error to this below in the admin backend. This was based on the amazon checkout, I went ahead and removed the amazon checkout and was left with the following on my checkout.php...
Deprecated: Function split() is deprecated in ...public_html/googlecheckout/gcheckout.php on line 127
What is this error? Anyone know how we can fix this? Please help thank you.
Latest News: (loading..)
Deprecated: Function Split() is deprecated ... error on checkout.
Started by vashichino7, May 02 2012 04:51 PM
7 replies to this topic
#-19
Posted 02 May 2012 - 04:51 PM
#-18
Posted 02 May 2012 - 05:06 PM
read about a few places saying the following:
$resticted_categories = split('([ ]?[,][ ]?)',MODULE_PAYMENT_GOOGLECHECKOUT_RESTRICTED_CATEGORIES);
make to this -----
$resticted_categories = preg_split('/ ?, ?/',
MODULE_PAYMENT_GOOGLECHECKOUT_RESTRICTED_CATEGORIES);
I have fixed it to this and it seems to be working...what do you guys think?
$resticted_categories = split('([ ]?[,][ ]?)',MODULE_PAYMENT_GOOGLECHECKOUT_RESTRICTED_CATEGORIES);
make to this -----
$resticted_categories = preg_split('/ ?, ?/',
MODULE_PAYMENT_GOOGLECHECKOUT_RESTRICTED_CATEGORIES);
I have fixed it to this and it seems to be working...what do you guys think?
#-17
Posted 02 May 2012 - 06:24 PM
Yeah, that looks OK. This assumes either 0 or 1 blank on either side of the comma. Consider changing ? to * to catch "0 or more" blanks.
Your host upgraded to PHP 5.3 and you still had some code with deprecated functions in it. Read about it on http://us.php.net/manual/en/migration53.deprecated.php . Is the Amazon Checkout not PHP 5.3-compatible? If so, you can probably fix it up.
Your host upgraded to PHP 5.3 and you still had some code with deprecated functions in it. Read about it on http://us.php.net/manual/en/migration53.deprecated.php . Is the Amazon Checkout not PHP 5.3-compatible? If so, you can probably fix it up.
#-15
Posted 07 May 2012 - 10:28 PM
@MrPhil So I am trying to reinstall the amazon checkout and I get a few deprecated errors, it is the following:
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/HTTP-1.4.3/HTTP/Request.php on line 402
which is: - $this->_url = &new Net_URL($url, $this->_useBrackets);
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/HTTP-1.4.3/HTTP/Request.php on line 722
which is: - $this->_sock =& new Net_Socket();
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/HTTP-1.4.3/HTTP/Request.php on line 735
which is: - $this->_response = &new HTTP_Response($this->_sock, $this->_listeners);
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/HTTP-1.4.3/HTTP/Request.php on line 780
which is: - $this->_url = &new Net_URL($redirect);
I tried using the link which you stated, but I am not understanding how to fix these issues. what do you think is the best way?
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/HTTP-1.4.3/HTTP/Request.php on line 402
which is: - $this->_url = &new Net_URL($url, $this->_useBrackets);
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/HTTP-1.4.3/HTTP/Request.php on line 722
which is: - $this->_sock =& new Net_Socket();
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/HTTP-1.4.3/HTTP/Request.php on line 735
which is: - $this->_response = &new HTTP_Response($this->_sock, $this->_listeners);
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/HTTP-1.4.3/HTTP/Request.php on line 780
which is: - $this->_url = &new Net_URL($redirect);
I tried using the link which you stated, but I am not understanding how to fix these issues. what do you think is the best way?
#-14
Posted 07 May 2012 - 10:59 PM
@MrPhil here is a few more, sorry i do not mean to spam you just trying to provide more info to help hopefully...
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/merchantAtAPIs/lib/amazon/amazon_merchant_at_soap_client.php on line 142
$parser = & new XML_Unserializer();
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/SOAP-0.12.0/SOAP/WSDL.php on line 214
$parser =& new $this->wsdlParserClass($wsdl_uri, $this, $this->docs);
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/SOAP-0.12.0/SOAP/WSDL.php on line 791
$proxy =& new $classname;
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/SOAP-0.12.0/SOAP/WSDL.php on line 1159
$this->cache =& new SOAP_WSDL_Cache($wsdl->cacheUse,
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/SOAP-0.12.0/SOAP/WSDL.php on line 1685
$import_parser =& new $import_parser_class($uri, $this->wsdl, $this->docs);
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/XML_Serializer-0.19.0/XML/Unserializer.php on line 801
$value['value'] = &new $classname;
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/XML_Serializer-0.19.0/XML/Unserializer.php on line 804
&new $this->options[XML_UNSERIALIZER_OPTION_DEFAULT_CLASS];
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/XML_Serializer-0.19.0/XML/Unserializer.php on line 974
$this->_parser = &new XML_Parser($this->
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/XML_Parser-1.3.1/XML/Parser.php on line 616
$err = &new XML_Parser_Error($msg, $ecode);
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/merchantAtAPIs/lib/amazon/amazon_merchant_at_soap_client.php on line 142
$parser = & new XML_Unserializer();
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/SOAP-0.12.0/SOAP/WSDL.php on line 214
$parser =& new $this->wsdlParserClass($wsdl_uri, $this, $this->docs);
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/SOAP-0.12.0/SOAP/WSDL.php on line 791
$proxy =& new $classname;
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/SOAP-0.12.0/SOAP/WSDL.php on line 1159
$this->cache =& new SOAP_WSDL_Cache($wsdl->cacheUse,
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/SOAP-0.12.0/SOAP/WSDL.php on line 1685
$import_parser =& new $import_parser_class($uri, $this->wsdl, $this->docs);
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/XML_Serializer-0.19.0/XML/Unserializer.php on line 801
$value['value'] = &new $classname;
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/XML_Serializer-0.19.0/XML/Unserializer.php on line 804
&new $this->options[XML_UNSERIALIZER_OPTION_DEFAULT_CLASS];
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/XML_Serializer-0.19.0/XML/Unserializer.php on line 974
$this->_parser = &new XML_Parser($this->
Deprecated: Assigning the return value of new by reference is deprecated in /home/savingsh/public_html/checkout_by_amazon/library/XML_Parser-1.3.1/XML/Parser.php on line 616
$err = &new XML_Parser_Error($msg, $ecode);
#-13
Posted 08 May 2012 - 12:49 AM
I did some reading and I guess just removing the "&" after the = sign will allow for the PHP to read it correct, I went ahead and did it to all and the module is working fine... fixed? maybe what you guys think?
#-12
Posted 08 May 2012 - 02:05 AM
How long ago did you obtain this Amazon code? PHP 5.3 has been out long enough that I would think that Amazon (or whoever the author is) has updated their code by now. You might want to see if there is an upgraded version of the add-on you could use. Remove the old add-on and replace it with the new (after making a backup just in case...).
I have no idea if your edit is correct, but it sounds plausible. It seems to work correctly after making that change?
I have no idea if your edit is correct, but it sounds plausible. It seems to work correctly after making that change?









