Post by Ljubo » Thu Sep 14, 2017 10:16 pm

1.5.3.1 admin stopped working

errors at admin login page:
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xxx/public_html/system/database/mysql.php on line 6
Warning: fopen(/home/xxx/public_html/system/logs/error.txt): failed to open stream: No such file or directory in /home/xxx/public_html/system/library/log.php on line 12
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/xxx/public_html/system/library/log.php on line 14
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/xxx/public_html/system/library/log.php on line 16

after unsuccessful login, blank page with errors goes like this:
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/xxx/public_html/system/database/mysql.php on line 6
Warning: fopen(/home/xxx/public_html/system/logs/error.txt): failed to open stream: No such file or directory in /home/xxx/public_html/system/library/log.php on line 12
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/xxx/public_html/system/library/log.php on line 14
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/xxx/public_html/system/library/log.php on line 16
Warning: fopen(/home/xxx/public_html/system/logs/error.txt): failed to open stream: No such file or directory in /home/xxx/public_html/system/library/log.php on line 12
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/xxx/public_html/system/library/log.php on line 14
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/xxx/public_html/system/library/log.php on line 16
Warning: fopen(/home/xxx/public_html/system/logs/error.txt): failed to open stream: No such file or directory in /home/xxx/public_html/system/library/log.php on line 12
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/xxx/public_html/system/library/log.php on line 14
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/xxx/public_html/system/library/log.php on line 16

xxx is used for domain name

Any advice or help on this?

Thanks!

Active Member

Posts

Joined
Mon Jan 31, 2011 10:07 pm
Location - Serbia

Post by yodapt » Thu Sep 14, 2017 11:37 pm

The error is the advise itself.

Open you config.php and admin/config.php, lookup where it says mysql and change to mysqli

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by IP_CAM » Fri Sep 15, 2017 3:18 am

For OC v.1.5.3.x, you also need to download a mysqli.php File, to make it work!
Ernie

Mysqli for Opencart 1.5.x
https://www.opencart.com/index.php?rout ... rch=mysqli

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Ljubo » Fri Sep 15, 2017 4:35 pm

Thank you both!
It worked like a charm.
Other errors seems to be due to the lack of the folder system/logs.

Thank you again for prompt help!

Active Member

Posts

Joined
Mon Jan 31, 2011 10:07 pm
Location - Serbia
Who is online

Users browsing this forum: No registered users and 123 guests