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

Define Pages Editor 412 Precondition Failed when saving files

Locked

Views: 2,430

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!

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

Kim

Obaa-san

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

Re: Define Pages Editor 412 Precondition Failed when saving files

What permissions do you have on the folder and files?

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?

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.

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

drbyte

Sensei

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

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.

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!