• Resolved lartisan

    (@lartisan)


    “Warning: is_file(): open_basedir restriction in effect. File(/src/Modules/Licenser.php) is not within the allowed path(s): (/var/www/legtux.org/users/cielartisan/www:/var/www/legtux.org/users/cielartisan/tmp) in /var/www/legtux.org/users/cielartisan/www/wp-content/themes/hestia/vendor/codeinwp/themeisle-sdk/load.php on line 27
    Le lien suivi est expiré.

    Veuillez réessayer.”

    how can I fate this error
    Thanks

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Mat

    (@mateithemeisle)

    Hello @lartisan,

    Thank you for using Hestia and for reaching out! I have accessed your website and saw no such error in the console log. Have you managed to fix it?

    If not then, you can try and follow the instructions detailed here as this is related to the hosting company, not the theme itself.

    What is happening is that this restriction is basically a security measure that prevents a user on a webserver to access files and folders that belong to other users.

    Please let us know if this worked out for you!

    Thank you and have an amazing day!

    Thread Starter lartisan

    (@lartisan)

    Hello,

    I have read the website you sent.
    I have a question about that :

    The tmp direction is showed in the alert:
    /var/www/legtux.org/users/cielartisan/www:/var/www/legtux.org/users/cielartisan/tmp

    The webste say that I need to include in wp-config.php this text :

    define(‘WP_TEMP_DIR’,’../../relative/path/to/tmp’);

    but the ‘../../relative/path/to/tmp’ need to be written in the good way of the direction of the tmp folder.
    the website say :

    You need to add a single ../ for each directory higher, relative to the directory where your WordPress site is installed until you reach the tmp directory.

    So, what I need to writhe in the folder wp-config.php?!
    Can I write the full direction in all characters ?
    Do I need to write with some ../? and how much ?
    thank you for your help

    Mat

    (@mateithemeisle)

    Hello @lartisan ,

    I am glad you took the time to read through the documentation provided above! You should be able to write the full direction too but I am not quite sure about it as I haven’t tested it myself.

    In situations like these we highly advise users to contact their web host service provider and ask them for help as it prevents a possible damaging of the website!

    Thank you and have an amazing day!

    Thread Starter lartisan

    (@lartisan)

    So I tried and it doesn’t work. It bug totally the website.

    Parse error: syntax error, unexpected ‘.’ in /var/www/legtux.org/users/cielartisan/www/wp-config.php on line 60

    So i put off the ligne

    define(‘WP_TEMP_DIR’,’/var/www/legtux.org/users/cielartisan/www:/var/www/legtux.org/users/cielartisan/tmp’);

    and it work angain.

    But doesn’t change the original problem…

    Thread Starter lartisan

    (@lartisan)

    I tried again with the correct enter

    define(‘WP_TEMP_DIR’,’/var/www/legtux.org/users/cielartisan/tmp’);

    And it is write but it doesn’t change the problem.
    I tried to change the theme by a native wordpress theme and the problem disappear.
    So the problem is from the Hestia theme.

    Warning: is_file(): open_basedir restriction in effect. File(/src/Modules/Licenser.php) is not within the allowed path(s): (/var/www/legtux.org/users/cielartisan/www:/var/www/legtux.org/users/cielartisan/tmp) in /var/www/legtux.org/users/cielartisan/www/wp-content/themes/hestia/vendor/codeinwp/themeisle-sdk/load.php on line 27

    as he want to find the license and it doesn’t find it…
    I hope the correction will appear with the next upgrading of Hestia them…

    Hello @lartisan, @mateithemeisle,

    while “Warning: is_file(): open_basedir restriction in effect.” may be caused by open_basedir settings in php.ini, that is not the case here.

    $themeisle_sdk_max_version variable is not set in load.php, and because of that a warning is thrown as the script is trying to access “/src/Modules/Licenser.php” in line 27, instead of “__DIR__/src/Modules/Licenser.php”

    To fix the issue change lines 27-30:

    “if ( ! file_exists( $themeisle_sdk_path . $themeisle_sdk_relative_licenser_path ) && file_exists( $themeisle_sdk_max_path . $themeisle_sdk_relative_licenser_path ) ) {
    $themeisle_sdk_abs_licenser_path = $themeisle_sdk_max_path . $themeisle_sdk_relative_licenser_path;
    add_filter( ‘themeisle_sdk_required_files’, ‘themeisle_sdk_load_licenser_if_present’ );
    }”

    to:

    if (!empty($themeisle_sdk_max_path)) {
    if ( ! file_exists( $themeisle_sdk_path . $themeisle_sdk_relative_licenser_path ) && file_exists( $themeisle_sdk_max_path . $themeisle_sdk_relative_licenser_path ) ) {
    $themeisle_sdk_abs_licenser_path = $themeisle_sdk_max_path . $themeisle_sdk_relative_licenser_path;
    add_filter( ‘themeisle_sdk_required_files’, ‘themeisle_sdk_load_licenser_if_present’ );
    }
    }

    Same problem and the work around does not work https://meer4.eu

    Hi @peakaustria,

    Thanks for choosing Hestia!

    Unfortunately this type of issue is usually not related to the theme. If following the instructions provided here doesn’t help, we would suggest addressing this issue to your hosting provider.

    I hope this helps!

    Have a nice day!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hestia error php’ is closed to new replies.