• Resolved zerog981

    (@zerog981)


    Hi,

    because of the restrictive permission setup of our server (www-data being mostly a read-only user), TablePress seems to be unable to write custom CSS settings. The following message is displayed:

    "Due to the configuration of your server, TablePress was not able to automatically save your "Custom CSS" to a file. To try again with the same method that you use for updating plugins or themes, please fill out the "Connection Information" form below."

    Following this discussion I already tried giving write permission (664) to user www-data for the following files located in /wp-content/:

    tablepress-combined.min.css
    tablepress-custom.css
    tablepress-custom.min.css

    This did not have the desired effect. Are there any other files/folders TablePress needs to modify?

    Thanks in advance,
    Chris

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Essentially, TablePress uses WordPress’ “direct” filesystem access method. I’m not really sure about the details right now, but I believe that this means that the web server user must also be the own of the files, and that it’s not enough that they are writable for him.

    Regards,
    Tobias

    Thread Starter zerog981

    (@zerog981)

    Hi Tobias,

    thank you for your fast reply. Basically this means I have to talk to our admins. If there is a solution besides making the web server user file owner I’ll let you know.

    And by the way, your plugin is really awesome, thank you for your hard work!

    Chris

    • This reply was modified 4 years, 10 months ago by zerog981.
    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yes, that would be good in this case.

    Note that all this is not too big of a problem. If the “Custom CSS” can’t be saved to a CSS file, TablePress will simply load it directly into the page.

    Regards,
    Tobias

    Hi,

    Great plugin.

    I’ve had this issue also, couldn’t update and here is what I’ve found:

    Let’s say the directory wp-content/uploads is owned by www-data:www-data and wordpress updates are done using the ftp/ssh user john (for example). Then, john must be a member of the www-data group, and the wp-content/uploads directory must have 775 permissions.

    The three tablepress css files are saved in wp-content/uploads with ownership john:john and 644 permissions. So any further changes must either be done by ftp by the user john, or the ownership on the 3 files changed to, at least, the www-data group (and the group being given write permissions).

    I hope this can be of help.

    Best,
    Kain

    Thread Starter zerog981

    (@zerog981)

    Hi Kain,

    thanks for your advice. In the meantime our admin fixed the whole WP setup and made some major changes. Unfortunately I cannot say in detail what he did, but it’s working now. Anyway, what you suggested might be useful somewhere else.

    Chris

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    Kain: Thanks for sharing this advice! Yes, something like this might be necessary in certain access rights setups on the server.

    Chris: That’s great to hear! 🙂

    Best wishes,
    Tobias

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

The topic ‘Custom CSS cannot be saved’ is closed to new replies.