Attention
If your Photo Cart is suddenly getting a 500 error or only displaying a blank page then you or your hosting company has updated the PHP (programming language) to PHP 7 which Photo Cart is not compatible with (and will not be compatible with) mainly because of the removal of the my_sql functions which are replaced with my_sqli functions.
You would need to have the PHP version downgraded to 5.6 in order for Photo Cart to work. If downgrading the PHP doesn't work then you may have to update Photo Cart to the last version of 7. Download Photo Cart 7 upgrade files. Upgrade instructions.
Photo Cart was retired in 2015. Check out Sytist.
Adding To Cart Generates Error Adding > Field 'cart_gi_descr' Doesn't Have A Def
photocart.js:1448 Refused to set unsafe header "Connection"
I saw a post in the old forum about the mod_security issue with Apache. Is there a setting in IIS that would fix this? or do I need to upgrade photocart.
You can view the issue live here at: https://cart.zayphoto.com :9000/index.php The old site is at https://www.zayphoto.com :9000/photocart/index.php
version is 6.1.3
From the console:
Refused to set unsafe header "Content-length"makePOSTRequest @ photocart.js:903addProductToCart @ photocart7f.js?v=7.1.0:1513(anonymous function) @ VM2694:1
photocart.js:904 Refused to set unsafe header "Connection"makePOSTRequest @ photocart.js:904addProductToCart @ photocart7f.js?v=7.1.0:1513(anonymous function) @ VM2694:1
The two offending lines:
http_request.setRequestHeader("Content-length", parameters.length);
http_request.setRequestHeader("Connection", "close");
UPDATE: I removed the request filtering security role and restarted the server and still have the issue.
https://www.google.com/search?q=disable+MySQL+strict+mode&ie=utf-8&oe=utf-8
My Email Address: info@picturespro.com
Thanks! That did it. I even restored the request filtering role and it's working. The only issue I have is when you try to login as a shopper....it will sit spinning that it is waiting on the site after you click login....you have to hit a menu nav item to leave the screen while it is hung to then test it. Any ideas on that? It's the only thing I have left to knock out before switching the domain over.
Seems the login modal redirects fine. Its the login when you go to add to cart. Looks like it might be redirecting http vs. https even though I have the site set to https only in IIS.
UPDATE: I added the url rewrite for https but it is not working since it is redirecting after the login to http without the correct port #...the rewrite can't kick in. I have secure login etc.. set in admin but only the modal / login from the nav menu works. The login from adding to cart with the white dologin on the index page does not - tires to redirect from https index to http and fails.
My Email Address: info@picturespro.com
My Email Address: info@picturespro.com
old site/server running 6.1.3 (server 2000 / IIS 5) without the issue: https://zayphoto.com :9000/photocart/index.php
The reply posts seem to insert an extra space between the : and port number so you may need to edit the url.
I don't understand why if you change the setup.php file like I mentioned before would make the thumbnails not load?
Try in the Photo Cart setup.php file changing the $setup['url'] variable to have https instead of just http
My Email Address: info@picturespro.com
Email me the setup.php file please.
My Email Address: info@picturespro.com
I have tried all of the $setup url's that you see commented out with no luck. The current configuration is uncommented. With the current config I don't get the wrong port # as before but it does swap http for https....ignores the https in the setup.php. I found a line in the javascript for where it is looking for the query string of do.photocart and view gallery and it was using window location vs. the url value but I'm not sure that was the line that was causing the https to be rewritten as http. Thanks in advance for any insights.
https://www.picturespro.com/sy-misc/download/pc_login.zip
Upload the included pc_login.php file into your Photo Cart folder overwriting the existing on and this should fix it.
My Email Address: info@picturespro.com
I applied the file this morning. I renamed the old file pc_loginbackup.php. Didn't seem to work. I did restart IIS and also used incognito and another browser to make sure it was cached.
http://www.picturespro.com/sy-misc/download/pc_login_page.zip
My Email Address: info@picturespro.com
Loading more pages