500 after issue with pk=lugin

Hi,

I’ve had the Rainlab Google Analytics plugin installed en tried to install the Google Analytics/Firebase plugin also. This results in the following error:

Executing: php artisan october:migrate

PHP Fatal error:  Cannot declare class RainLab\GoogleAnalytics\Plugin, because the name is already in use in /home/molen/public_html/plugins/mohsin/googleanalytics/Plugin.php on line 5

In Plugin.php line 5:

  Cannot declare class RainLab\GoogleAnalytics\Plugin, because the name is already in use

 [ERROR] Migration failed. Check output above

Now nothing works anymore. The site shows Server error | 500 and artisan commands don’t execute anymore and return the following error everytime:

Cannot declare class RainLab\GoogleAnalytics\Plugin, because the name is already in use

Any ideas on how to reverse my mistake?!

Greetings, Arie

Looked in composer.json and removed the plugin GA/Firebase. Then ran composer update which fixed the site. All is well…

1 Like