Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Cannot write in Define Pages Editor

    I am logged in as admin superuser.
    When I try to edit a define page I cannot write, no matter which editor I use.
    Please help.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Cannot write in Define Pages Editor

    Quote Originally Posted by ckosloff View Post
    I am logged in as admin superuser.
    When I try to edit a define page I cannot write, no matter which editor I use.
    Please help.
    There is no built in view only mode for define page content from within the ADMIN. To assist, would need to understand how the site is different from a standard default install to understand what is preventing changing text on this screen.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Re: Cannot write in Define Pages Editor

    There is no difference in installation, I installed on a Linode virtual machine with Debian 11, method is to set group to ckosloff:www-data and premssions to 775 to allow apache to write.
    Explained here:
    https://www.zen-cart.com/showthread....or-permissions.
    Thank you,
    CK

  4. #4
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Re: Cannot write in Define Pages Editor

    I just double checked, editor writes on the live site, but not on the local test site.
    BTW, live and local are installed with the same process.
    I always try to test in local site, before going live.
    I could write with CK editor, maybe it likes me because those are my initials.
    Thank you,
    CK

  5. #5
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Cannot write in Define Pages Editor

    Quote Originally Posted by ckosloff View Post
    There is no difference in installation, I installed on a Linode virtual machine with Debian 11, method is to set group to ckosloff:www-data and premssions to 775 to allow apache to write.
    Explained here:
    https://www.zen-cart.com/showthread....or-permissions.
    Thank you,
    CK
    Quote Originally Posted by ckosloff View Post
    I just double checked, editor writes on the live site, but not on the local test site.
    BTW, live and local are installed with the same process.
    I always try to test in local site, before going live.
    I could write with CK editor, maybe it likes me because those are my initials.
    Thank you,
    CK
    Perhaps could better explain how to possibly reproduce the observed issue.

    Here is what I understand:
    Login to admin.
    Navigate to tools menu.
    Select option related to define pages.
    Select define page from drop down menu.
    Window loads with text in a text box or an empty text box.

    Here is what I understand from the problem description: if I try to type anything in the text box, nothing happens. I can't delete any of the text and I can't add to it.
    Of course then if I select the save button, there is no change because I haven't been able to change any of the text.

    That is what I understand from how the issue was described. As such, the folder or file permissions would have nothing to do with the situation. Also, the situation I just described is not a designed feature of Zen Cart.

    Unfortunately, even with the additional statement of the issue occurring only on one of two sites doesn't really clarify the situation. Hopefully more will follow.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Re: Cannot write in Define Pages Editor

    @ mc
    Here is what I understand from the problem description: if I try to type anything in the text box, nothing happens. I can't delete any of the text and I can't add to it.
    Of course then if I select the save button, there is no change because I haven't been able to change any of the text.
    That is an accurate description of what is happening, cannot select text or modify anything, I was trying to edit the about_us page in local site.
    Of course I was logged as admin (superuser), to access the editor.
    Cannot understand the issue either, will post if I find something.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Cannot write in Define Pages Editor

    Quote Originally Posted by ckosloff View Post
    @ mc


    That is an accurate description of what is happening, cannot select text or modify anything, I was trying to edit the about_us page in local site.
    Of course I was logged as admin (superuser), to access the editor.
    Cannot understand the issue either, will post if I find something.
    That issue is not a configurable option of Zen Cart and has nothing to do with file permissions. There is something else about the software configuration/install (think of possibly jQuery or Javascript) that is preventing editing of the text box content.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Re: Cannot write in Define Pages Editor

    I'll try to be as explicit as possible:
    These are the perms in responsive_classic:
    root@crosshair:/var/www/html/zentest.com/includes/languages/english/responsive_classic# ls -al
    total 20
    drwxrwsr-x 2 ckosloff www-data 4096 May 31 21:33 .
    drwxr-sr-x 8 ckosloff www-data 4096 May 26 23:42 ..
    -rwxrwxr-x 1 ckosloff www-data 238 Mar 18 03:06 lang.contact_us.php
    -rwxrwxr-x 1 ckosloff ckosloff 697 May 18 23:20 lang.header.php
    -rwxrwxr-x 1 ckosloff www-data 1087 May 26 23:23 lang.index.php
    root@crosshair:/var/www/html/zentest.com/includes/languages/english/responsive_classic
    ANd this is the error I get:
    Error: I can not write to this file. Please set the right user permissions on: /var/www/html/zentest.com/includes/languages/english/html_includes/responsive_classic/define_contact_us.php
    Stop right there, now I see the error: I copied over lang.contact_us.php instead of the define page, bummers!

  9. #9
    Join Date
    Feb 2007
    Location
    South Florida, USA
    Posts
    1,372
    Plugin Contributions
    4

    Default Re: Cannot write in Define Pages Editor

    SOLVED!!
    I had to copy into the right folder.
    Here is the correct path and perms:

    root@crosshair:/var/www/html/zentest.com/includes/languages/english/html_includes/responsive_classic# ls -a
    l
    total 68
    drwxrwsr-x 2 ckosloff www-data 4096 May 31 22:01 .
    drwxr-sr-x 4 ckosloff www-data 4096 May 27 20:57 ..
    -rwxrwxr-x 1 ckosloff www-data 244 Mar 18 03:06 define_about_us.php
    -rwxrwxr-x 1 ckosloff www-data 246 Mar 18 03:06 define_checkout_success.php
    -rwxrwxr-x 1 ckosloff www-data 146 Mar 18 03:06 define_conditions.php
    -rwxrwxr-x 1 ckosloff www-data 82 May 31 22:08 define_contact_us.php
    -rwxrwxr-x 1 ckosloff www-data 144 Mar 18 03:06 define_discount_coupon.php
    -rwxrwxr-x 1 ckosloff www-data 995 May 27 20:32 define_main_page.php
    -rwxrwxr-x 1 ckosloff www-data 135 Mar 18 03:06 define_page_2.php
    -rwxrwxr-x 1 ckosloff www-data 134 Mar 18 03:06 define_page_3.php
    -rwxrwxr-x 1 ckosloff www-data 134 Mar 18 03:06 define_page_4.php
    -rwxrwxr-x 1 ckosloff www-data 149 Mar 18 03:06 define_page_not_found.php
    -rwxrwxr-x 1 ckosloff www-data 126 Mar 18 03:06 define_privacy.php
    -rwxrwxr-x 1 ckosloff www-data 132 Mar 18 03:06 define_shippinginfo.php
    -rwxrwxr-x 1 ckosloff www-data 294 Mar 18 03:06 define_shopping_cart.php
    -rwxrwxr-x 1 ckosloff www-data 266 Mar 18 03:06 define_site_map.php
    -rwxrwxr-x 1 ckosloff www-data 238 Mar 18 03:06 lang.contact_us.php



  10. #10
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Cannot write in Define Pages Editor

    As has been said in relation to other posts you've made about file and folder permissions, those may be necessary for your system (775) but are not standard nor otherwise directly suggested in the Zen Cart installation docs.

    Yes, that information may help you in the future, which is great, but it may open a security issue for someone else and why forum members post information such as this one.

    I again note though, the described error about not being able to save the file, at what point in trying to access the define page was that log generated?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Plain Text editor munging code in define pages editor
    By TecBrat in forum Customization from the Admin
    Replies: 2
    Last Post: 24 Feb 2013, 12:19 PM
  2. Define Pages Editor has only text editor no more html
    By faynart in forum General Questions
    Replies: 4
    Last Post: 13 Dec 2011, 08:03 PM
  3. Using a text editor instead of Define Pages Editor
    By Cookiepus in forum General Questions
    Replies: 3
    Last Post: 3 Feb 2010, 03:12 PM
  4. Define Pages Editor not opening editor
    By newuserhere in forum General Questions
    Replies: 9
    Last Post: 5 Jan 2007, 05:53 AM
  5. Cannot edit via Define Pages Editor
    By Nellie in forum Basic Configuration
    Replies: 1
    Last Post: 15 May 2006, 07:29 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR