Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need to find extra curly brace in 5000 lines of code


milauskas

Recommended Posts

Posted

I was using the City Tax Rate hack contrib with modifications for every city in California. I must have done something to the code since, when I try to go to the catalog online I get the following error:

 

Parse error: parse error, unexpected '{' in /Users/milauskas/Sites/Lee2/catalog/includes/functions/general.php on line 4768

 

(BTW, it doesn't seem to be at or near line 4768).

 

As I mentioned I've got several thousand lines of code and I think I've got an extra curly brace somewhere (or else left one out). Is there a good way to hunt this down quickly? I'm using Dreamweaver 8.

 

As you might imagine, any help would be GREATLY appreciated. Thanks.

Posted

are you looking in includes/functions/general.php for the extra bracket, or the contribution page that may be causing the error?

Posted

Just do a search in dreamweaver for { that way it will pull up all they { that way you can see which ones don't belong. It might take awhile but atleast you won't miss anything. It's going to take some time but better take some time to do it right then to much time looking it at it over and over again.

Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

Posted

Thanks again to all who responded. It's great to know that this community is active and I really do depend on everyone's kindness to help whenever I have a question.

 

I went through all the code trying to locate an extra curly brace and didn't find one. As it turns out, I had all the braces in place and there were no extras. The problem, as I discovered, was that I had omitted a closing parenthesis which caused made the following curly brace appear to be superfluous.

 

So, after adding the parenth that solved the problem.

 

Again, thanks. Every problem I have is a learning experience. I'm writing this in hopes it may help someone else down the road who runs into a similar problem.

 

Again, thanks!

Archived

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

×
×
  • Create New...