Minor quirk with RunPHP plugin
I recently ran into some trouble with a nifty little plugin for Wordpress called RunPHP
What cruinh and I have discovered is that the code only actually evaluates within the post if there is something preceding it in the post, even a single white-space. For example:
<phpcode>echo "blarg";</phpcode> displays:
echo “blarg”;
However, <h2><phpcode>echo "blarg";</phpcode></h2> displays:
blarg
Additionally, test text <phpcode>echo "blarg";</phpcode> displays:
test text blarg
Interesting little bug.. hopefully the plugin author is still around to fix the problem.
MacBros
July 13th, 2005
3 years, 1 month ago
Hi. I got this kewel little plug in too. Mine works, but the bug I have is when I write a Page with PHP code in it, when I click Publish, I get a blank page.
The page is saved and published and the PHP code is working when I go to view the results. But the blank page I get when I click Publich button is just annoying.
You have a fix?
jena
July 13th, 2005
3 years, 1 month ago
I’m not sure I understand what you’re asking. Do you mean your admin page goes blank when you publish a Page with php code in it? If you have an example I can look at, maybe I can figure out what you mean.
MacBros
July 13th, 2005
3 years, 1 month ago
Yea, admin pages go blank when i click publish.
You know when you post a page, lets say without the runphp pluging, it returns you to the admin page.
But when I enable the runphp plug-in and publish a post with OR without PHP code (ie: echo ‘hello’;) I get a blank page. I doesn’t return me to the admin page, just a blank white one.
The plug-in works, it’s just that it won’t return me to the admin page to continue.
Running WordPress 1.5.1.3 BTW
Thanks
jena
July 13th, 2005
3 years, 1 month ago
Huh, that’s interesting. I haven’t actually done the upgrade yet, so that’s probably why I’m not seeing the problem. I’ll check it out when I get a chance.
MacBros
July 13th, 2005
3 years, 1 month ago
On further inspection, it conflicts with other plug ins also, like ImageTitle.
This is out the window, it works but causes other problems.
gotta be somethin’ else.
Thanks anyway.