Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Syntax error - T_CASE


Nic du Toit

Recommended Posts

Can someone please tell me how to fix this--

 

Parse error: syntax error, unexpected T_CASE in /hsphere/local/home/steelgui/My domain/admin/products_attributes.php on line 296

 

This is what's on line 296 -

 

296 case 'delete_option':

 

I'm a novice at coding, so I don't really know what I'm looking at!

 

Please help.

Thanks,

Nic

I used to be indecisive....but, now I just don't know anymore.

Link to comment
Share on other sites

Can someone please tell me how to fix this--

 

 

 

This is what's on line 296 -

 

 

 

I'm a novice at coding, so I don't really know what I'm looking at!

 

Please help.

Thanks,

Nic

 

Post the entire contents here

Getting the Phoenix off the ground

Link to comment
Share on other sites

Please don't post the entire file. 20 lines before and 5 lines after the indicated line should be plenty. What happened is that "case" was within a "switch" statement, and an extra closing brace } got inserted somewhere ahead of this line, which ended the "switch" early, leaving the "case" out in the cold.

 

You could show us everything from the previous "switch" line through the offending "case" line.

Link to comment
Share on other sites

Try changing

          }
// EOF Super Download Store v2.3.x mod
         }
       }

to

          }
// EOF Super Download Store v2.3.x mod
       }

That looks like an extra } that could be causing the problem.

 

 

Will do....

Thanks, Nic

I used to be indecisive....but, now I just don't know anymore.

Link to comment
Share on other sites

Will do....

Thanks, Nic

 

 

And what do we have here: >_<

 

Parse error: syntax error, unexpected '<' in /hsphere/local/home/steelgui/musicshop.etsga.org/admin/products_attributes.php on line 850

 

Fortunately it's getting near the en d of the page!

Nic

I used to be indecisive....but, now I just don't know anymore.

Link to comment
Share on other sites

Should the </table> be moved to line 825, following </tr> ???

 

Looks like the table ends there...??...

I used to be indecisive....but, now I just don't know anymore.

Link to comment
Share on other sites

Should the </table> be moved to line 825, following </tr> ???

 

Looks like the table ends there...??...

Stays there, test it and see if layout completes

<?php

}

// EOF Super Download Store v2.3.x mod

?>

Getting the Phoenix off the ground

Link to comment
Share on other sites

Stays there, test it and see if layout completes

<?php

}

// EOF Super Download Store v2.3.x mod

?>

 

Success!!..... The product attributes opens up smoothly, and the layout looks neat.

Thanks to you and Mr Phil.....

Reckon I'll call it a day, and hit the sack!

Thanks again.

Regards, Nic

I used to be indecisive....but, now I just don't know anymore.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...