JoeyRocket Posted April 3, 2007 Posted April 3, 2007 Hello, I have been using OSC for exactly one day, right now just test-driving. It's been working just fine most of the day, but now I get this error: Fatal error: Cannot instantiate non-existent class: categoriesboxheading in /home/content/s/p/e/specterstudios/html/store/catalog/includes/boxes/categories.php on line 105 I looked at line 105, and this is what it says: new CategoriesBoxHeading($info_box_contents, true, false); I don't know from php, so I don't know what to do to fix this, and I'm not yet ready to declare this experiment a failure. I tried restoring the site to two earlier restore points, but the error persists. Any assistance on this matter would be appreciated.
JoeyRocket Posted April 4, 2007 Author Posted April 4, 2007 Okay, So I decided to experiment. I deleted the fatal line of code. I got new errors involving other offensive lines of code. I proceded to delete every offensive line of code (i'm pretty sure I altered every file within my boxes folder). Eventually I stopped getting fatal errors, but now I have no boxes. My guess is that the offending lines were not at fault, but something pointing to or defining the boxes was. What might this be? Any help is welcomed.
failsafe Posted April 5, 2007 Posted April 5, 2007 Hello, I have been using OSC for exactly one day, right now just test-driving. It's been working just fine most of the day, but now I get this error: Fatal error: Cannot instantiate non-existent class: categoriesboxheading in /home/content/s/p/e/specterstudios/html/store/catalog/includes/boxes/categories.php on line 105 I looked at line 105, and this is what it says: new CategoriesBoxHeading($info_box_contents, true, false); I don't know from php, so I don't know what to do to fix this, and I'm not yet ready to declare this experiment a failure. I tried restoring the site to two earlier restore points, but the error persists. Any assistance on this matter would be appreciated. I don't know what you did, but it looks very much like you somehow replaced the valid line: new infoBoxHeading($info_box_contents, true, false); with new categoriesBoxHeading($info_box_contents, true, false); to get the original error!
JoeyRocket Posted April 6, 2007 Author Posted April 6, 2007 Thank you failsafe, I went back into the boxes and they had all been renamed from infoBoxHeading/infoBox to whatever the box name was (ie. CategoriesBox, SearchBox, ShoppingCartBox, etc.). I renamed them to infoBox, and they work just fine. Some new questions: I eliminated the boxes from appearing in my shopping cart by deleting the code: infoBoxHeading($info_box_contents, true, false); and new infoBox($info_box_contents);. If I don't want certain boxes to appear, would it be harmful for me to eliminate them in this way? The last mod I attempted to apply to my cart was STS. Would this be somehow responsible for the renaming problem?
failsafe Posted April 7, 2007 Posted April 7, 2007 Some new questions:I eliminated the boxes from appearing in my shopping cart by deleting the code: infoBoxHeading($info_box_contents, true, false); and new infoBox($info_box_contents);. If I don't want certain boxes to appear, would it be harmful for me to eliminate them in this way? Doesn't look harmful, but I deleted boxes by commenting out the include statements in catalog/includes/column_right.php (and column_left.php), e.g. // include(DIR_WS_BOXES . 'languages.php'); That just seemed simpler to me, and meant that extra empty HTML wasn't included when not necessary. That way, the code you deleted doesn't even get seen as it isn't even included. The last mod I attempted to apply to my cart was STS. Would this be somehow responsible for the renaming problem? Haven't used that so perhaps someone else knows the answer?
satish Posted April 7, 2007 Posted April 7, 2007 Just compare you site folders files(name wise) with fresh oscommerce probably some files were not uploaded or if thats fine then some contribs that You placed were buggy or not handled as needed. 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.
Grostoryeu Posted April 20, 2007 Posted April 20, 2007 i had the exact same original problem as JoeyRocket, right while playing with STS v4.5 settings. I dont know what i exactly did, but it was wrong. or there is a bug. Thanks for the fix of renaming everything... worked for me. I still hope i wont have to do this twice a day.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.