Post by castrogstar » Thu Jan 10, 2019 9:02 pm

Hello,

I have upgraded my server to php 5.6 and I am getting errors regarding mysql vs mysqli. I have read through the forums and found a solution to change mysql to mysqli in the config.php files. After doing this, I receive the following error:

Parse error: syntax error, unexpected 'else' (T_ELSE), expecting function (T_FUNCTION) in /home/content/40/8668740/html/www.sensobuildingsupplies.ca/system/database/mysqli.php on line 54

line 54 of that file shows this

} else {
trigger_error('Error: ' . mysql_error($this->link) . '<br />Error No: ' . mysql_errno($this->link) . '<br />' . $sql);
exit();
}

What shall I do?

Newbie

Posts

Joined
Thu Jan 10, 2019 8:57 pm

Post by xxvirusxx » Fri Jan 11, 2019 12:22 am

Edit config.php and change from mysql to mysqli

Opencart 3.0.2.0 with bugs fixed | Free extensions


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by pprmkr » Fri Jan 11, 2019 3:55 pm

xxvirusxx wrote:
Fri Jan 11, 2019 12:22 am
Edit config.php and change from mysql to mysqli
castrogstar wrote:
Thu Jan 10, 2019 9:02 pm
I have read through the forums and found a solution to change mysql to mysqli in the config.php files. After doing this, I receive the following error:
Wich version are you using?

An } else { on line 54 sounds like an altered file !
Copy system/database/mysqli.php from OpenCart archive and try again.

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands
Who is online

Users browsing this forum: No registered users and 16 guests