This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Open_basedir restriction

  • Creator
    Topic
  • #14721
    mcepkus
    Participant

    Hello there,

    Just purchased theme, everything is fine, until i install plugins. I get open_basedir restriction errors after installation. Here is error:

    Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(C:\Inetpub\vhosts\jaette-byg.dk\httpdocs/wp-content/plugins/C:\Inetpub\vhosts\jaette-byg.dk\httpdocs\wp-content\plugins\theme-blvd-layout-builder/lang/themeblvd_builder-en_US.mo) is not within the allowed path(s): (C:\Inetpub\vhosts\jaette-byg.dk\httpdocs\;\Windows\Temp\) in C:\Inetpub\vhosts\jaette-byg.dk\httpdocs\wp-includes\l10n.php on line 457

    Warning: Cannot modify header information – headers already sent by (output started at C:\Inetpub\vhosts\jaette-byg.dk\httpdocs\wp-includes\l10n.php:457) in C:\Inetpub\vhosts\jaette-byg.dk\httpdocs\wp-includes\option.php on line 563

    Warning: Cannot modify header information – headers already sent by (output started at C:\Inetpub\vhosts\jaette-byg.dk\httpdocs\wp-includes\l10n.php:457) in C:\Inetpub\vhosts\jaette-byg.dk\httpdocs\wp-includes\option.php on line 564

Viewing 9 replies - 1 through 9 (of 9 total)
  • Author
    Replies
  • #14723
    Jason Bobich
    Keymaster

    Hello,

    What version of WordPress are you running? Are you running the latest?

    #14724
    mcepkus
    Participant

    Hello,

    Yes i am running 3.8.1

    #14729
    Jason Bobich
    Keymaster

    And you’re only getting this warning for the Layout Builder plugin? And no other ones? Are you running any plugins for localization? Or have you done anything special on your site for localization?

    #14731
    mcepkus
    Participant

    I had the errors on all of the plugins. Just pasted the errors of the 1st one. I had Danish version of WordPress before, then i switched back to US and it displayed the error. Now I deleted all files from the ftp, deleted db, installed us wp from the scratch and got the same errors.

    #14734
    Jason Bobich
    Keymaster

    So, in reading more about this, it sounds like a security setting on your server. This is a good article I just read:

    http://www.mydigitallife.info/php-scripts-open_basedir-restriction-in-effect-error/

    In these plugins, we register a “lang” directory for localization to standard specs of a WordPress plugin. However, with the PHP configuration of your server, it’s telling us that this “lang” directory of the plugin “is not within the allowed path(s)” per your server’s PHP open_basedir setting. The article I linked to above has a few solutions to the issue in turning off this setting on your server, as well.

    #14735
    mcepkus
    Participant

    Hey there,

    Thank you for the link. Will forward this to server admin, will see if he can fix the problem.

    #14740
    mcepkus
    Participant

    I tried to find a way round, and the following changes fixed the errors:

    In each of plugins, on plugin_name.php file i changed this function:

    function themeblvd_builder_textdomain() {
    load_plugin_textdomain( ‘themeblvd_builder’, false, TB_BUILDER_PLUGIN_DIR . ‘/lang’ );
    }

    To this one:

    function themeblvd_builder_textdomain() {
    load_plugin_textdomain( ‘themeblvd_builder’, false, plugin_basename(‘lang’) );
    }

    It seems to solve the issue.

    I hope those changes does not break the plugin itself?

    Moreover, i cannot find a way to fix the tweeple plugin, maybe you have an idea ?

    #14741
    Jason Bobich
    Keymaster

    No, it won’t break anything. Here’s where the same thing is in Tweeple:

    https://github.com/themeblvd/Tweeple/blob/master/inc/class-tweeple.php#L86

    #14742
    mcepkus
    Participant

    Thank you, fixed the tweeple as well. So the problem is solved.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.