Evo-L Posted November 9, 2009 Posted November 9, 2009 Im having a problem with my site. It wont load the side bar, its giving me this problem: Catchable fatal error: Object of class infoBox could not be converted to string in /home3/********/public_html/includes/boxes/gallery.php on line 13 I have done this update, since my server switched to PHP 5, which messed up my site. I have been reading for hours, and I have done this file update http://addons.oscommerce.com/info/2097 I used the one from 05 sept 2006, from CMOTD. Register globals if OFF in my php.ini, but that doesnt seem to be the problem. I think it might be a problem with the gallery.php file, but i opened it in dreamweaver and it didnt give me an error. ANY help is appreciated. My store is down, and I need to get it back up asap.
jhande Posted November 10, 2009 Posted November 10, 2009 Hey Logan, Not sure which version of osC you are using, but if you needed to use the register globals off fix, there's more upgrades for going from PHP4 to PHP5. As for your error message - Look to see what code is on line 13 in file - gallery.php. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
Evo-L Posted November 10, 2009 Author Posted November 10, 2009 Im on 2.2 RC2 right now. I dont really know what to do, should I update to RC2a? Will that solve it?
jhande Posted November 10, 2009 Posted November 10, 2009 Look to see what code is on line 13 in file - gallery.php. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -
Evo-L Posted November 10, 2009 Author Posted November 10, 2009 <!-- gallery box //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents [] = array('text' => BOX_HEADING_GALLERY ); new infoBoxHeading ($info_box_contents , false, false); $info_box_contents = array(); $info_box_contents [] = array('text' => '<a href="' . tep_href_link( BOX_GALLERY_LINK) . '">' . BOX_GALLERY_TEXT ); '</a><br>' . new infoBox ($info_box_contents ); LINE 13 ----> ?> </td> </tr> <!-- gallery_box_eof //-->
rocdy Posted November 10, 2009 Posted November 10, 2009 <!-- gallery box //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents [] = array('text' => BOX_HEADING_GALLERY ); new infoBoxHeading ($info_box_contents , false, false); $info_box_contents = array(); $info_box_contents [] = array('text' => '<a href="' . tep_href_link( BOX_GALLERY_LINK) . '">' . BOX_GALLERY_TEXT ); '</a><br>' . new infoBox ($info_box_contents ); LINE 13 ----> ?> </td> </tr> <!-- gallery_box_eof //--> Change this : '<a href="' . tep_href_link( BOX_GALLERY_LINK) . '">' . BOX_GALLERY_TEXT ); '</a><br>' . new infoBox ($info_box_contents ); Into this : '<a href="' . tep_href_link( BOX_GALLERY_LINK) . '">' . BOX_GALLERY_TEXT ) . '</a><br>' . new infoBox ($info_box_contents ); May be that can help. :) Rocdy Beginner in php programming and still learning from this forums. Special thanks for Oscommerce Community Forums that help me a lot. :-)
germ Posted November 10, 2009 Posted November 10, 2009 This part of the code looks screwed up to me: $info_box_contents [] = array('text' => '<a href="' . tep_href_link( BOX_GALLERY_LINK) . '">' . BOX_GALLERY_TEXT ); '</a><br>' . new infoBox ($info_box_contents ); I think it needs to be: $info_box_contents [] = array('text' => '<a href="' . tep_href_link( BOX_GALLERY_LINK) . '">' . BOX_GALLERY_TEXT . '</a><br>'); new infoBox ($info_box_contents ); If you decide to try this backup the file first. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Evo-L Posted November 10, 2009 Author Posted November 10, 2009 This part of the code looks screwed up to me: $info_box_contents [] = array('text' => '<a href="' . tep_href_link( BOX_GALLERY_LINK) . '">' . BOX_GALLERY_TEXT ); '</a><br>' . new infoBox ($info_box_contents ); I think it needs to be: $info_box_contents [] = array('text' => '<a href="' . tep_href_link( BOX_GALLERY_LINK) . '">' . BOX_GALLERY_TEXT . '</a><br>'); new infoBox ($info_box_contents ); If you decide to try this backup the file first. Your the MAN! That worked. Thank you so very much, I realllllllllly appreciate it. I was honestly just about to wipe it out, and install 3.0 alpha.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.