Deprecated: mysql_connect(): ?

erminrajic

New Member
Anyone knows what this is and how to fix it?
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/83/189083/scain.se/public_html/sources/sql/mysql.php on line 32

Right now the script is installed but i cant se much or do anything at all in admin=( Here is the site http://scain.se/ im trying it on.
 

Mark

Administrator
Staff member
Hello Ermin, you need to roll back PHP version previous to 5.5 OR disable deprecated warnings in your php.ini.

We will have an update coming out that will no longer use mysql_ functions but its a considerable rewrite.
 

Basti

Administrator
Staff member
If downgrading is not an option, open up settings_sql.php

PHP:
$CONF['sql_prefix'] = 'VL';
On a new blank line below the above, paste the following
PHP:
error_reporting(E_ALL & ~E_DEPRECATED);
 

Mark

Administrator
Staff member
Hey Tarakan, sorry to hear you are having problems but lets go through them as they are easily solved/understood.

1) In parabola theme the footer appears at the end of the content, when you have more content in your sidebar it will look more the way you think it should.

2)
a) invalid timezone, you have "Germany/Berlin" set however the correct setting is "Europe/Berlin"
b) https wrapper is disabled in the server configuration - you need to enable this in your server configuration, Google recaptcha requires https
c) file_get_contents error happens because of above error.
d) cannot modify header info error also happens because of above.

so in short, fix your timezone to be correct and enable https wrapper (allow_url_fopen) and all of those issues are gone.
 

Mark

Administrator
Staff member
If anyone is interested I have mysqli_ drivers ready for testing, simply reply to this message or send me a PM and I will send over the file. Otherwise it will be included in 1.5 release.
 
Top