WordPress.org

Ready to get started?Download WordPress

Forums

WP-LESS
[resolved] Disappearing CSS file from uploads/wp-less (18 posts)

  1. Whiteout Labs
    Member
    Posted 1 year ago #

    Thanks for the awesome plugin, setup was super easy and worked out of the box with my LESS files...

    However.....
    A very strange thing happened yesterday, the complied CSS file went missing without any user intervention, only when I made a change to the source LESS file and it was recompiled did it start showing again. Any ideas why this might be happening?

    Thanks!

    http://wordpress.org/extend/plugins/wp-less/

  2. oncletom
    Member
    Plugin Author

    Posted 1 year ago #

    It was an issue of the 1.5 beta version. It has been fixed in 1.5.1. The garbage collector also cleaned used files.

    If a cache system was active, the CSS was never compiled again causing your website to be naked.

    Please be sure to have the latest version installed!

  3. Whiteout Labs
    Member
    Posted 1 year ago #

    Thanks for getting back to me, yup I'm on 1.5.1, that's the only version I've installed. Is there a set time the garbage collector runs? I think the problem occurred about 5-6 days after the last time the LESS file was updated.

    What kind of caching system were you thinking? I've not set any server document expiration.

  4. ocouno
    Member
    Posted 1 year ago #

    I am getting this to on 1.5.1

  5. Patrick Daly
    Member
    Posted 1 year ago #

    Experiencing the same issue. No caching.

    WP 3.5 and WP-LESS 1.5.1

  6. oncletom
    Member
    Plugin Author

    Posted 1 year ago #

    Well, it's weird. Try to deactivate and reactive the plugin.
    This issue has been fixed in 1.5.1 so I'm hardly understanding why it would persist to exist on your installs.

    Garbage collection is plugged in WP-Cron mechanism on a daily basis, and is effective for every file older than 5 days. Except than on 1.5.1 i've added a fix which keeps the more recent version of each compiled file, even if it's older than 5 days.

    Do you have APC file caching activated?

  7. Whiteout Labs
    Member
    Posted 1 year ago #

    Thanks Oncle,
    I did some research and found out godaddy did implement APC caching, I can assume other shared hosting providers are doing the same thing.

    http://support.godaddy.com/help/article/7910/disabling-apc-on-your-hosting-account

    Hopefully this will fix the error!
    Huge thanks!

  8. oncletom
    Member
    Plugin Author

    Posted 1 year ago #

    Good news! You should definitely keep APC on as it speeds up your website.

    However it may be the only way to purge APC cache, disabling and enabling it.

  9. oncletom
    Member
    Plugin Author

    Posted 1 year ago #

    Another alternative is to have apc.stat turned on.

    > http://php.net/manual/en/apc.configuration.php#ini.apc.stat

    It will check filechange for each request.

  10. kolen
    Member
    Posted 1 year ago #

    Experiencing this too. Plugin 1.5.1, WordPress 3.4.2. Maybe because it conflicted with cache system on wpengine.com, they have sophisticated caching system.
    Deactivating and activating the plugin didn't help, compiled stylesheet file still missing and still referenced from pages. wp-content/uploads/wp-less/(themename)/ directory is empty and has no compiled css files.
    Clearing cache on wpengine.com also didn't help.

  11. oncletom
    Member
    Plugin Author

    Posted 1 year ago #

    Well the major problem is the garbage collector should not delete all files.

    Do your hosting service provide APC cache? Because it can be an issue: an old PHP file is used instead of the updated ones.

    wp-less does not hook on caching mechanism so normally wpengine would not have any effect on this problem (I hope).

  12. kolen
    Member
    Posted 1 year ago #

    Yes, they have APC. It cannot be disabled, but there is "Clear all caches" button in their admin panel, I tried pressing it, compiled css file still not regenerated. Also
    And css file disappeared when no specific actions was done, i.e. not after doing something in /wp-admin/.
    Also seems that wordpress core used in wpengine.com wordpress installations has some modifications.

  13. boogah
    Member
    Posted 1 year ago #

    Actually, WP Engine uses eAccelerator — not APC — and you can ask support to disable it if you feel it's conflicting. I should know, I work there. ;)

    As for core modifications, we don't do that either. All modifications to WordPress installs happen via plugins. Please contact WP Engine support if you have any concerns about anything I've said above.

  14. oncletom
    Member
    Plugin Author

    Posted 1 year ago #

    Cool, thanks @boogah for the insight!

  15. oncletom
    Member
    Plugin Author

    Posted 1 year ago #

    An issue has been spotted and should be fixed by 1.5.2.

    It would have persisted with any opcode cache not stating files.
    Update the plugin, modify your stylesheet and it would be back on tracks.

    On the next version I'll add an admin panel to force reload/invalidate cache files to avoid those manipulations in case of bug.

    Keep me in touch.

  16. ferahl
    Member
    Posted 1 year ago #

    Edit: I just noticed I am actually using an older version (1.5.2) and will update now and see if the problem happens again with 1.5.3

  17. banesto
    Member
    Posted 1 year ago #

    Well, I have 1.5.3 and it happened too. I got error that one generated css file is missing. I fixed this issue by disabling/enabling the plugin, but that's strange behavior.

  18. ferahl
    Member
    Posted 1 year ago #

    I might add I also have 1.5.3 and I still have this issue of the css path randomly becoming 404. I am still not sure if less is changing the path to one that doesn't exist, or if the generated css file itself disappears (will take a note of the current hash for next time it happens). Fixable by enabling/disabling the plugin or editing the offending less file. Happens on both my production server running php 5.2 and my local running php 5.3 with no unusual mods and both with the latest wordpress.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic