♥kymation Posted February 20, 2010 Share Posted February 20, 2010 No, if no warnings were output, the function would still fail. It would have generated a warning anyway; that behavior has been in PHP since 3.1 (and probably before; I just don't remember.) 1. It shouldn't be an array, it should be a string. 2. No, it's set in in $shipping_data = $_POST['shipping_' . $vendor_id]; You're real close to the bug though. I think I've found it, based on what you are telling me. It's a Session error, probably caused by Register Globals being off and the rules being strictly enforced. This may have happened in PHP 5.3 or it may just be a combination of the settings on your server. Anyway, the bug is near the end of the code that you posted above: $shipping = array('id' => $shipping, Note that the final $shipping can have two values at this point: The Initial value of the variable set up above (an empty array) and the session variable that has previously been set. It appears that previous versions of PHP (and possibly 5.3 if it's set up a certain way) would use the Session variable. This is not happening in your case. So, just to find out if I'm anywhere near right, try replacing the line above with $shipping = array('id' => $SESSION['shipping'], Please let me know what that does. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.