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.

Please log in or Create an account to post or reply to topics.
You will still receive notifications of replies to topics you are part of even if you do not subscribe to new topic emails.

Changed Web Host And Lost My Galleries

C
5 posts
Wed Nov 15, 17 7:39 AM CST
I moved my website from Yahoo hosting to Bluehost and have lost Photocart access. Yahoo was not allowing me to update to the latest t version of photo cart (I was stuck on 5.x), Bluehost did not support that far back when I transferred. So I have updated the files in Photocart per instructions on the new host, but when I go to finalize the installation I cannot get to any photo cart page. I get this:
Unable to connect to the databasephp_network_getaddresses: getaddrinfo failed: Name or service not known

Does anyone know how to walk me through this to get my galleries back up and running? I have clients that are looking to order from them for Christmas and I would like to get this working again soon. Thank you!
16,210 posts (admin)
Thu Nov 16, 17 7:54 AM CST
It sounds like in the setup.php file in your photocart folder you need to change the database hostname $setup['pc_db_location'] to localhost

$setup['pc_db_location'] = "localhost";
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
C
5 posts
Thu Nov 16, 17 12:48 PM CST
So is this how it should look now? (I have edited out the user name/password info) I updated this and it still did not work. I am very much a novice at this, is there another setup php file somewhere?

I am not sure why it isn't showing up here. Do I need to remove the code tags and stuff?
Refer to the SETUP_INFORMATION.html file included in the zip file on editing these settings
ONLY EDIT BETWEEN THE "DOUBLE QUOTES" */

/* $setup['photo_cart_folder'] is the name of the folder for your Photo Cart on the server */

$setup['photo_cart_folder'] = "photocart";

/* DATABASE SETTINGS */
$setup['pc_db_location'] = “localhost”,
$setup['pc_db'] = "photocart"; // The name of the database

Edited Thu Nov 16, 17 1:55 PM by Collin Smith
16,210 posts (admin)
Fri Nov 17, 17 4:40 AM CST
You need to replace those quotes around localhost. They are none standard quotes that would come from Word or something like that which will cause errors.

Like this:

$setup['pc_db_location'] = "localhost",
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
4 total messages
Please log in or Create an account to post or reply to topics.
This post has been viewed 1,099 times
Category: Error
 
Loading more pages
Loading more pages

Sign up for email promotions.

Your information is safe with us and won't be shared.

Thank you for signing up!

 
©2003 - 2021 Grissett, LLC. All Rights Reserved.

By continuing to browse or by clicking Accept Cookies, you agree to the storing of cookies on your device necessary to provide you with the services available through our website.

    Accept   Privacy & Cookie Policy
Loading More Photos
Scroll To Top
Close Window
Loading
Close