Support » Plugin: Recent Posts Widget With Thumbnails » update() running on every page load, causing 404

  • Resolved twistedpixel8



    Just reporting a strange issue I’m encountering. It seems that every time a page loads on my site with this plugin, the plugin’s update() function is called.The problem is that at the end of this function, it removes the public.css file (and then generates it again). I imagine this is not supposed to happen every page load but only when the plugin updates.

    Anyway, the issue is that it seems that the file is removed but is not regenerated until after requested by the page loading, resulting in a 404. I comment the unlink() command and it works as expected.

    Any thoughts?


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


    The update() function should be fired only when you have clicked on the “Save” button in the widget form. So I can not reconstruct your case.

    That’s what I would have thought but that’s not what’s happening here. I’ve tested it on a fresh install of WP and Elementor and set it up the same way: Created an Archive template and a Sidebar template, added the widget to the Sidebar template and included the Sidebar template inside the Archive template.

    The update() function of your plugin is being called by /wp-content/plugins/elementor/includes/widgets/wordpress.php at line 210, inside function get_init_settings()

    Plugin Author Martin Stehle


    Sorry I’m late for answering. In the case of a 3rd-party plugin triggering functions in other plugins I can not help you. I think that is a case for Elementor.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.