Guest Posted May 7, 2008 Posted May 7, 2008 I've invested days into getting my OSC cart setup and designed - all with the intentions of using Multicards as my processor. And of course I have the Multicards 2.2 module installed. I had Multicards test my cart and they replied to me saying that my cart was receiving an error: The callback.php receives this error message: error(s):\nIncorrect PageID\n\n Multicards further looked into the error and came up with this: "Cannot redeclare class order_total in" + /includes/classes/order_total.php" I've given Muticards Support team access to my server and my OSC admin area... still no luck. I've even gone so far as to test the Multicards module in a fresh upload of OSC and I'm still getting the same error. Can anyone lend some advise here?
arietis Posted May 8, 2008 Posted May 8, 2008 I had Multicards test my cart and they replied to me saying that my cart was receiving an error:The callback.php receives this error message: error(s):\nIncorrect PageID\n\n i don't know anything about this, but multicards should be able to tell you what it means and how to resolve it. "Cannot redeclare class order_total in" + /includes/classes/order_total.php" this happens when a class definition is encountered a second (or more) time. somehow, you are including the order_total.php file twice. look through the script that you're running and examine all the include() and require() statements - even the include()/require() statements in those included files, as this is most likely where the problem is. i know, it's going to be tedious, but you have to find this needle in your haystack. one way to get around this would be to change your include() to include_once() and the require() to require_once(). this tells the php processor to include the file, but the second time it encounters the same file name to be included, it ignores it. basically, it lets the php compiler keep track of the files that have been included so you don't have to. but if you're using php versions less than 4.0.1 this won't work as the include_once() is only available in this or later versions. http://us.php.net/manual/en/function.include-once.php so in this script, and it's included files, just change the include(...'order_total.php') to include_once(...'order_total.php') for each occurrence. i hope this helps.
Guest Posted May 19, 2008 Posted May 19, 2008 I canged it to _once but it still giving me the same problem??? i don't know anything about this, but multicards should be able to tell you what it means and how to resolve it. this happens when a class definition is encountered a second (or more) time. somehow, you are including the order_total.php file twice. look through the script that you're running and examine all the include() and require() statements - even the include()/require() statements in those included files, as this is most likely where the problem is. i know, it's going to be tedious, but you have to find this needle in your haystack. one way to get around this would be to change your include() to include_once() and the require() to require_once(). this tells the php processor to include the file, but the second time it encounters the same file name to be included, it ignores it. basically, it lets the php compiler keep track of the files that have been included so you don't have to. but if you're using php versions less than 4.0.1 this won't work as the include_once() is only available in this or later versions. http://us.php.net/manual/en/function.include-once.php so in this script, and it's included files, just change the include(...'order_total.php') to include_once(...'order_total.php') for each occurrence. i hope this helps.
arietis Posted May 19, 2008 Posted May 19, 2008 I canged it to _once but it still giving me the same problem??? did you change both of the include()s to include_once() ?
Guest Posted May 19, 2008 Posted May 19, 2008 yes i did... you can see what i talk about on my store http://www.gatassandunguerasdvdstore.com did you change both of the include()s to include_once() ?
arietis Posted May 20, 2008 Posted May 20, 2008 yes i did... you can see what i talk about on my store http://www.gatassandunguerasdvdstore.com i clicked around to a few different pages and didn't see the error. can you direct me to a specific page on your site where you're having this problem?
Guest Posted May 20, 2008 Posted May 20, 2008 is after a customer does an order using the multicards module.... after is approved it goes to the checkout process.php and then it gives me an error... you can try, sign up and try to order using multicards and youll see what happens i clicked around to a few different pages and didn't see the error. can you direct me to a specific page on your site where you're having this problem?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.