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.
Database Error Moving Photocart
I have followed the directions for backing up the database and creating a new one in the new hosting site. The database appears to be correct. I copied all the files over to the new server and modified the setup.php file. When I try to run Photocart, I get "Unable to locate the database: gharter1_harterphotocart" .
The name of the databas is correct. When I run a separate script outside photocart, it can find the database.
Any suggestions would be appreciated.
Might be localhost.
My Email Address: info@picturespro.com
I tried the pc_db_host and got a different error.
My Email Address: info@picturespro.com
I still have no idea why it can't find the database.
I double checked and everything is spelled correctly.
My settings are:
$setup['path']= dirname(__FILE__);
$setup['url'] = "http://".$_SERVER['HTTP_HOST']."/photocart";
// If you are going to use a payment option that requires an SSL enter your secure URL below
$setup['secure_url'] = "https://".$_SERVER['HTTP_HOST']."/photocart";
/* DATABASE SETTINGS */
$setup['pc_db_location'] = "localhost"; // hostname or location
$setup['pc_db'] = "gharter1_photocart"; // The name of the database
$setup['pc_db_user'] = "gharter1_gharter"; // username to the database
$setup['pc_db_pass'] = "photos"; // password to the database
Do you see anything wrong?
$setup['pc_db'] = "gharter1_photocart"; // The name of the database
Is not the same name you posted before:
gharter1_harterphotocart,
Do you know which is right? And what is the EXACT error message now when you try?
And is that the right password? If not, have a password with no special characters like ^%$#@"'&
My Email Address: info@picturespro.com
The password is correct.
Still get the same error: Unable to locate the database: gharter1_photocart. So even changing the name of the database, resetting the password, made no difference.
My Email Address: info@picturespro.com
Loading more pages