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?
Edit config.php and change from mysql to mysqli
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Wich version are you using?castrogstar wrote: ↑Thu Jan 10, 2019 9:02 pmI 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:
An } else { on line 54 sounds like an altered file !
Copy system/database/mysqli.php from OpenCart archive and try again.
I would set up a new and clean version of OC 1.5.6.5 in a sub folder and see if that works. From that you can identify where the problem lies and if necesary change the config files in that to access the live database.
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
What were you running before if you are just now upgrading to PHP 5.6? PHP 5.6 has been EOL (End of Life) now for almost a month.castrogstar wrote: ↑Thu Jan 10, 2019 9:02 pmHello,
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?
ELEV8TE Website Development
https://www.elev8your.com
Who is online
Users browsing this forum: No registered users and 12 guests