Forums / General Questions / Define Pages Editor 412 Precondition Failed when saving files

Define Pages Editor 412 Precondition Failed when saving files

Locked

Started by dsided on 11 Sep 2008, 2:44 PM · Views: 2,476

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
11 Sep 2008, 2:44 PM
#1
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Define Pages Editor 412 Precondition Failed when saving files

I've installed the about us mod and created a further number of pages using this as a template (but changing the names).

When I'm in the admin and I use Define Pages Editor to edit a file, when I click save I get the following error message:

**412 Precondition Failed
The precondition on the request for the URL /admin/define_pages_editor.php evaluated to false.
**
Do you think this is a permission issue or a setting I need to adjust in the admin?

All help appreciated!

John Crumpton, Technical Director of Double Sided
Zen cart shop: Buy happie loves it

11 Sep 2008, 2:55 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,730
Plugin Contributions:
0

Re: Define Pages Editor 412 Precondition Failed when saving files

What permissions do you have on the folder and files?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

11 Sep 2008, 3:20 PM
#3
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Define Pages Editor 412 Precondition Failed when saving files

Hi Kim, thanks for the quick responce.

This is the files and folders permissions for the about us page:

755 include/extra_datafiles
644 include/extra_datafiles/about_us_filenames.php
644 includes/languages/english/extra_definitions/mysitetemplate/about_us.php
644 includes/languages/english/html_includes/mysitetemplate/define_about_us.php
644 includes/languages/english/mysitetemplate/about_us.php
755 includes/modules/pages/about_us/
644 includes/modules/pages/about_us/header_php.php
755 includes/templates/mysitetemplate/templates/tpl_about_us_default.php
644 includes/templates/mysitetemplate/templates/tpl_about_us_default.php

It all seems ok to me, so perhaps it's something else? What do you think?

John Crumpton, Technical Director of Double Sided
Zen cart shop: Buy happie loves it

11 Sep 2008, 3:40 PM
#4
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Define Pages Editor 412 Precondition Failed when saving files

I've been testing this a bit more and the following pages don't throw up that error:

define_checkout_success
main_page
define_page_not_found

This is the address of when the error comes up
mysite.com/admin/define_pages_editor.php?lngdir=english&filename=define_returns.php&action=save

This is for the returns page.

John Crumpton, Technical Director of Double Sided
Zen cart shop: Buy happie loves it

11 Sep 2008, 9:38 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Define Pages Editor 412 Precondition Failed when saving files

If the files in /includes/languages/YOUR_LANGUAGE/html_includes/YOUR_TEMPLATE aren't set to writable (usually 777) then the admin editor cannot save changes to them.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Sep 2008, 12:02 AM
#6
dsided avatar

dsided

Zen Follower

Join Date:
Jun 2008
Posts:
128
Plugin Contributions:
0

Re: Define Pages Editor 412 Precondition Failed when saving files

Thanks DrByte that's fixed the problem!

John Crumpton, Technical Director of Double Sided
Zen cart shop: Buy happie loves it

12 Sep 2008, 3:54 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Define Pages Editor 412 Precondition Failed when saving files

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.