• Resolved sohaib-aziz2

    (@sohaib-aziz2)


    Hi Guys,

    First of all, great and handy plugin, thank you!
    We’re getting continuous PHP warnings:

    PHP Warning: is_dir(): open_basedir restriction in effect. File(/plugin-templates/login-with-ajax/) is not within the allowed path(s): (/www/example_123/public:/www/example_123/mysqleditor:/www/example_123/web:/www/example_123/deploy:/www/example_123/deployment:/www/example_123/deployments:/usr/share:/tmp) in /www/example_123/public/wp-content/plugins/login-with-ajax/login-with-ajax.php on line 723

    We checked in with the Hosting support team, here’s what they said:

    Basically, the errors are caused by the plugin “Login With Ajax” that is calling the following absolute path:

    /plugin-templates/login-with-ajax/

    That absolute path obviously doesn’t exist

    The calls are triggered from this file:

    /www/example_123/public/wp-content/plugins/login-with-ajax/login-with-ajax.php

    So I recommend that you check the plugin’s settings, or check with the plugin’s developers to see where the absolute path can be adjusted.

    The correct absolute path seems to be the following one:

    /www/example_123/public/wp-content/plugin-templates/login-with-ajax/


    Please let me know if this is an issue on our end/server or from plugin side.
    Thank You

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I got the same problem and found a working solution in another Support Thread of this plugin. (This is only a warning not a critical error, but you may want to fix it.)

    As @patrelentlesstechnologycom and @lwangaman wrote, you need to manually edit login-with-ajax.php file (which is located in public_html/wp-content/plugins/login-with-ajax).

    Find this line of the code:

    $wp_content_folder = WP_CONTENT_DIR . "/plugin-templates/login-with-ajax/";

    Replace it with this:

    $wp_content_folder = path_join( WP_CONTENT_DIR , "plugin-templates/login-with-ajax/");

    As you see the only difference is the initial slash in the second parameter.

    Hopefully plugin author will fix this in the future updates.

    Thread Starter sohaib-aziz2

    (@sohaib-aziz2)

    Thank you so much Bro, that did the trick!

    zeedesign_r

    (@zeedesign_r)

    Any chance that this fix could be added to the next update?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Continuous PHP Warnings – is_dir(): open_basedir restriction in effect.’ is closed to new replies.