Sunday, February 16, 2014

Deprecated: mysql_connect() error in Opencart

In my new xampp 1.8.3 installation, I installed Opencart and received a deprecated warning message such as:
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in ....\system\database\mysql.php on line 6

The quick way to resolve this issue is by making a small change to the config.php and admin/config.php files. In both these config.php files, look for the line
define('DB_DRIVER', 'mysql');

Modify the above line to
define('DB_DRIVER', 'mysqli');

The new line will simply connect to the database from system/database/mysqli.php file.

Monday, February 10, 2014

PHPBB3 Error: Could not get style data

I moved PHPBB3 files and database from my windows localhost to Linux based remote server. After changing the settings in the remote server's config.php files, I got an error Could not get style data when trying to get to the forum.

The reason for this error was that cache subdirectory was not writeable. Just chmod 777 cache and you should be fine.