B.I.T.F.O.

ChrisMerriman.com

April 15th, 2008 at 12:53 am

Executable PHP Widget And Wordpress 2.5

Or more specifically, the possibility of an issue with the Exec PHP Widget and the plugin auto upgrade feature found in WP 2.5
When upgrading this blog to Wordpress 2.5, I thought I had tested all plugins thoroughly, however after I auto-upgraded the Executable PHP Widget a couple of days ago, it appears that my widgets were removed from the sidebar, and their contents lost. So, before upgrading this plugin, it might be an idea to keep a copy of any widget(s) code you have placed.
The next time a new version of this plugin is released, I will check whether simply overwriting the PHP file is sufficient to keep the widget’s contents and placement in the sidebar(s). Part of the issue could have been that the auto-upgrade process first de-activates the plugin, downloads the new version, then re-enables it. This is, of course, the recommended course of action even when manually updating, it is just I’ve not bothered in the past, and so didn’t think to check if the code was still present.

[edit]
I’m also going to need to monitor the Blog Voyeur plugin closely sometime, as I’m not yet convinced it has retained full functionality since this blog was upgrade to 2.5

-
16
  • hem INDIA
    6:53 pm on May 4th, 2008 1

    I have problem with executable PHP widget plugin after i upgraded to latest version of WordPress. the PHP widget doesn’t work.

  • ChrisM KAZAKHSTAN
    4:10 pm on May 5th, 2008 2

    What were the actual errors you encountered? Which version did you upgrade FROM and TO? How did you upgrade - automatically or manually.
    You can see the plugin working on this site, especially where adverts only appear within certain categories…

  • Ramp
    4:32 pm on May 5th, 2008 3

    You need to upgrade your PHP exec to 1.1 version.
    To run it on new WP. but… then you might get this..

  • ChrisM KAZAKHSTAN
    11:48 am on May 6th, 2008 4

    Free Game Shut???
    OK, so I am slow this morning, took me a while to figure out that was actually Free Games Hut ;)

    ‘but… then you might get this…’
    Might get what?

    PS In case the advice was for me, I have since upgraded to v1.1, that was when the problem of losing my old widgets occurred.

  • Alex
    2:47 am on August 11th, 2008 5

    Hello
    i have a problem with Executable PHP widget 1.1 and WPMU 2.6
    When i enter the and save it, after a refresh it is lost.
    No problem with text, tho

    what could be wrong?

  • ChrisM UNITED KINGDOM
    9:46 pm on August 19th, 2008 6

    This could be connected to a similar problem back with straight WP 2.3? 2.5? Anyway, quickest way to test would be to switch browsers IE<>FF . Can’t remember if it was Internet Explorer or Firefox, but which ever you’re using right now, try temporarily switching over, and see if the exact same problem replicates/mutates or dies.
    Failing that, have you searched for the author support forum/page?

    So, are you going to let us see this site :)

    PS Apologies for the delay in this reply, private life is a little hectic right now.

  • Alex SLOVAKIA
    2:20 pm on August 20th, 2008 7

    Thank for tip, but it doesn’t work (won’t save php code), not IE nor FF :(
    something more to try?

  • ChrisM UNITED KINGDOM
    6:20 am on August 21st, 2008 8

    Nope, I’m out. Send me a new comment around 30th August, when I’m back home, and I’ll try and research it properly.

  • ChrisM
    7:16 pm on September 18th, 2008 9

    I knew there was an old post I had to look at somewhere :)

    OK, so multiple browsers points to the issue not being local, obviously.

    Next thing to try is disabling __ALL__ plugins except the Executable PHP one. If the problem is gone, try enabling them back again one or two at a time. When the problem returns, you’ll know which plugin is the culprit.

    If the problem remains with ALL plugins disabled, does this issue occur with ALL users on this WPMU blog? Also, is your user set as an admin, or a different role?

    Finally, I’d head on over to the plugin author’s site (see here), specifically this post, as it was the last time I could find that he wrote a post regarding Executable PHP widget version 1.1 . Leave a comment explaining your problem, or try adding him as a friend on facebook or twitter (see widget in his left hand column),

  • Alex
    2:37 am on September 26th, 2008 10

    Nothing :(
    will try to contact Otto

  • ChrisM
    3:24 am on September 26th, 2008 11

    Good luck, sorry I couldn’t help you :(

  • Alex SLOVAKIA
    1:54 pm on September 26th, 2008 12

    Otto: something must be wrong with your site. :(

  • Alex SLOVAKIA
    2:00 pm on September 26th, 2008 13

    Got the answer from the forums: Because MU strips out all scripts and code unless you allow for it.

    How it could be enabled? is it safe?

  • ChrisM
    6:36 pm on September 26th, 2008 14

    If any WPMU users who had access to this plugin were trusted, and the WordPress installation itself was secure (so no 3rd parties could force access), I //guess// it should be safe.
    However, any new security vulnerabilities found for Wordpress & WPMU would need to be monitored and fixed quickly I’d imagine, as this plugin would probably draw in scum like flies if they thought they could gain access.

  • Alex SLOVAKIA
    7:50 pm on September 26th, 2008 15

    So i think i’ll made some custom hello world widgets with desired php functions inside. But don’t know how to widgetize functions that need to be posted in posts or pages, for example [list_all_new,50,30,1] from somekind of activated plugin.

  • ChrisM
    8:30 pm on September 26th, 2008 16

    not sure if this will exactly match your needs, but the following approaches for only having code work on certain pages/urls could assist you…

    http://chrismerriman.com/details-of-code-changes/

    OR

    follow the instructions (and download the plugin linked to) at http://www.moneymakingstudent.co.uk/2008/05/30/how-to-display-matchedcouk-adverts-on-wordpress-blogs/

    [edit]
    you’ll have to excuse me if the two ideas above can’t be adapted to your needs, currently on some meds that are fuzzying my mind a little.

 

RSS feed for comments on this post | TrackBack URI