Server Permission Error – Unable to import demo content

### Issue Summary

I’m attempting to import demo content into my locally hosted WordPress website from a Theme I got from Theme Forest but keep getting this error come up. I’m using the ND Shortcuts Plugin and Local by Flywheel as my Local Development Environment.

“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.”

#### Troubleshooting Questions

Does anyone have any suggestions? or come across the same problem using Local by Flywheel?

Does anyone know if you are you able to achieve the following using Local? and how can we achieve this?
– all write permissions
– at least 256 MB of memory in your php.ini ( you can ask it to your server provider )
– privileges to import all types of files
– increase the timing

#### Replication

I’ve already gotten in touch with the theme owners and posted in the local by flywheel community forum. I have so far been suggested to either use XAMPP or ask on here. So here I am.

I’ve also tried the following from the WordPress forum. However, it only throws more warnings in addition to the error.

Suggestion that didn’t work

#### System Details

Which version of Local is being used?
Local 5.9.3 + 5100

Operating System (OS) and OS version used?
macOS Big Sur 11.0.1

The Plugin used with the demo content is:
ND-Shortcuts V 6.3

Hi!

Which is the exact detailed error you’re getting when trying to import the file?

To see the exact detailed error, you should temporarly enable debugging,

To enable debugging, add these lines to wp-config.php (WordPress home folder), right before the /* That’s all, stop editing! Happy publishing. */ line:

define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, false);

then check the file /…/wp-content/debug.log and find the detailed error that appears immediately when you import the file. That detailed error will be more explanatory, post it here, please.

1 Like

[08-Dec-2020 13:22:18 UTC] PHP Notice: Undefined property: Vc_Updater::$title in /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-content/plugins/js_composer/include/classes/updaters/class-vc-updating-manager.php on line 99
[08-Dec-2020 13:22:18 UTC] PHP Stack trace:
[08-Dec-2020 13:22:18 UTC] PHP 1. {main}() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/themes.php:0
[08-Dec-2020 13:22:18 UTC] PHP 2. require_once() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/themes.php:10
[08-Dec-2020 13:22:18 UTC] PHP 3. do_action() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/admin.php:259
[08-Dec-2020 13:22:18 UTC] PHP 4. WP_Hook->do_action() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/plugin.php:478
[08-Dec-2020 13:22:18 UTC] PHP 5. WP_Hook->apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:311
[08-Dec-2020 13:22:18 UTC] PHP 6. TGM_Plugin_Activation->install_plugins_page() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:287
[08-Dec-2020 13:22:18 UTC] PHP 7. TGM_Plugin_Activation->do_plugin_install() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-content/themes/sweetcake/class-tgm-plugin-activation.php:743
[08-Dec-2020 13:22:18 UTC] PHP 8. Plugin_Upgrader->install() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-content/themes/sweetcake/class-tgm-plugin-activation.php:891
[08-Dec-2020 13:22:18 UTC] PHP 9. Plugin_Upgrader->run() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/includes/class-plugin-upgrader.php:137
[08-Dec-2020 13:22:18 UTC] PHP 10. do_action() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/includes/class-wp-upgrader.php:847
[08-Dec-2020 13:22:18 UTC] PHP 11. WP_Hook->do_action() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/plugin.php:478
[08-Dec-2020 13:22:18 UTC] PHP 12. WP_Hook->apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:311
[08-Dec-2020 13:22:18 UTC] PHP 13. wp_update_plugins() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:285
[08-Dec-2020 13:22:18 UTC] PHP 14. set_site_transient() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/update.php:347
[08-Dec-2020 13:22:18 UTC] PHP 15. apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/option.php:1930
[08-Dec-2020 13:22:18 UTC] PHP 16. WP_Hook->apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/plugin.php:206
[08-Dec-2020 13:22:18 UTC] PHP 17. Vc_Updating_Manager->check_update() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:289

[08-Dec-2020 13:23:11 UTC] PHP Notice: Undefined property: Vc_Updater::$title in /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-content/plugins/js_composer/include/classes/updaters/class-vc-updating-manager.php on line 99
[08-Dec-2020 13:23:11 UTC] PHP Stack trace:
[08-Dec-2020 13:23:11 UTC] PHP 1. {main}() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/themes.php:0
[08-Dec-2020 13:23:11 UTC] PHP 2. require_once() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/themes.php:10
[08-Dec-2020 13:23:11 UTC] PHP 3. do_action() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/admin.php:175
[08-Dec-2020 13:23:11 UTC] PHP 4. WP_Hook->do_action() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/plugin.php:478
[08-Dec-2020 13:23:11 UTC] PHP 5. WP_Hook->apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:311
[08-Dec-2020 13:23:11 UTC] PHP 6. _maybe_update_plugins() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:287
[08-Dec-2020 13:23:11 UTC] PHP 7. wp_update_plugins() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/update.php:813
[08-Dec-2020 13:23:11 UTC] PHP 8. set_site_transient() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/update.php:347
[08-Dec-2020 13:23:11 UTC] PHP 9. apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/option.php:1930
[08-Dec-2020 13:23:11 UTC] PHP 10. WP_Hook->apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/plugin.php:206
[08-Dec-2020 13:23:11 UTC] PHP 11. Vc_Updating_Manager->check_update() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:289

[08-Dec-2020 13:23:15 UTC] PHP Notice: Undefined property: Vc_Updater::$title in /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-content/plugins/js_composer/include/classes/updaters/class-vc-updating-manager.php on line 99
[08-Dec-2020 13:23:15 UTC] PHP Stack trace:
[08-Dec-2020 13:23:15 UTC] PHP 1. {main}() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/themes.php:0
[08-Dec-2020 13:23:15 UTC] PHP 2. require_once() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/themes.php:10
[08-Dec-2020 13:23:15 UTC] PHP 3. do_action() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/admin.php:175
[08-Dec-2020 13:23:15 UTC] PHP 4. WP_Hook->do_action() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/plugin.php:478
[08-Dec-2020 13:23:15 UTC] PHP 5. WP_Hook->apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:311
[08-Dec-2020 13:23:15 UTC] PHP 6. _maybe_update_plugins() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:287
[08-Dec-2020 13:23:15 UTC] PHP 7. wp_update_plugins() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/update.php:813
[08-Dec-2020 13:23:15 UTC] PHP 8. set_site_transient() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/update.php:445
[08-Dec-2020 13:23:15 UTC] PHP 9. apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/option.php:1930
[08-Dec-2020 13:23:15 UTC] PHP 10. WP_Hook->apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/plugin.php:206
[08-Dec-2020 13:23:15 UTC] PHP 11. Vc_Updating_Manager->check_update() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:289

[08-Dec-2020 13:34:17 UTC] PHP Notice: Undefined property: Vc_Updater::$title in /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-content/plugins/js_composer/include/classes/updaters/class-vc-updating-manager.php on line 99
[08-Dec-2020 13:34:17 UTC] PHP Stack trace:
[08-Dec-2020 13:34:17 UTC] PHP 1. {main}() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/plugins.php:0
[08-Dec-2020 13:34:17 UTC] PHP 2. require_once() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/plugins.php:10
[08-Dec-2020 13:34:17 UTC] PHP 3. do_action() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-admin/admin.php:374
[08-Dec-2020 13:34:17 UTC] PHP 4. WP_Hook->do_action() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/plugin.php:478
[08-Dec-2020 13:34:17 UTC] PHP 5. WP_Hook->apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:311
[08-Dec-2020 13:34:17 UTC] PHP 6. wp_update_plugins() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:287
[08-Dec-2020 13:34:17 UTC] PHP 7. set_site_transient() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/update.php:445
[08-Dec-2020 13:34:17 UTC] PHP 8. apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/option.php:1930
[08-Dec-2020 13:34:17 UTC] PHP 9. WP_Hook->apply_filters() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/plugin.php:206
[08-Dec-2020 13:34:17 UTC] PHP 10. Vc_Updating_Manager->check_update() /Users/raulenrique/Local Sites/lemaks-delish/app/public/wp-includes/class-wp-hook.php:289

Thanks for the heads up :slight_smile:

I don’t see any error related to an import in this log file…

The most common errors for unsuccessful demo imports are these variables below, having by default values which are too small.

Since you are on localhost, it’s easy to search in the .ini files these variables below.

I’d recommend these values for a successful demo import:

max_execution_time 300
memory_limit 256M
post_max_size 32M
upload_max_filesize 32M
max_input_vars 3000

Unfortunately the php.ini file already has values that are higher than these recommendations.

Update:
The demo import works fine on MAMP.
The demo import continues showing the same error message using Local by Flywheel.