princetrunks Posted March 27, 2011 Share Posted March 27, 2011 Normally I use the help of previous topics to help but this error seems rather unique (or new) to me. First off after many trails and errors, I finally was able to get Google Checkout and Amazon Checkout to work with my store and it's initial Paypal setup. Amazon Checkout was working fine for about a month and Google Checkout was working fine for the past 2 plus weeks. Since then I was able to leave the site updates to just adding products and processing orders. I had one customer who bought a few times from me the past few days and then all of a sudden he tries to order late last night and emails me of this error. Actually it seems to be a slew of errors tied together all of a sudden, most of them pertaining to the Fatal error: Cannot redeclare class error My login.php, checkout.php and shopping_cart.php all have this error pertaining to either the google checkout or amazoncheckout button. I can comment out the buttons but even at the checkout, it eventually goes to a white page with the error: Fatal error: Cannot redeclare class OrderStatusHistoryDAO in /hermes/bosweb/web270/b2706/glo.princetrunks/catalog/checkout_by_amazon/checkout_by_amazon_order_status_history_dao.php on line 32 This happens on the https://chucksanimeshrine.com/catalog/checkout_payment.php page. Seeing this I of course go to these different files to search for any possible duplicate class calls... as expected, none were found since there were no updates done internally since two weeks back. I try to go to my admin's payment module page and even there I'm seeing this error: Fatal error: Cannot redeclare class objectInfo in /hermes/bosweb/web270/b2706/glo.princetrunks/catalog/admin/includes/classes/object_info.php on line 13 So now all of a sudden, I can't even shut off my amazon and google modules if I wanted to. The next solution I thought to do was to enable all of the session options since maybe it's a session error...but no matter how I mix up the session options..nothing happens. I had them all as false anyways for the past few weeks and all was fine until now. I also noticed when I log into my own customer account in the store... the cart would be empty but it will still bring me almost all the way through checkout and an item is "stuck" in the Order history tab on the right panel. I created a fresh test account and that error wasn't happening (just the Fatal error: Cannot redeclare class error with checkout completely useless of course) I've been spending way too much time trying to fix this so hopefully somebody might know how to fix this or at least direct me to where I need to look. Thanks in advance for any help. Link to comment Share on other sites More sharing options...
satish Posted March 27, 2011 Share Posted March 27, 2011 Cannot redeclare class error with checkout completely useless: 1. Check if a .php file renamed having same class exist in folder where classes are. 2. Check if by chance you replaced language file with class file. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
princetrunks Posted March 27, 2011 Author Share Posted March 27, 2011 Hi Satish, Nothing was added or changed but I double checked and 1) the classes declared in the class folder are all unique and 2) all the language files are language files and have no class declarations. This is extremely odd since all was fine until after a customer did an order and I didn't see any changes/renaming in the files. Orders were going through fine until just last night. -Chuck Link to comment Share on other sites More sharing options...
princetrunks Posted March 27, 2011 Author Share Posted March 27, 2011 I was able to (sort of) fix the problem. What I did was rename the methods that were being supposedly called twice in the checkout_payment.php page and I removed the google checkout and amazon checkout buttons from the login.php and shopping_cart.php. Obviously more of a patch than a true fix but all of my payment methods except Google Checkout now.. (Paypal, Money order and Amazon) work. Link to comment Share on other sites More sharing options...
npn2531 Posted March 28, 2011 Share Posted March 28, 2011 The error often appears when their is a space or a line below the final php closing tag, ?>, in a file . Check the file named in the error, or even the file called previous to or after that file. (or above the opening php tag) Oscommerce site: OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120 Link to comment Share on other sites More sharing options...
princetrunks Posted March 28, 2011 Author Share Posted March 28, 2011 That's true, I almost forgot about that error and when copying and pasting from Dreamweaver to my site's ftp manager..I could have easily forgot to remove that extra whitespace. I'll give it another shot to add the Google Checkout again, otherwise, I'll have to make due without it :-( Link to comment Share on other sites More sharing options...
princetrunks Posted March 28, 2011 Author Share Posted March 28, 2011 Looks like that did it. Not sure how this error happened all of a sudden without me adding editing anything to start with but seems to be back on track. Thanks again. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.