20

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.

Rasclatt
  • 12,498
  • 3
  • 25
  • 33
Chayan Biswas
  • 566
  • 2
  • 6
  • 18

1 Answers1

33

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

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

Rao
  • 20,781
  • 11
  • 57
  • 77
Bruce
  • 346
  • 3
  • 2