[SOLVED] Exec-Php not working
Hi Juggledad
My site ibooktravel.com.au is new with all the latest versions of wp 2.9.2 & Atahualpa 3.4.6, as well as EXEC-php plugin but a simple `< ?php echo "Hello World"; ?>` displays as text and is not executed. I found a fix at : http://wordpress.org/support/topic/281992?replies=7 but although this is ok for the "hello world" code it makes a complete mess of `< ?php include ('http://ibooktravel.com.au/wp-content/plugins/front-slider/front-slider.php');?> ` leaving a page of error messages. I looked for other solutions but couldn't find anything... I would greatly appreciate any valued suggestions you might have. |
there is no space between the '<' and '?php' so
HTML Code:
< ?php echo "Hello World"; ?> HTML Code:
<?php echo "Hello World"; ?> |
OMG - sorry for being soo stupid! Thank you a million times over Juggledad!
|
Oh dear Juggledad,
Seems it's not as simple as my being stupid. Something is putting an extra space in the code every time I save the post. Seems to be one of Wordpress' native functions called force_balance_tags ... Somehow exec-php is being executed in the wrong order. I have deleted & re-installed exec-php but still the problem. If you can offer any suggestion again, I'd be eternally grateful. Regards, Joan |
are you using the HTML editor? I just installed exec php and put
HTML Code:
<?php echo 'hello juggledad!'; ?> IF however I use the visual editor, it gets transformed into HTML Code:
<?php echo 'hello juggledad!'; ?> |
Yes I am typing into the HTML editor, not the Visual editor. I am getting an extra space inserted into the code upon clicking the Publish- Update button. Something very weird is happening.
|
try disabling all your plugins but the exec-php to see if it is one of them.
|
Thanks Juggledad,
I had already disabled all plugins when you suggest it. Also changed themes to the default, then I re-install the entire wordpress package, but still no luck. Finally I found it was a wordpress "Writing Settings" setting: [] WordPress should correct invalidly nested XHTML automatically which I have changed to OFF, and the code no longer gets and extra space inserted in between `<?php` and the problem is fixed (the setting must be stored in the database, which was about the only thing I didn't reset). Can you make this post "Solved" ? :)Thanks for your time, again. |
All times are GMT -6. The time now is 06:02 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.