AbanteCart Community

Shopping Cart Operations => Support => Topic started by: Dave1960 on December 11, 2014, 04:11:34 PM

Title: HELP! Every page comes up with "The page you requested cannot be found!"
Post by: Dave1960 on December 11, 2014, 04:11:34 PM
Can't even log into Admin area -

the site is inkandtonertoday.com

Any ideas?

Thank you!

Dave
Title: Re: HELP! Every page comes up with "The page you requested cannot be found!"
Post by: abantecart on December 11, 2014, 08:15:15 PM
Any errors in the log file?
Title: Re: HELP! Every page comes up with "The page you requested cannot be found!"
Post by: Dave1960 on December 12, 2014, 02:19:25 AM
Can you tell me where to find it on the server? I can't log in as admin.

Thank you!

Dave
Title: Re: HELP! Every page comes up with "The page you requested cannot be found!"
Post by: Dave1960 on December 12, 2014, 02:33:25 AM
I believe it has something to do with rewrite rule for the .htaccess file - the original was this:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]

This gave me page not found errors on the home page and cannot log in. However SOME of the product pages were intact, some were not.

I changed it to this:

RewriteEngine On

RewriteCond %{THE_REQUEST} \s/+index\.php\?([^\s&]+) [NC]
RewriteRule ^ %1? [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/?$ index.php?$1 [L,QSA]

Now the home page comes up but no other pages come up (they all rewrite to the home page), we can't use the admin login, and no customers can log in.

I went back to the original htaccess file so you can see what it's doing.

Any ideas on how to fix it?

Thank you!!

Dave

Title: Re: HELP! Every page comes up with "The page you requested cannot be found!"
Post by: Basara on December 12, 2014, 04:42:07 AM
Hello.

Try to disable SEO urls in AbanteCart settings (http://www.abantecart.com/ecommerce-documentation/50-admin-user-manual/system/settings#System%20Tab).
Also report last few issues in AbanteCart error log (http://forum.abantecart.com/index.php/topic,834.msg3085.html#msg3085)
Title: Re: HELP! Every page comes up with "The page you requested cannot be found!"
Post by: Dave1960 on December 12, 2014, 04:50:08 AM

Basara - I would, but I cannot log in - I cannot get to the admin login page, as I stated on the original request. It gives me the same 'page not found' error in the middle of the cart page.

Thoughts??

Thank you,

Dave
Title: Re: HELP! Every page comes up with "The page you requested cannot be found!"
Post by: yonghan on December 12, 2014, 05:04:52 AM
Hi,just now I can't open your site.Please login to your cpanel,open and copy the error.txt content under system/logs and paste it here so admins can see the errors.
Title: Re: HELP! Every page comes up with "The page you requested cannot be found!"
Post by: Dave1960 on December 12, 2014, 05:08:29 AM

I found the log file - what does this mean?

Check setting of your store domain URL in System Settings . Loading default store configuration for now. in /home/inkandto/public_html/core/lib/config.php on line 169
2014-09-07 9:56:17 - App Warning:  AbanteCart core v.1.1.9 Warning: Accessing store with unconfigured or unknown domain ( 108.175.146.168/ ).


ANd now all of a sudden I am getting this:


2014-12-12 6:33:03 - warning:  AbanteCart core v.1.1.9 mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in <b>/home/inkandto/public_html/core/database/mysql.php</b> on line <b>46</b>
2014-12-12 6:33:03 - database error:  AbanteCart core v.1.1.9 Error: Could not make a database connection using inkandto_aban796@localhost in <b>/home/inkandto/public_html/core/database/mysql.php</b> on line <b>48</b>


Can you tell me what's going on? Has the site been hacked?
Title: Re: HELP! Every page comes up with "The page you requested cannot be found!"
Post by: yonghan on December 12, 2014, 05:14:23 AM
The bottom error indicate that you can't connect to database using the given username.You can contact  your hosting and ask their support to check if your website been hacked or not as this is not related to abantecart error.

Hope it helps
Title: Re: HELP! Every page comes up with "The page you requested cannot be found!"
Post by: Dave1960 on December 12, 2014, 05:33:28 AM

This problem has been resolved. The web host rebooted the server and it is now fixed. Thank you for all of your troubles. I greatly appreciate your support!!

Dave
Title: Re: HELP! Every page comes up with "The page you requested cannot be found!"
Post by: yonghan on December 12, 2014, 05:40:21 AM
You're welcome :)