AbanteCart Community

Shopping Cart Operations => Support => Topic started by: pankaj2020 on May 16, 2020, 04:24:02 AM

Title: Updated to 1.2.16, site & admin page not accessible
Post by: pankaj2020 on May 16, 2020, 04:24:02 AM
Upgraded to abantecart 1.2.16 version , site & even admin page is not accessible, please help

Index.php & config.php (AbanteCart/system/) permissions were 755

Regards
Pankaj
Title: Re: Updated to 1.2.16, site & admin page not accessible
Post by: Basara on May 18, 2020, 03:53:25 AM
Hello.

Please check for latest errors in your error log file (https://forum.abantecart.com/index.php/topic,834.msg3085.html#msg3085)
Title: Re: Updated to 1.2.16, site & admin page not accessible
Post by: pankaj2020 on May 18, 2020, 08:27:56 AM
Accessed Error Logs @ /public_html/domain name /system/logs


2020-03-16 11:27:48 - database error:  AbanteCart core v.1.2.15 Cannot establish database connection. Check your database connection settings. in <b>/home/................./core/database/amysqli.php</b> on line <b>54</b>
2020-03-16 11:27:48 - warning:  AbanteCart core v.1.2.15 mysqli::mysqli(): (42000/1203): User (server-database name) already has more than 'max_user_connections' active connections in <b>/home/.................../core/database/amysqli.php</b> on line <b>50</b>
2020-03-16 11:27:48 - App Error:  AbanteCart core v.1.2.15 Cannot establish database connection to (server-database name) using (server-database name)@localhost
Trace:
   #0 /home/........................./core/database/amysqli.php on line 52
   #1 /home/........................./core/lib/db.php on line 52
   #2 /home/........................./core/init.php on line 316
   #3 /home/........................./index.php on line 55

Regards
Pankaj
Title: Re: Updated to 1.2.16, site & admin page not accessible
Post by: pankaj2020 on May 18, 2020, 08:40:47 AM

[18-May-2020 06:57:40 Etc/GMT] PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /home/................................../core/lib/PaymentHandlerInterface.php on line 22
[18-May-2020 07:15:39 Etc/GMT] PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /home/................................../core/lib/PaymentHandlerInterface.php on line 22
[18-May-2020 07:15:39 Etc/GMT] PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /home/................................../core/lib/PaymentHandlerInterface.php on line 22
[18-May-2020 07:18:20 Etc/GMT] PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /home/................................../core/lib/PaymentHandlerInterface.php on line 22
[18-May-2020 07:18:20 Etc/GMT] PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /home/................................../core/lib/PaymentHandlerInterface.php on line 22
Title: Re: Updated to 1.2.16, site & admin page not accessible
Post by: abolabo on May 18, 2020, 09:08:36 AM

[18-May-2020 06:57:40 Etc/GMT] PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /home/................................../core/lib/PaymentHandlerInterface.php on line 22
[18-May-2020 07:15:39 Etc/GMT] PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /home/................................../core/lib/PaymentHandlerInterface.php on line 22
[18-May-2020 07:15:39 Etc/GMT] PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /home/................................../core/lib/PaymentHandlerInterface.php on line 22
[18-May-2020 07:18:20 Etc/GMT] PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /home/................................../core/lib/PaymentHandlerInterface.php on line 22
[18-May-2020 07:18:20 Etc/GMT] PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{' in /home/................................../core/lib/PaymentHandlerInterface.php on line 22

to solve just replace file /core/lib/PaymentHandlerInterface.php with attachement
Title: Re: Updated to 1.2.16, site & admin page not accessible
Post by: pankaj2020 on May 18, 2020, 09:51:58 AM
Thanks a lot..you made my day... that was easy...don't know what could have caused problem and never thought, it would be that simple, as thought some serious problem.

Can there be some remedial or back-up method in future, (even after testing ) whereby if happens to live site, errors can be corrected immediately, so that atleast Site is Live for visitors

Also, What is best method to upgrade abantecart

Thanks a lot once again

Regards
Pankaj
Title: Re: Updated to 1.2.16, site & admin page not accessible
Post by: abantecart on May 18, 2020, 12:09:20 PM
I suggest to upgrade AbanteCart manually (not via web browser). This is more secure, stable and clear.
https://abantecart.atlassian.net/wiki/spaces/AD/pages/4980799/AbanteCart+Upgrade

Never upgrade a live site. Try upgrade first on a test or clone copy of your live site.
Title: Re: Updated to 1.2.16, site & admin page not accessible
Post by: HADY on March 17, 2021, 04:32:13 AM
[quote  AbanteCart core v.1.2.15 Cannot establish database connection. Check your database connection settings. in <b>/home/................./core/database/amysqli.php</b> on line <b>54</b>
2020-03-16 11:27:48 - warning:  AbanteCart core v.1.2.16 mysqli::mysqli(): (42000/1203): User (server-database name) already has more than 'max_user_connections' active connections in <b>
[/quote]


I have same error since 2 says, how to solve it please?

2021-03-17 8:08:09 - warning: AbanteCart core v.1.2.16 mysqli::__construct(): (42000/1203): User u_ac2 already has more than 'max_user_connections' active connections in <b>/home/public_html/core/database/amysqli.php</b> on line <b>50</b>
2021-03-17 8:08:09 - App Error: AbanteCart core v.1.2.16 Cannot establish database connection to u_ac2 using u_ac2@localhost
Trace:
#0 /home/public_html/core/database/amysqli.php on line 52
#1 /home/public_html/core/lib/db.php on line 52
#2 /home/public_html/core/init.php on line 322
#3 /home/public_html/index.php on line 55