![]() |
viewCategories.asp - error fixed |
Post Reply ![]() |
Author | |
cmason ![]() Senior Member ![]() Joined: 18-June-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 17-December-2008 at 10:15am |
V3.5. I was having a dickens of time for the past 2 days trying to get the display of more than 1 column of subCategories to display.
I turned off error handling in the CP but the errors that page was showing were of the useless "last query run ..." type. Plus it was showing the error as being in viewCategories.asp when a global search for the query placed it in the include file "pcShowCategoryX". I removed the error handling from those two include files to try and view the real error, with page and line number, and low and behold that fixed the original problem too. There's rich irony in error handling being the cause of errors. |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
Next time you get that deep, save yourself some trouble. Besides turning off error handling in the CP, at the top of /productcart/includes/opendb.asp is this statement:
on error next
Change that to this:
'on error next
Now you will see the actual error and (hopefully, but not always) the line number. It will make life much easier for you to debug.
|
|
![]() |
|
cmason ![]() Senior Member ![]() Joined: 18-June-2008 Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
When I'm in development mode, like now, I always comment out "on error next". I forgot to include that I did that, but it's a part of my workflow.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |