Plugin could not be activated because it triggered a fatal error

Plugin could not be activated because it triggered a fatal error

wordpress problem





Rozwiązanie problemu


Plugin could not be activated because it triggered a fatal error.

Parse error: syntax error, unexpected 'new' (T_NEW) in /public_html/wp-content/themes/surreal/framework/php/boot.php on line 35


Rozwiązanie problemu nie wydaje się trudne. Otwórz edytor php i znajdź linijkę

The solution to the problem does not seem difficult. Open the php editor and find the ruler

$this->smilies =& new smilies_package($this->current_smilies);

Należy usunąć symbol & , ponieważ w najnowszym php7 nie można przypisać klas tym symbolem. Po usunięciu symbolu wtyczka powinna działać poprawnie.


You must delete the & symbol, because in the latest PHP7 you can not assign classes to this symbol. After removing the symbol, the plugin should work.

Komentarze