Can’t Load Demo File (Content and Images) for WordPress Theme “Massage-Therapist”

View QuestionsCategory: QuestionsCan’t Load Demo File (Content and Images) for WordPress Theme “Massage-Therapist”
admin Staff asked 7 years ago

Can’t import demo data. Error message:

Import demo data
Posts	
Theme Mods	
Theme Options	
Template Options	
Widgets	

Errors that occurred during the import process:
Error load data from the file 'http://massage-therapist.ancorathemes.com/demo/default/users.txt'. Please, try again!
Error load data from the file 'http://massage-therapist.ancorathemes.com/demo/default/theme_mods.txt'. Please, try again!
Error load data from the file 'http://massage-therapist.ancorathemes.com/demo/default/theme_options.txt'. Please, try again!
Error load data from the file 'http://massage-therapist.ancorathemes.com/demo/default/templates_options.txt'. Please, try again!
Error load data from the file 'http://massage-therapist.ancorathemes.com/demo/default/widgets.txt'. Please, try again!

How to fix?

1 Answers
Best Answer
admin Staff answered 7 years ago

This is because fopen is disabled in php.ini

Enable fopen, then these functions should work.

This requires editing php.ini

admin Staff replied 5 years ago

If you hosting company uses cPanel, you can go on cPanel, click “MultiPHP ini Editor”, select your domain, then in the “allow_url_fopen” row (it’s the first column), Setting set as Enable, then click Save.

Remember to undo all this after installing the demo and turn off allow_url_fopen, as it poses a minor security risk.