Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can anyone else count correctly ?


keltic

Recommended Posts

Posted

Any idea how I find a parse error on line 255, when there are only 253 lines of code ?

 

Regards

keltic

Posted

empty spaces at the end ?

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Posted
Any idea how I find a parse error on line 255, when there are only 253 lines of code ?

 

Regards

keltic

 

the parse error line number is the line where php does not understand your instructions anymore. That is usually caused by an error some lines back.

Treasurer MFC

Posted

I have deleted yet another whitespace in the file and the error now moves to line 254.

 

I assumed that the error was caused by lines further back, but is there an easy way to find it ?

 

Is there a logical way to find it ?

 

Do I now have to trawl through 253 lines of code ? :'( :'( :'(

 

Has anyone written a debug tool ?

Posted

may be you missed a closing } bracket somewhere in the middle and thus you are missing a matching end bracked for the first bracket used, that would explain it bumming out at the end.

 

I used UltraEdit and this indicates the matching brackets (highlighting) when you select either begin or end bracket, makes it easier to see where you missed one.

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Posted

Thanks. I have just been on their website. Looks like a must have tool together with ultracompare.

 

I will give it a go.

 

Regards

keltic

Posted

You were right. I have just done a search on opening and closing brackets. 21 opening, 20 closing. :-" :-"

 

Now where did I put that spare one ? :rolleyes:

 

Thanks again.

 

Regards

keltic

Archived

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

×
×
  • Create New...