• Resolved omnia25

    (@omnia25)


    I’m trying to install the ThemeForest theme on WordPress and after I installed it and imported the content I couldn’t find the demos in the theme options > import demo >to select one of them as the documentation displayed and this message appeared
    It seems to be a problem with your server permissions that denies access to the import.xml file, contact your hosting provider to solve it

    I asked this question in another forum but there’s no solution yet, so maybe because the WordPress project I’m working on it is on localhost so I’m asking here also I don’t know how to contact the hosting provider

Viewing 9 replies - 1 through 9 (of 9 total)
  • It seems that you have an issue with the permissions. Make sure that the process owner for the web-server and php has read and write permission for the files and read write and execute for the directories.

    Hey @omnia25,
    Check out the below article regarding file permissions in WordPress:
    https://www.wpbeginner.com/beginners-guide/how-to-fix-file-and-folder-permissions-error-in-wordpress/

    I got the same problem with the server GarageBand PC

    Thread Starter omnia25

    (@omnia25)

    Thanks, y’all for your reply
    I got a reply in the other forum and worked for me
    here is the forum link

    https://www.ads-software.com/support/topic/it-seems-to-be-a-problem-with-your-server-permissions/#post-13702180

    and this is the answer>>

    I had the same problem. The issue for me was that when it was looking for the local file it was running esc_url on the file path. If you are using the nd-shortcode plugin the file is

    wp-content/plugins/nd-shortcodes/inc/settings/import-demo/index.php
    Line: 83 & Line 191
    $nd_options_xml_url = esc_url( get_template_directory().’/import/demos-options.xml’);

    CHANGE TO

    $nd_options_xml_url = get_template_directory().’/import/demos-options.xml’;

    still i have some problem It seems to be a problem with your server permissions that denies access to the import.xml file, contact your hosting provider to solve it.

    after i change row 83 i got this error
    Fatal error: Uncaught Error: Undefined constant “’” in C:\xampp\htdocs\Jar\wp-content\plugins\nd-shortcodes\inc\settings\import-demo\index.php:83 Stack trace: #0 C:\xampp\htdocs\Jar\wp-includes\class-wp-hook.php(292): nd_options_settings_menu_import_demo(”) #1 C:\xampp\htdocs\Jar\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters(”, Array) #2 C:\xampp\htdocs\Jar\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #3 C:\xampp\htdocs\Jar\wp-admin\admin.php(259): do_action(‘theme-options_p…’) #4 {main} thrown in C:\xampp\htdocs\Jar\wp-content\plugins\nd-shortcodes\inc\settings\import-demo\index.php on line 83
    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Learn more about troubleshooting WordPress. how i can fix it thanks you ..

    @omnia25 thank so much , your solution really worked for me

    If the above solution doesn’t work try this:

    Like above, find the line

    $nd_options_xml_url = esc_url( get_template_directory().’/import/demos-options.xml’);

    And change to

    $nd_options_xml_url = ( get_template_directory().’/import/demos-options.xml’);

    Very similar to above but with the brackets included seemed to work for me

    The omnia25 above work perfectly for me. First time I tried it never work and the problem is because I copy and paste codes just like omnia25 inside my text editor. The codes are written by omnia25 but unknowingly when I paste the codes inside text editor the quote sign change to quote sign like writing in word document which is forbidding in coding.

    When I paste the codes inside my text editor the codes appear like this:

    $nd_options_xml_url = get_template_directory().’/import/demos-options.xml’;

    But the codes suppose to appear like this:

    $nd_options_xml_url = get_template_directory().’/import/demos-options.xml’;

    Do you notice the difference from this area:

    ’/import/demos-options.xml’

    and this area:

    ‘/import/demos-options.xml’

    Please try to use the codes below from omnia25 and ensure that when you paste it into text editor the quote sign did not change to quote sign like in word document.

    $nd_options_xml_url = get_template_directory().’/import/demos-options.xml’;

    This solved my problem perfectly after 48hrs of trying.

    The omnia25 above work perfectly for me. First time I tried it never work and the problem is because I copy and paste codes just like omnia25 inside my text editor. The codes are written by omnia25 but unknowingly when I paste the codes inside text editor the quote sign change to quote sign like writing in word document which is forbidding in coding.

    When I paste the codes inside my text editor the codes appear like this:

    $nd_options_xml_url = get_template_directory().’/import/demos-options.xml’;

    But the codes suppose to appear like this:

    $nd_options_xml_url = get_template_directory().’/import/demos-options.xml’;

    Do you notice the difference from this area:

    ’/import/demos-options.xml’ // I notice this is showing properly here. My intention is to use quote like in word document.

    and this area:

    ‘/import/demos-options.xml’

    Please try to use the codes below from omnia25 and ensure that when you paste it into text editor the quote sign did not change to quote sign like in word document.

    $nd_options_xml_url = get_template_directory().’/import/demos-options.xml’;

    This solved my problem perfectly after 48hrs of trying.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘It seems to be a problem with your server permissions’ is closed to new replies.