Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello all!

 

I installed the PDF Upload V2.0 Contribution on (2) seperate demo stores. On the first one I'm having no problems. But on the second one I keep getting an error when I try to view the catalog in the admin section.

 

I get the following error:

 

Parse error: syntax error, unexpected '}' in /home/.hackney/idp/commerce.idproductions.com/admin/categories.php on line 636

 

I took a look at the code around that lines on the file and it reads as:

} elseif ($action == 'new_product_preview') {

 

I'm not a PHP expert by any means but I do not see an extra "}" there as reported.

 

Can anybody point me in the right direction as to what I should be looking for? I've followed the driections several times and always end up with the same error.

 

THanks!

 

JEff

Posted

The parser is complaining about the } at the beginning of that line. It's likely that is not the actual problem. You probably have an extra } somewhere above that line that is the actual problem.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted
The parser is complaining about the } at the beginning of that line. It's likely that is not the actual problem. You probably have an extra } somewhere above that line that is the actual problem.

 

you dont have extra } the problem is that you are missing a <?php in admin/categories.php

should read like this

 <?php
if($products_pdfupload_name != "") {

	?>

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