Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hi guys this is my first post im not sure if it is in the right place but some help would be most apreciated

I am getting these messages when i check out.

 

Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\auspost.php on line 84

 

Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\auspost.php on line 84

 

Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\auspost.php on line 84

 

Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\auspostexpress.php on line 85

 

Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\auspostexpress.php on line 85

 

Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\auspostexpress.php on line 85

 

Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\insuredauspost.php on line 84

 

Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\insuredauspost.php on line 84

 

Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\insuredauspost.php on line 84

 

Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\insuredauspostexpress.php on line 85

 

Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\insuredauspostexpress.php on line 85

 

Deprecated: Function split() is deprecated in C:\wamp\www\catalog\includes\modules\shipping\insuredauspostexpress.php on line 85

 

 

I am aware of the need to change split() to explode or preg_split etc but i don't understand what other characters i need to change to make it work

here is the code.

 

 

 

$myfile = file($url);

foreach($myfile as $vals)

{

$bits = split("=", $vals);

$$bits[0] = $bits[1];

}

 

if ($charge <= 0) {

$error = true;

} else {

 

 

I have fixed many other deprecated issues by following previous posts of other uses but i can not find the solution to this one.

thanks in advance to any one who can help.

Posted

$bits = split("=", $vals);

$$bits[0] = $bits[1];

Have you tried replacing the split with explode?

 

Looks like they will do the exact same thing in this case.

Posted

Have you tried replacing the split with explode?

 

Looks like they will do the exact same thing in this case.

 

 

ha awsome. sorry my bad I did it only to two of the shipping/auspost...php instead of all four of them easy fix.

its all working fine.

Thank you for the quick reply.

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...