• Resolved adjenks

    (@adjenks)


    I can’t use my theme-editor.php with zerif-lite but if I enable any other theme it works. With zerif-lite activated, I can go to theme-editor.php, but when I hit submit it takes me to a 404 page. The 404 page has the correct address ending with theme-editor.php and if I hit refresh it goes back to the theme editor. My changes do not save when I hit submit, it also takes a long time to load the 404 page.
    Can anyone help me with this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    What version of Zerif Lite are you using? I tried replicating this but everything was ok.

    Regards,
    Rodica

    Thread Starter adjenks

    (@adjenks)

    I was previously using 1.8.2.3, but I recently updated to the newest version (1.8.3.5) and it still isn’t working. I also recently updated to the newest version of wordpress. The editor didn’t work before or after the updates.

    Hi,

    After the update, have you tried again with other themes and it’s working? Also, can you let me know if you are using custom permalinks, and if this is the case, if you have tried reseting the permalinks?

    Regards,
    Rodica

    Thread Starter adjenks

    (@adjenks)

    Yes, now that everything is updated, I tried editing with two different themes, the other ones let me edit. Also yes, I tried reseting the permalinks. Tried setting them to various configurations, nothing fixes it. Okay, so I just noticed that I cannot edit the zerif theme stylesheet even when activating another theme, but I can edit other themes with Zerif activated, that is strange. So it seems like just that one file is protected. Under that theory, I checked to see the file permissions, and they are the same all all of the other style.css files, they also have the same file owner, so they are identical in terms of permissions as far as I can see. I just can’t figure it out… It just seems like I can’t edit that one file. I can edit it from an FTP connection using WinSCP and notepad, but I can’t edit that one file. I actually tried editing another file “comments.php” in the zerif theme, it worked fine. I just can’t edit “style.css” in the zerif theme, it always takes like 2 minutes and then takes me to a 404 page for some reason.

    Thread Starter adjenks

    (@adjenks)

    I thought it was working for a second, but it’s just the other pages still. I can edit php files, but not the style.css. I want to be able to give other admins access to the style sheet via the editor. So it would be nice if I could get it going and not have to give them FTP usernames and passwords.

    Thread Starter adjenks

    (@adjenks)

    I’ve figured it out!!!
    So, on line 131 of style.css it says
    “/* Selection colours (easy to forget) */”
    The commenting followed by the word “select” was raising a security flag since when it was being submitted via POST by the editor page.
    I changed the line to say $selection, instead of Selection and now it nolonger raises any security flags and it works fine…
    Ta da!

    Thread Starter adjenks

    (@adjenks)

    It was php’s “mod_security” that was “breaking” things. It thought it was helping keep hackers out.
    I’ll mark this topic as resolved now, I suppose…

    By the way, you have a typo in your comments on line 2498 of “style.css”. The word “packages” is missing the letter ‘k’. Ha.

    Alexandra

    (@alexandrastan001)

    Hello,

    Glad that you got it solved and thank you for sharing your solution with everybody here.
    Also, thank you for reporting the typo. We will get that fixed.

    Best regards,
    Alexandra

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Zerif-Lite Theme Breaks the Theme Editor’ is closed to new replies.