lee246 Posted June 11, 2005 Posted June 11, 2005 Hi, I have made a few posts now over what I percieved to be contributions not working right. I keep getting the same errors on every contribution I try to install. I have compared some of my code from these contributions with other users and have come up with what is possibly causing it, but I don't know how to fix it. Heres the link to one of my topics which shows in detail one of the errors I'm getting. http://www.oscommerce.com/forums/index.php?showtopic=154772&hl= This is a more recent error from a recent contribution. Parse error: parse error, unexpected '=' in /home/mysite/public_html/testshop/admin/categories.php on line 907 Here is line 907 of the categories.php file: $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="'?osCAdminID=b3b6cb121d40abd9e5fe0492624d6e4e&osCAdminID=0956ad213abfa501e93923c402fbd69a . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); After reading many posts plus experimenting a bit I am 99% sure it is the osCAdminID=b3b6cb121d40abd9e5fe0492624d6e4e&osCAdminID=0956ad213abfa501e93923c402fbd69a causing the problem. When I take this bit of code out, and test it locally then the error moves to another line, which again contains the same osCAdminID=b3b6cb121d40abd9e5fe0492624d6e4e&osCAdminID=0956ad213abfa501e93923c402fbd69a. The problem is that this code is present even when I download any of the default files of oscommerce to my computer prior to modding. My guess is that somehow it is being insterted into the code but I don't know how, or even how to stop it. I have also read that it allows people to hack the site as it is a security breach. Can anyone help or offer suggestions as I need to sort my shop out asap. Thanks, Lee.
♥Vger Posted June 11, 2005 Posted June 11, 2005 Mibble posted in that other thread that it appears your site is using php5. Is that the case? Vger
lee246 Posted June 11, 2005 Author Posted June 11, 2005 As I say I'm new to it all so how would I check if I am using php5? Thanks, Lee.
bglkk Posted June 11, 2005 Posted June 11, 2005 admin --> tools --> server info "Buy the ticket, take the ride..." -HST
lee246 Posted June 11, 2005 Author Posted June 11, 2005 PHP Version: 4.3.11 (Zend: 1.3.0) Thats what it says.
♥Vger Posted June 12, 2005 Posted June 12, 2005 Look further on that page for the version of Zend Optimizer installed. It should have been upgraded to 2.5.7 and if it is less than that version then that can cause problems. Be aware also that 4.3.11 is causing problems for people, and is very close in build to php5 versions. Vger
lee246 Posted June 12, 2005 Author Posted June 12, 2005 This is what it reads further down: This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright © 1998-2004 Zend Technologies with Zend Extension Manager v1.0.6, Copyright © 2003-2004, by Zend Technologies with Zend Optimizer v2.5.7, Copyright © 1998-2004, by Zend Technologies. Is that what you meant? Also I have being downloading the files through my online file manager and also through the default oscommerce file manager. I suspected that this could be a possible cause of why the osCAdminID is being inserted into the code (it was just an educated guess), so I downloaded the default admin/categories.php file from a fresh install using dreamweaver ftp and sure enough its free from any of the osCAdminID problems. I am therefore going to try and install a contribution using this method and see what errors it comes up with this time.
lee246 Posted June 12, 2005 Author Posted June 12, 2005 Well after using the method I described I managed to install a contribution without any error messages whatsoever. Now I have the problem of setting it up. I am also going to test a few other contributions just to be on the safe side. Thanks to everyone who helped me, I shall update on my progress shortly.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.