AbanteCart Community
Shopping Cart Operations => Support => General Support => Topic started by: Sam_78 on August 04, 2017, 09:16:51 AM
-
Hello,
I moved my website to domain and it is throwing error "AbanteCart core v.1.2.10 syntax error, unexpected '}', expecting ',' or ')' in <b>/home/newucb/public_html/core/database/apdomysql.php</b> on line <b>20</b>"
which is :
try{
$this->connection = new PDO("mysql:host=" . $hostname . ";port=" . $port . ";dbname=" . $database,
$username, $password, array (PDO::ATTR_PERSISTENT => true));
} catch (AException $e){
$err = new AError('Cannot establish database connection to ' . $database . ' using ' . $username . '@' . $hostname);
$err->toLog();
Can you help me how to get rid of this error. it is working fine on localhost.. I understand some files gets changed/doesn't work on server but how to resolve this??
-
Solved.. I Went to https://github.com/abantecart/abantecart-src/blob/master/public_html/core/database/apdomysql.php and copy-pasted the code and it worked.. Thanks
-
Looks like you unintentionally modified your file. It is always a good practice to refresh your file(s) from repo.