support

moved from xamp localhost to domain and getting error

Started by Sam_78, August 04, 2017, 09:16:51 AM

Previous topic - Next topic

Sam_78

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??


eCommerce Core

Looks like you unintentionally modified your file. It is always a good practice to refresh your file(s) from repo.
"If you're in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent."
― Warren Buffett

Forum Rules Code of conduct
AbanteCart.com 2010 -