PHP script gets executed twice in SiteOrigin Editor widget
-
Hello SiteOrigin support,
we just noticed a problem with your widget “SiteOrigin Editor”. If we put a shortcode of the plugin “Woody code snippets – Insert Header Footer Code, AdSense Ads” (https://www.ads-software.com/plugins/insert-php/) into your widget, it gets executed twice.
Woody allows to execute PHP scripts in the place where its shortcodes get executed. Our PHP script takes POST variables sent to it and performs some database operations with it. We clearly can see that if we send the POST request then the PHP script put via shortcode into your SiteOrigin Editor widget gets executed twice with the same POST variables – with some microseconds in between round 1 and 2.
If we put the same shortcode into another widget (Individual HTML) then it only gets execute one time as it should.
We wrote this to the Woody support forum (https://www.ads-software.com/support/topic/php-script-gets-executed-twice-in-siteorigin/) and the Woody support thinks it must be your widget that executes the shortcode twice.
Perhaps you want to look into this.
Thank you for your work,
-doffine
- The topic ‘PHP script gets executed twice in SiteOrigin Editor widget’ is closed to new replies.