Support » Plugin: Include Me » a php file with a tag incuding crashes…

  • Resolved audiopower

    (@audiopower)


    Hi Stefano,

    I have been using your “Include Me” plugin for over a year and is has worked well, thank you. BUT recently either WordPress or PHP 7 auto updated and something broke. I spent several hours tracking the problem down and it is simply that including a PHP file with a “body” tag hangs the page. Here is an example:

    Page text:

    Will this
    [includeme file="crash.php"]
    crash?

    crash.php:

    <!DOCTYPE html>
    <html lang="en">
    <body>
    <?php 
        Print "crash...";
    ?>
    </body>

    Removing the body tag works fine:

    ok.php:

    <!DOCTYPE html>
    <html lang="en">
    <?php 
        Print "ok...";
    ?>

    I am not a PHP guru so maybe I am doing something wrong, but this was working for well over a year and just recently stopped. It is not my VPS, because I can open my php pages with a browser. Also my VPS is running an updated Debian Stretch lamp stack.

    Can you please give me some advice on this?

    Thanks,
    Phil

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    Hi I really don’t know the reason, anyway you cannot include in an HTML page another full html with body and so on. Maybe the problem is that one.

    Stefano.

    Thanks Stefano,

        I figured it was caused by something WordPress “fixed” with their update, so I got around the problem using your “value” attr to signal the PHP that is was being called from WordPress.

    Phil

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.