WP 4.4.1 Insert PHP 1.3 = won't work
-
Hi!
As in the subject, after updating wordpress to 4.4.1 shortcode is visible instead of generating code. π
-
Sorry, I can’t help you without more information.
Insert PHP works fine on my own test WP 4.4.1 and on other 4.4.1 sites.
Something changed in addition to WP upgrade. Perhaps the code being used in Insert PHP changed. Perhaps directory paths changed. Perhaps an added or upgraded plugin is now interfering with Insert PHP.
Investigate other changes. If still no joy, provide the source code you’re using, copied from your post or page, and I’ll have a look.
Will
I am using the below code but it is not working
[insert_php]
listPostsOfCat(“Oracle Finance Library”);
[/insert_php]kindly advise
shaffeek, functions have no outside scope within Insert PHP. See
http://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#functionscope
for an explanation. The page also has other items of interest.Will
thanks a lot
I changed the code and started working nowRunning WP 4.4.1, have a basic text block on my page (using Visual Composer Framework)
Your sample code works:
[insert_php]
echo ‘Server date and time is: ‘;
echo date(‘l, F j, Y \a\t G:i:s’);
[/insert_php]But anything else like a simple:
[insert_php]
if (1 < 2) {echo 1;} else {echo 2;}
[/insert_php]breaks and gives the following error:
Parse error: syntax error, unexpected β}β, expecting β,β or β;β in /home/newmd2/public_html/hudsonwellness.nyc/wp-content/plugins/insert-php/insert_php.php(48) : eval()βd code on line 2
Thoughts?
Visual Composer and Insert PHP don’t play nice together.
I think, from symptoms people have described, that VC insists on changing < and other characters into HTML entities.
Will
I do not have Visual Composer, so… it’s up to wp 4.4 I assume.
So what?Sorry, alemarengo84, my response was to nysteve who hijacked this thread.
My original response to you still holds. Never mind the thread hijackers; they’re just rude.
Will
still got the problem. can I share credentials with you in order to debug?
Unfortunately, alemarengo84, I’m not prepared to do WordPress debugging.
The bug is unlikely to be in Insert PHP itself. Otherwise, I expect thousands and thousands of people would have experienced the issue you are experiencing.
Because this seems to be unresolvable, I suggest you completely remove Insert PHP from your WordPress.
Will
alemarengo84, because this thread has been hijacked so badly, it’s a rather confusing sequence.
Let me reiterate my offer made in my first reply to you, which you may have missed: Provide the source code you’re using, copied from your post or page, and I’ll have a look.
Something changed in addition to the WP upgrade. Otherwise it would work. Perhaps the code being used in Insert PHP changed. Perhaps directory paths changed. Perhaps an added or upgraded plugin is now interfering with Insert PHP.
Will
The topic ‘WP 4.4.1 Insert PHP 1.3 = won't work’ is closed to new replies.