Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author WillBontrager

    (@willbontrager)

    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

    Plugin Author WillBontrager

    (@willbontrager)

    shaffeek, functions have no outside scope within Insert PHP. See
    https://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 now

    Running 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?

    Plugin Author WillBontrager

    (@willbontrager)

    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

    Thread Starter alemarengo84

    (@alemarengo84)

    I do not have Visual Composer, so… it’s up to wp 4.4 I assume.
    So what?

    Plugin Author WillBontrager

    (@willbontrager)

    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

    Thread Starter alemarengo84

    (@alemarengo84)

    still got the problem. can I share credentials with you in order to debug?

    Plugin Author WillBontrager

    (@willbontrager)

    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

    Plugin Author WillBontrager

    (@willbontrager)

    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

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘WP 4.4.1 Insert PHP 1.3 = won't work’ is closed to new replies.