• Resolved kitfreesky

    (@kitfreesky)


    Hi,

    The plugin works fine while it seems to have a file permission issue with plugin’s public.css file which is 600 instead of a normal 644 when install it from wordpress.org,that will cause a 404 error when using the plugin.Please fix it. BTW, could a new option be added to make users disable this public.css as it may be not suitable for all site? Thank you very much for this nice plugin!

    https://wordpress.org/plugins/recent-posts-widget-with-thumbnails/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    To chmod a file to 0600 is a very rare case due to the configuration of your server. Never heard of that. But no worry: I will implement a permission changing function as soon as possible to make sure the file gets the correct permissions.

    Why should disabling the public.css correct a non-accessible public.css? That makes no sense to me.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    I fixed the issue of the file permissions. With the new version 4.10.1 the 0644 setting is ensured after creating the public.css.

    I would be glad about a review by you.

    Thread Starter kitfreesky

    (@kitfreesky)

    Thanks a lot for the quick fix! I looked into plugin’s code and it’s file_put_contents() that will create the file with a 600 permission? As to custom CSS option, it’s better if we can control some more css e.g. ul li ,the default css is not adjustable , it will override the global css of the website. I have made a five star review of your plugin.Thank you.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    Yes, file_put_contents() writes the file, but the mode 0600 or 0644 is set by the server automatically until the admin or a script changes the mode explicitly. On all of my servers the CSS file is set to 0644 after file_put_contents() automatically. So 0600 on your server is due to a server configuration.

    Plugin Author Martin Stehle

    (@hinjiriyo)

    You can override the CSS code with selectors with higher specificities than in the public.css, e.g. with a Custom CSS plugin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Public.css permission issue and custom css?’ is closed to new replies.