Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

[SOLVED] Exec-Php not working


  #1  
Old Mar 10, 2010, 09:18 AM
joan
 
50 posts · Sep 2009
Brisbane, Qld, Aust
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.
  #2  
Old Mar 10, 2010, 11:29 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
there is no space between the '<' and '?php' so
HTML Code:
< ?php echo "Hello World"; ?>
should be
HTML Code:
<?php echo "Hello World"; ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 10, 2010, 07:19 PM
joan
 
50 posts · Sep 2009
Brisbane, Qld, Aust
OMG - sorry for being soo stupid! Thank you a million times over Juggledad!
  #4  
Old Mar 11, 2010, 01:13 AM
joan
 
50 posts · Sep 2009
Brisbane, Qld, Aust
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
  #5  
Old Mar 11, 2010, 04:43 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
are you using the HTML editor? I just installed exec php and put
HTML Code:
<?php echo 'hello juggledad!'; ?>
into a post and it works fine, no problem, I get 'hello juggledad'

IF however I use the visual editor, it gets transformed into
HTML Code:
&lt;?php echo 'hello juggledad!'; ?&gt;
which will then display as '<?php echo ‘hello juggledad!’; ?>' since it is no longer PHP even if it LOOKS like PHP code
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #6  
Old Mar 12, 2010, 02:26 AM
joan
 
50 posts · Sep 2009
Brisbane, Qld, Aust
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.
  #7  
Old Mar 12, 2010, 04:23 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
try disabling all your plugins but the exec-php to see if it is one of them.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #8  
Old Mar 17, 2010, 12:07 AM
joan
 
50 posts · Sep 2009
Brisbane, Qld, Aust
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.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pls help me change this code<title><?php bloginfo('name'); ?><?php wp_title(); ?></ti tobywinn Header configuration & styling 1 Nov 18, 2011 12:51 PM
php in footer.php - links to just show up on homepage chris Atahualpa 3 Wordpress theme 6 May 9, 2010 01:50 PM
[SOLVED] Error in PHP Coding Using PHP Text Widget rnimchuk Sidebars & Widgets 2 Oct 28, 2009 01:26 PM
[SOLVED] &lt;?php include ...?&gt; is not working astera Post-Kicker, -Byline & -Footer 8 Sep 21, 2009 01:52 AM
[SOLVED] messed up header.php and footer.php monochrome Header configuration & styling 0 Jun 20, 2009 03:16 PM


All times are GMT -6. The time now is 07:22 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.