lee246 Posted June 9, 2005 Posted June 9, 2005 Hi, I am currently trying to install Multiple Individual Product Shipping Prices on my test oscommerce store (which is a default installation) and I have come upon a problem. I have edited the admin/categories.php file as instructed with my php editor. Everything was entered as it said in the instructions but after running the script to check for errors before I upload to my server I came upon this error: Parse error: syntax error, unexpected '=' in C:\Documents and Settings\Administrator\Desktop\Just Shop\Oscommerce\testshop1\edited\categories.php on line 931 I'm gathering there is a problem with the script on this line, but after looking at it I cannot see what. Here is line 931 from my edited file: $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="'?osCAdminID=6fb32bf1cc8384729099b8f87eed5b26 . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); Does anyone have a clue what it could be? Any help would be greatly appreciated as I am struggling to get my online store up and running and I don't want it to drag out for much longer. Thanks, Lee. Quote
Guest Posted June 9, 2005 Posted June 9, 2005 Hi, I am currently trying to install Multiple Individual Product Shipping Prices on my test oscommerce store (which is a default installation) and I have come upon a problem. I have edited the admin/categories.php file as instructed with my php editor. Everything was entered as it said in the instructions but after running the script to check for errors before I upload to my server I came upon this error: Parse error: syntax error, unexpected '=' in C:\Documents and Settings\Administrator\Desktop\Just Shop\Oscommerce\testshop1\edited\categories.php on line 931 I'm gathering there is a problem with the script on this line, but after looking at it I cannot see what. Here is line 931 from my edited file: $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="'?osCAdminID=6fb32bf1cc8384729099b8f87eed5b26 . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); Does anyone have a clue what it could be? Any help would be greatly appreciated as I am struggling to get my online store up and running and I don't want it to drag out for much longer. Thanks, Lee. <{POST_SNAPBACK}> My line 931 is: $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); The difference appears to lie in the code ?osCAdminID=6fb32bf1cc8384729099b8f87eed5b26 . which is in yours. Not sure if this is much help... BTW, if you get this working, I'm curious to see how it goes for you. I've got 10 products, and put a shipping price in for all of them, but only about 3 of them seem to work. I don't get it... Quote
lee246 Posted June 9, 2005 Author Posted June 9, 2005 Thanks, after removing all of the offending code from my script all seemed to be well, so I uploaded it to my oscommerce installation and now i'm recieving this error: Parse error: parse error, unexpected '=' in /home/mysite/public_html/testshop/admin/categories.php on line 907 line 907 is as follows: $category_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_name[' . $languages[$i]['id'] . ']'); Again I am baffled!! Quote
Guest Posted June 10, 2005 Posted June 10, 2005 Thanks, after removing all of the offending code from my script all seemed to be well, so I uploaded it to my oscommerce installation and now i'm recieving this error: Parse error: parse error, unexpected '=' in /home/mysite/public_html/testshop/admin/categories.php on line 907 line 907 is as follows: $category_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_name[' . $languages[$i]['id'] . ']'); Again I am baffled!! <{POST_SNAPBACK}> Hmmmm...now this line matches mine exactly, so I'm also puzzled. Did you say that it worked locally but failed after being uploaded? Maybe it or one of the files it depends on is only partially uploaded? Quote
lee246 Posted June 10, 2005 Author Posted June 10, 2005 I have retested it locally and this is th eerror i'm getting: Warning: main(includes/application_top.php): failed to open stream: No such file or directory in C:\Documents and Settings\Administrator\Desktop\Just Shop\Oscommerce\testshop1\edited\categories.php on line 13 Fatal error: main(): Failed opening required 'includes/application_top.php' (include_path='.;C:\php5\pear') in C:\Documents and Settings\Administrator\Desktop\Just Shop\Oscommerce\testshop1\edited\categories.php on line 13 Quote
Guest Posted June 10, 2005 Posted June 10, 2005 appears you are using php5, could be the contribution doesnt work with php5. what happens when you put an original categories.php file back in place, without modifications? Quote
lee246 Posted June 10, 2005 Author Posted June 10, 2005 I replaced the modified categories.php with the original one and I am still getting the exact same error. Quote
lee246 Posted June 10, 2005 Author Posted June 10, 2005 I have aslo just done a fresh install of oscommerce and tried to install a totally different shipping module and I am getting exactly the same error. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.