The changes don't really merit a full version number upgrade, but I got tired of adding 0.0.1 to each release number.
This update fixes issues that people are having with the WordPress 1.5.1 beta. Primarily this has to do with the pluggable functions not being available to plugins until after all plugins are loaded. So if a plugin tries to access get_currentuserinfo() in the global scope (that's one of the pluggable functions) then the plugin will short out and produce a nasty error on your home page.
Anyway, that's fixed in this version of EzStatic. If you were including a script from EzStatic that accessed these functions it should work. In version 1.9.2 it doesn't, hence the update.
The download is on the wp-hacks page.
Pluggable functions in WordPress 1.5.1 let you replace certain core functions with functions of your own using a plugin. A function can only be reassigned this way once, so you can't install two plugins that plug the same function for different reasons. An example of what you can do with a pluggable function is replace the default email handler. I use this feature to have WordPress send mail directly through my MTA rather than use the native mail() funciton. This method is much faster on my server, and reduces what would be significant delays when posting comments.
The fix for EzStatic and pluggable functions is kind of tricky, if you're interested. I basically have EzStatic ensure that it is the last plugin loaded, and then I include the pluggable functions myself. I assume that other plugins could also use this method if they require the pluggable functions to be present and don't also try to insert a pluggable function themselves. Maybe there would be a little thrashing on the active_plugins options entry. Hmm.
Incidentally, quite a few people have contacted me about problems with plugins and 1.5.1. Are there really a lot of you using pre-release code? Are you all on the wp-testers mailing list? Crikey.
Owen--
I'm hoping you can help me out a bit...I've tried on the WP Support site, but I've gotten zero responses.
Bottom line is this--after activating EzStatic, I'm not getting the "Execute PHP..." link underneath the Post textarea on the "Write Post" form, or underneath the Page Content textarea on the "Write Page" form. I've tried this with both WP1.5-Strayhorn using EzStatic 1.9.2 and 2.0, and on WP1.5.1a (latest nightly) using EzStatic 2.0.
If I add a "_static" Custom Field with a value of 1 into pages/posts while EzStatic is activated, any in-line PHP code will execute, demonstrating that the plugin is running. But I can't get these custom values to stay in the system reliably...something keeps deleting them.
This is happening primarily on my Dreamhost setup, on installs of Wordpress that I did myself rather than through their auto-install, and also with WP1.5 installs done through their auto-install. This was also happening on a development setup I have on my own laptop (WinXP with Apache, PHP, and MySQL installed), but then the problem seemed to resolve itself without me (conciously) doing anything about it.
For what it's worth, I'm having perfect success with other plug-ins, such as IImage Browser and the Spelling Checker. These add buttons to the forms for posting/writing pages. But another plugin that tried to add some additional controls (in this case, drop-down menus from the Text Control plugin) doesn't work either.
Do you have any ideas where to look for the problems?? Any help would be much appreciated.
Thanks...Neil
Dreamhost - the bane of my existance.
Here's my supposition: EzStatic tests the REQUEST_URI server variable to see if it is on a page (the post-writing page in the admin console) that needs to display the checkbox.
Assuming you see no checkbox anywhere on the post page, the value that your server is setting for REQUEST_URI does not contain the text that EzStatic is testing for.
One thing that Dreamhost users often talk about is whether they're running PHP as CGI or an Apache module. I don't know anything about it since I'm not a Dreamhost user, except that Dreamhost users are the only peopole I've ever heard complain about this issue.
In any case, try checking out Dreamhost's own information on this topic. From there, you'll find a suggestion to add a line to your wp-config.php file (as line #2) that looks like this:
$_SERVER['SCRIPT_NAME'] = $_SERVER['SCRIPT_URL'];That will probably fix your issue.
A lot of us are using 1.5.1 since Spam Karma 2 requires the use of a "stable 1.5.1" release...
I must be blind, but i can't find where to DL 'pluggable functions' on your site. It sounds right what i'm after. If you would be so kind to tell me dumb a** where i can get this plugin ? thanks in advance ...
I don't know how "pluggable functions" can sound like something you can download. It's a feature of WordPress 1.5.1. You can download WordPress 1.5.1 at http://wordpress.org/download
Hello Owen,
I have looked all over for documentation for ezstatic, in the hope that I wouldn't bother you, but your wiki is inaccessible to me. I try to link to http://www.asymptomatic.net/_wiki/EzStatic and it just rewrites ths URL as http://asymptomatic.net/wp// (Yes, with two trailing slashes.)
Just to make sure it wasn't a client side issue, I tried it in Safari, Firefox, and Camino. No dice. I'm using Mac OS 10.3.9.
Yeah, there's a glitch in the rewrite rules for the wiki at the moment. I didn't have enough time to fix it the last time I messed with it, and I'm not going to have time for a little while. Sorry about that. I'll look into getting that section of the site back online as soon as I can.
Hi, where can I find a tutorial on how to use this plugin? I have a site with wordpress and this is what I want to do:
I want to add a page, then it will be listed in the pages links sections.
Then when I do click on any of this links I want it to load an external page from another site (mine also) inside my current wordpress site.
What I do is to put the url of the external site in the page I create with the Page Management but it loads nothing, can someone help me please?
The plugin you want is not EzStatic, but Redirectify. It's available on RedAlt along with EzStatic.