Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2008
    Posts
    129
    Plugin Contributions
    0

    Default 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!

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Jun 2008
    Posts
    129
    Plugin Contributions
    0

    Default 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:

    Code:
    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?

  4. #4
    Join Date
    Jun 2008
    Posts
    129
    Plugin Contributions
    0

    Default 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.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default 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.

  6. #6
    Join Date
    Jun 2008
    Posts
    129
    Plugin Contributions
    0

    Default Re: Define Pages Editor 412 Precondition Failed when saving files

    Thanks DrByte that's fixed the problem!

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default 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.

 

 

Similar Threads

  1. v150 Define Pages Editor Deleting All Info When Saving
    By Psykryph in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Aug 2012, 09:45 AM
  2. html code changed when saving in define pages
    By Wiregrass in forum General Questions
    Replies: 5
    Last Post: 22 Aug 2009, 10:33 PM
  3. Define Pages Editor not saving changes
    By jharper in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Jan 2009, 03:25 AM
  4. Define Pages Editor Not Saving
    By redukdaz in forum Basic Configuration
    Replies: 1
    Last Post: 23 Oct 2008, 11:06 PM
  5. define pages editor not saving anything...
    By chrisnasah in forum General Questions
    Replies: 4
    Last Post: 25 Sep 2007, 03:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg