What is solution to Fatal error: Cannot use "self" when no class scope is active in avada theme?

Chayan Biswas picture Chayan Biswas · Apr 12, 2016 · Viewed 13.1k times · Source

I have freshly installed the Wordpress and then put the Avada theme files in the themes folder. When I attempted to install the Avada theme I get a fatal error:

Fatal error: Cannot use "self" when no class scope is active in C:\xampp\htdocs\avada\wp-content\themes\Avada\framework\plugins\importer\importer.php on line 1000

I am running it xampp server. The WordPress version is 4.4.2. I have searched a lot to find out what is the actual problems, But when I installed avada in the wamp server, it works fine. I want it in the xampp server for my personal tasks. Any insight would be appreciated.

Answer

Bruce picture Bruce · May 5, 2016

Edit file /wp-content/themes/Avada/framework/plugins/importer/importer.php on line 1000 from : self::deleteDir($file);

to :$this->deleteDir($file);