• After updating the plugin, the website fell apart.

    Please help.
    one of the affected pages is:

    https://www.upliftmn.com/40-2/

    ‘Warning: include(PHP_LIB_DIRpage_sections/js/register.js.php): failed to open stream: No such file or directory in /home/upliftadmin/public_html/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 3

    Warning: include(PHP_LIB_DIRpage_sections/js/register.js.php): failed to open stream: No such file or directory in /home/upliftadmin/public_html/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 3

    Warning: include(): Failed opening ‘PHP_LIB_DIRpage_sections/js/register.js.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/upliftadmin/public_html/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 3′

    https://www.ads-software.com/plugins/insert-php/

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

    (@willbontrager)

    Joel, on line three of the PHP code within the [insert_php]…[/insert_php] tags, you’re including file “PHP_LIB_DIRpage_sections/js/register.js.php”

    The directory “PHP_LIB_DIRpage_sections” doesn’t exist within the current working directory, which probably is the directory where WordPress is installed.

    Either that, or “PHP_LIB_DIRpage_sections” doesn’t contain a “js” subdirectory.

    Or, perhaps, the “js” subdirectory doesn’t contain the “register.js.php” file.

    If WordPress is installed in the document root directory, you could try (all one line):

    include($_SERVER["DOCUMENT_ROOT"]."PHP_LIB_DIRpage_sections/js/register.js.php");

    Will

    Thread Starter realiccs

    (@joeljvirtue)

    that seems to have fixed one of the errors, but not both:

    ‘Warning: include(/home/upliftadmin/public_htmlPHP_LIB_DIRpage_sections/js/register.js.php): failed to open stream: No such file or directory in /home/upliftadmin/public_html/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 3

    Warning: include(): Failed opening ‘/home/upliftadmin/public_htmlPHP_LIB_DIRpage_sections/js/register.js.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/upliftadmin/public_html/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 3′

    Thread Starter realiccs

    (@joeljvirtue)

    see also

    https://www.upliftmn.com/login/

    ‘Warning: include_once(PHP_LIB_DIRpage_sections/js/login.js.php): failed to open stream: No such file or directory in /home/upliftadmin/public_html/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 3

    Warning: include_once(): Failed opening ‘PHP_LIB_DIRpage_sections/js/login.js.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/upliftadmin/public_html/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 3′

    Thread Starter realiccs

    (@joeljvirtue)

    also:

    https://www.upliftmn.com/member-resources/

    Warning: require_once(PHP_LIB_DIRCBLOGIN.class.php): failed to open stream: No such file or directory in /home/upliftadmin/public_html/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 2

    Fatal error: require_once(): Failed opening required ‘PHP_LIB_DIRCBLOGIN.class.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/upliftadmin/public_html/wp-content/plugins/insert-php/insert_php.php(48) : eval()’d code on line 2

    Plugin Author WillBontrager

    (@willbontrager)

    The warning and errors are what they say they are. On line 2 of the PHP code you’ve put between the Insert PHP tags, you’re requiring something that’s either not on your server or its location is incorrectly specified.

    See this page about handling error messages.

    https://www.willmaster.com/software/WPplugins/insert-php-wordpress-plugin-instructions.php#errormessages

    Will

    Thread Starter realiccs

    (@joeljvirtue)

    a bit confused why doing an update to version 1.3 would suddenly cause this.

    Plugin Author WillBontrager

    (@willbontrager)

    I have no doubt your website fell apart, or you wouldn’t have said it did.

    But it wasn’t the upgrade of Insert PHP to version 1.3, unless the upgrade was done incorrectly or the source code was changed. If it were 1.3, there would have been many, many similar reports from other people. Take a look at the stats. About half of 170,000 downloads are for version 1.3. Even if only 50% have the plugin activated and only 10% of those used include(), require(), include_once() or require_once() and reported that their code would no longer find files that weren’t there, it would mean 4,000 reports.

    Something else changed. Maybe the server configuration, the WordPress installation, file locations, new plugins activated or others deactivated, the PHP config file, or the PHP code used with Insert PHP — something.

    Will

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘after updating to 1.3 website fell apart’ is closed to new replies.