Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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.

Posted
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.

 

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...

Posted

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!!

Posted
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!!

 

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?

Posted

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

Posted

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?

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...