WordPress.org

Ready to get started?Download WordPress

Forums

Permanent link issue (3 posts)

  1. Gisha James
    Member
    Posted 4 years ago #

    When I try to fix permanent links, It is fixed but I am getting warning message at the top like the following

    is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/mysite:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/mysite/public_html/blog/wp-admin/options-permalink.php on line 113

    Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/mysite:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/mysite/public_html/blog/wp-admin/includes/misc.php on line 130

    I edited tboth files and have seen the line 113 as follows

    if ( ( ! file_exists($home_path . '.htaccess') && is_writable($home_path) ) || is_writable($home_path . '.htaccess') )
    $writable = true;

    and line 130 as

    if ((!file_exists($htaccess_file) && is_writable($home_path) && $wp_rewrite->using_mod_rewrite_permalinks()) || is_writable($htaccess_file)) {

    Any help will be a great relief.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    It's a server configuration issue. Try speaking to your hosting provider.

  3. Gisha James
    Member
    Posted 4 years ago #

    Thank you Esmi. I will speak to them and try to fix.

    If anyone thinks that we can do something on the code, please post it here.

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic