Author Topic: The admin page is not working....with 403 error.  (Read 7576 times)

Offline hisapon

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
The admin page is not working....with 403 error.
« on: November 16, 2017, 05:47:44 AM »
Hello.
I think that I am not good at English and troublesome, please help me.

I was impressed very much by trying the demo of AbanteCart.
It is far superior to other EC tools.

I immediately installed AbanteCart yesterday with cPanel and Softaculous Apps Installer.

I entered my user name and password on the admin login page, and I was able to access the administration screen.
But In first dashboad page I saw 403 error.

The error message has been displayed by sliding from the left side of the screen.
Please check attached image.

Then erase the error alert and move to another page, it is displayed in the center of the screen with 403

I looked for a past post on this forum to find a solution.
And I set the permissions of files and folders to 644 and 755 by referring to them.
But I could not solve it.

Does anyone know how to solve this problem?

Maybe the front office page is works fine.....



AbanteCart ver. : 1.2.11

Hosting server
PHP ver. : 7.0.25
MySQL ver. : 10.1.24-MariaDB-cll-lve
Web browser: Chrome

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: The admin page is not working....with 403 error.
« Reply #1 on: November 16, 2017, 06:14:11 AM »
please press F12 and open network tab inside developer tools panel. You should to define what url gives 403.
Please post it here.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline hisapon

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Re: The admin page is not working....with 403 error.
« Reply #2 on: November 16, 2017, 07:05:56 AM »
Hello.
Thank you for your reply.
I tried F12 and see the network tab.
the 3 line is red color text and 403.
this is after click Catalog>>Category
Where should i watch?

thank you.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: The admin page is not working....with 403 error.
« Reply #3 on: November 16, 2017, 07:07:25 AM »
Hello.
Thank you for your reply.
I tried F12 and see the network tab.
the 3 line is red color text and 403.
this is after click Catalog>>Category
Where should i watch?

thank you.

just do right-click-> Copy URL
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline hisapon

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Re: The admin page is not working....with 403 error.
« Reply #4 on: November 16, 2017, 07:16:35 AM »
Here is red text(******is my admin folder):

my_url/index.php?rt=listing_grid/category&s=******&token=galnYHzK3TTj**********

my_url/index.php?rt=listing_grid/message_grid/getnotifies&s=******&token=galnYHzK3TTj**********

my_url/index.php?rt=common/common/checksystem&s=admin123&token=galnYHzK3TTj**********&_=1510833******

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: The admin page is not working....with 403 error.
« Reply #5 on: November 16, 2017, 11:00:56 AM »
what about system->logs->error log?
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline hisapon

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Re: The admin page is not working....with 403 error.
« Reply #6 on: November 16, 2017, 11:22:00 AM »
Thank you for your reply.
I can't see error log because shown 403 error.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: The admin page is not working....with 403 error.
« Reply #7 on: November 16, 2017, 12:07:06 PM »
you can open it from filemanager on your host.
file public_html/system/logs/error.txt
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline hisapon

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Re: The admin page is not working....with 403 error.
« Reply #8 on: November 16, 2017, 06:44:54 PM »
Hello.
Thanks to you I was able to see the error.txt.
This is error log

2017-11-16 11:58:25 - database error:  AbanteCart core v.1.2.11 SQL Error: MySQL server has gone away<br />Error No: 2006<br />SQL: SELECT *
             FROM ab8n_ant_messages
             WHERE id = 'abantecart_hosting'
             AND language_code = '*'
             ORDER BY viewed_date ASC in <b>/home/*****/public_html/parts/core/database/amysqli.php</b> on line <b>109</b>
2017-11-16 11:58:33 - warning:  AbanteCart core v.1.2.11 mysqli::__construct(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 &quot;No such file or directory&quot;) in <b>/home/*****/public_html/parts/core/database/amysqli.php</b> on line <b>47</b>
2017-11-16 11:58:33 - App Error:  AbanteCart core v.1.2.11 Cannot establish database connection to *****_abant32 using *****_abant32@localhost in /home/*****/public_html/parts/core/database/amysqli.php on line 49
2017-11-16 11:58:33 - database error:  AbanteCart core v.1.2.11 Cannot establish database connection. Check your database connection settings. in <b>/home/*****/public_html/parts/core/database/amysqli.php</b> on line <b>51</b>
2017-11-16 11:58:34 - warning:  AbanteCart core v.1.2.11 mysqli::__construct(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 &quot;No such file or directory&quot;) in <b>/home/*****/public_html/parts/core/database/amysqli.php</b> on line <b>47</b>
2017-11-16 11:58:34 - App Error:  AbanteCart core v.1.2.11 Cannot establish database connection to *****_abant32 using *****_abant32@localhost in /home/*****/public_html/parts/core/database/amysqli.php on line 49
2017-11-16 11:58:34 - database error:  AbanteCart core v.1.2.11 Cannot establish database connection. Check your database connection settings. in <b>/home/*****/public_html/parts/core/database/amysqli.php</b> on line <b>51</b>
2017-11-16 11:58:35 - warning:  AbanteCart core v.1.2.11 mysqli::__construct(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 &quot;No such file or directory&quot;) in <b>/home/*****/public_html/parts/core/database/amysqli.php</b> on line <b>47</b>
2017-11-16 11:58:35 - App Error:  AbanteCart core v.1.2.11 Cannot establish database connection to *****_abant32 using *****_abant32@localhost in /home/*****/public_html/parts/core/database/amysqli.php on line 49
2017-11-16 11:58:35 - database error:  AbanteCart core v.1.2.11 Cannot establish database connection. Check your database connection settings. in <b>/home/*****/public_html/parts/core/database/amysqli.php</b> on line <b>51</b>
2017-11-16 11:58:36 - warning:  AbanteCart core v.1.2.11 mysqli::__construct(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 &quot;No such file or directory&quot;) in <b>/home/*****/public_html/parts/core/database/amysqli.php</b> on line <b>47</b>
2017-11-16 11:58:36 - App Error:  AbanteCart core v.1.2.11 Cannot establish database connection to *****_abant32 using *****_abant32@localhost in /home/*****/public_html/parts/core/database/amysqli.php on line 49
2017-11-16 11:58:36 - database error:  AbanteCart core v.1.2.11 Cannot establish database connection. Check your database connection settings. in <b>/home/*****/public_html/parts/core/database/amysqli.php</b> on line <b>51</b>



I think that.... It does not seem to be able to connect to the database.......

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: The admin page is not working....with 403 error.
« Reply #9 on: November 17, 2017, 04:42:25 AM »
yes. looks so.
Check your database credentials in system/config.php file
« Last Edit: November 17, 2017, 04:44:00 AM by abolabo »
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline hisapon

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Re: The admin page is not working....with 403 error.
« Reply #10 on: November 17, 2017, 08:27:25 AM »
Hello.
Thank you for your big help.
The admin system can connect my DB....

I tried to change Database Configuration in config.php.

// Database Configuration
define('DB_DRIVER', 'amysqli');

to

// Database Configuration
define('DB_DRIVER', 'apdomysql');

I will check AbanteCart!!

Thank you very much.

 

Powered by SMFPacks Social Login Mod