Zen Cart Logo
Forums / General Questions / Any 'delete' URL results in page not found

Any 'delete' URL results in page not found

Views: 608

Results 1 to 3 of 3
21 Nov 2011, 9:48 AM
#1
grimtree avatar

grimtree

New Zenner

Join Date:
Nov 2011
Posts:
8
Plugin Contributions:
0

Any 'delete' URL results in page not found

Hello, I origianlly posted this issue as a SEO URL redirect issue, but after a lot of testing I am convinced its not that.

The problem manifested itself when I tried to delete somehting in the admin interface, I got the Zencart store layout "page cannot be found" error. That happened when tying to delete anything, products, featured items, sale items, mailing lists emails

After lots of testing I found out that it did it when the word 'delete' was in the URL. I tested this by altering the URL to change the word delete.

This URL:

http://www.grimtreegames.com/admin/featured.php?page=1&fID=33&action=delete

Shows the page cannot be displayed error

Whilst this URL with the typo in the 'delete':

http://www.grimtreegames.com/admin/featured.php?page=1&fID=33&action=dlete

Just shows the featured items page.

To confim the testing I went the starting admin page and put in the delete action:

http://www.grimtreegames.com/admin/index.php?action=delete

and got the zencart 'page not found'.

However the same URL with test instead of delete:

http://www.grimtreegames.com/admin/index.php?action=test

Just shows the admin page.

To test further I tried doing the same in the store rather than the admin area

This URL:

http://www.grimtreegames.com/index.php?action=delete

Shows 'page not found'

This URL:

http://www.grimtreegames.com/index.php?action=test

Shows the page correctly.

To conclude, every and any URL with the word 'delete' in prompts Zen Cart to show page cannot be found.

I am not looking for the magic bullet answer at this point, just where to look next. How does the Zen Cart page not found work? Can you give any advice as to where to look next?

Thanks

21 Nov 2011, 7:04 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Any 'delete' URL results in page not found

Your hosting company has probably added a mod_security rule that traps the word "delete" and triggers a 404 error. They're probably over-reacting to somebody getting hacked with the word "delete" used by the hacker to do database damage. There are smarter ways to write mod_security rules that won't trigger the problem you're encountering.
Contact your hosting company to resolve the problem they've created on their servers.

22 Nov 2011, 10:53 AM
#3
grimtree avatar

grimtree

New Zenner

Join Date:
Nov 2011
Posts:
8
Plugin Contributions:
0

Re: Any 'delete' URL results in page not found

Will do, thanks for the reply!