nystudio107 / seomatic

DEPRECATED A turnkey SEO implementation for Craft CMS 2.x that is comprehensive, powerful, and flexible
Other
357 stars 45 forks source link

Undefined index: googleAnalyticsAnonymizeIp #195

Closed bennobo closed 7 years ago

bennobo commented 7 years ago

Hi there,

I geht the following error message after updating to the latest version (1.1.42):

Internal Server Error

Undefined index: googleAnalyticsAnonymizeIp

Any hint how to fix that?

Regards Ben

khalwat commented 7 years ago

It looks like the migrations didn't run. Can you get them to run?

khalwat commented 7 years ago

https://craftcms.com/classreference/consolecommands/MigrateCommand

khalwat commented 7 years ago

This means that the migrations didn't run, or somehow didn't complete.

Can you please check the seomatic.log file in craft/storage/runtime/logs/ to see if you see lines like this:

******************************************************************************************************
2017/02/13 18:13:47 [info] [plugin] [Forced] Created the `googleAnalyticsAnonymizeIp` in the `seomatic_settings` table.
in /home/vagrant/sites/nystudio107/craft/app/etc/plugins/BasePlugin.php (65)
in /home/vagrant/webdev/craft/seomatic/migrations/m170212_000000_seomatic_addGoogleAnalyticsAnonymizeIp.php (44)
in /home/vagrant/webdev/craft/seomatic/migrations/m170212_000000_seomatic_addGoogleAnalyticsAnonymizeIp.php (21)
2017/02/13 18:13:47 [info] [plugin] [Forced] Created the `wikipediaUrl` in the `seomatic_settings` table.
in /home/vagrant/sites/nystudio107/craft/app/etc/plugins/BasePlugin.php (65)
in /home/vagrant/webdev/craft/seomatic/migrations/m170212_000000_seomatic_addWikipedia.php (45)
in /home/vagrant/webdev/craft/seomatic/migrations/m170212_000000_seomatic_addWikipedia.php (21)

******************************************************************************************************

I just ran the upgrade on another install, and it worked without issue.

khalwat commented 7 years ago

I've heard from a number of people who are able to update without issue.

Those of you having problems, can you post your MySQL and PHP versions?

bennobo commented 7 years ago

Both log files don't show anything alike and it seems to be something on our side as nobody else is complaining. Therefore I reinstalled as I have to move on.

kouk commented 7 years ago

i faced the same problem today:

ii  mysql-server-core-5.5            5.5.54-0+deb8u1             amd64        MySQL database server binaries
ii  php5-mysql                       5.6.30+dfsg-0+deb8u1        amd64        MySQL module for php5
ii  php5                             5.6.30+dfsg-0+deb8u1        all          server-side, HTML-embedded scripting language (metapackage)
kouk commented 7 years ago

upgraded from 1.1.39 to 1.1.43

khalwat commented 7 years ago

@kouk for whatever reason, the update migrations didn't run. It's some kind of a local setup issue, but I don't know what it would be in your specific case.

You can try to manually run the migration in the craft/plugins/seomatic/migrations directory, or you can uninstall and re-install the plugin.