Print Page | Close Window

Print function gives db error

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=6098
Printed Date: 28-April-2024 at 8:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Print function gives db error
Posted By: Auntnana21
Subject: Print function gives db error
Date Posted: 12-December-2016 at 3:30pm
I just migrated my ecommerce site hosting from hostgator to godaddy for a slew of reasons way too long to list. Everything is working just as it should except for the print function. We have credit apps in our cart. I can view, change status, edit, etc. Only when I click 'print' I get thrown to a new screen that says "You are receiving this message because the system is not able to connect to the database". The print file is in the same folder as the manage, edit files that are not giving the error so I have no idea what to look for on this.

I am fairly new to this product cart as I've only been with this company for a short while and didn't create it. If I need to provide any more information I apologize as I just don't know enough to know what I don't know. 





Replies:
Posted By: ProductCart
Date Posted: 12-December-2016 at 5:49pm
Hi Auntnana21,

The best approach is to submit a regular support ticket under the customer account registered in our store:

http://www.productcart.com/store/pc/Checkout.asp?cmode=1" rel="nofollow - https://www.productcart.com/store/pc/Checkout.asp?cmode=1

.... and scroll down to the bottom of your account home page, select your license key from the dropdown field and click "Go" to reach the support form. The form will ask you for all the details that we need to investigate and troubleshoot the problem, and will make sure they get to us securely.

This requires enrollment in the following Support & Updates Plan:

http://www.productcart.com/store/pc/viewPrd.asp?idproduct=489&idcategory=143" rel="nofollow - http://www.productcart.com/store/pc/viewPrd.asp?idproduct=489&idcategory=143

In the meantime, you should be able to get a more meaningful error message (other than the generic and misleading DB connection error), by applying the technique described here:

http://productcart.desk.com/customer/en/portal/articles/1550113-how-to-show-raw-errors" rel="nofollow - https://productcart.desk.com/customer/en/portal/articles/1550113-how-to-show-raw-errors



-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: Auntnana21
Date Posted: 13-December-2016 at 8:43am
So not quite sure why but I tried the raw error technique and it made it work! I added the "IF myVariable="1" THEN ' This is a comment to explain what the code does." line to my includes/opendb.asp and it made the print function work???

No idea why but hey, it's fixed! 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net