ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - viewCategories.asp - error fixed
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

viewCategories.asp - error fixed

 Post Reply Post Reply
Author
Message
cmason View Drop Down
Senior Member
Senior Member


Joined: 18-June-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmason Quote  Post ReplyReply Direct Link To This Post Topic: viewCategories.asp - error fixed
    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.

Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 17-December-2008 at 10:35am
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.
Back to Top
cmason View Drop Down
Senior Member
Senior Member


Joined: 18-June-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmason Quote  Post ReplyReply Direct Link To This Post Posted: 17-December-2008 at 11:08am
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.062 seconds.