1
Vote

Installing Contrib.GoogleAnalytics module will make site fail on load

description

This issue is applicable only to Orchard 1.6RC

The only way to restore is either disable module using Dashboard if possible
or from command line

orchard> package uninstall Orchard.Module.Contrib.GoogleAnalytics

file attachments

comments

sebastienros wrote Oct 28, 2012 at 3:51 AM

What is the issue exactly, I am running it on two different websites with 1.6 (and where 1.6 RC before) and it works great. What is the error message in the log ?

volody wrote Oct 30, 2012 at 8:52 AM

Thank you for your reply. May be that is an issue because of my manual update from 1.5.1 to 1.6RC, as well I have switched to MySql as backend.

2012-10-27 18:22:53,531 [21] Orchard.Data.Migration.AutomaticDataMigrations - Could not run migrations automatically on Contrib.GoogleAnalytics
2012-10-27 18:22:54,218 [21] Orchard.Data.Migration.AutomaticDataMigrations - Could not run migrations automatically on Contrib.GoogleAnalytics
2012-10-27 18:23:15,796 [3] NHibernate.AdoNet.AbstractBatcher - Could not execute query: select settingsre0_.Id as Id1438_, settingsre0_.Enable as Enable1438_, settingsre0_.Script as Script1438_ from Contrib_GoogleAnalytics_SettingsRecord settingsre0_ limit 1
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'activelog.contrib_googleanalytics_settingsrecord' doesn't exist
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd)
2012-10-27 18:23:15,812 [3] NHibernate.Util.ADOExceptionReporter - Table 'activelog.contrib_googleanalytics_settingsrecord' doesn't exist
2012-10-27 18:23:15,812 [3] NHibernate.Util.ADOExceptionReporter - Table 'activelog.contrib_googleanalytics_settingsrecord' doesn't exist
2012-10-27 18:23:15,812 [3] NHibernate.Util.ADOExceptionReporter - Table 'activelog.contrib_googleanalytics_settingsrecord' doesn't exist
2012-10-27 18:23:16,109 [13] NHibernate.AdoNet.AbstractBatcher - Could not execute query: select settingsre0_.Id as Id1438_, settingsre0_.Enable as Enable1438_, settingsre0_.Script as Script1438_ from Contrib_GoogleAnalytics_SettingsRecord settingsre0_ limit 1
MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'activelog.contrib_googleanalytics_settingsrecord' doesn't exist
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd)
2012-10-27 18:23:16,109 [13] NHibernate.Util.ADOExceptionReporter - Table 'activelog.contrib_googleanalytics_settingsrecord' doesn't exist
2012-10-27 18:23:16,109 [13] NHibernate.Util.ADOExceptionReporter - Table 'activelog.contrib_googleanalytics_settingsrecord' doesn't exist
2012-10-27 18:23:16,109 [13] NHibernate.2012-10-27 18:23:45,718 [1] Orchard.Environment.DefaultAssemblyLoader - Error loading assembly 'Contrib.GoogleAnalytics'
System.IO.FileLoadException: Could not load file or assembly 'Contrib.GoogleAnalytics' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Contrib.GoogleAnalytics'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at Orchard.Environment.DefaultAssemblyLoader.LoadWorker(String shortName, String fullName) in c:\Temp\orchard\src\Orchard\Environment\IAssemblyLoader.cs:line 56
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at Orchard.Environment.DefaultAssemblyLoader.Load(String assemblyName) in c:\Temp\orchard\src\Orchard\Environment\IAssemblyLoader.cs:line 26

volody wrote Oct 30, 2012 at 9:50 AM

by the way, after installing Contrib.GoogleAnalytics next msg become highlighted

Some features need to be upgraded: Contrib.GoogleAnalytics

volody wrote Nov 3, 2012 at 9:51 PM

yes, just did fresh install with MySql as backend and after install see the error when has clicked in Dashboard->Analytics link

have attached log file

CSADNT wrote Sep 24, 2013 at 8:05 PM

Are you using the last code from codeplex source, it got lot of fixes in last 6 months...
I have been using it from 1.6 to last 1.7.x and it runs ok, with good results in google ?