OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

Installing Contrib.GoogleAnalytics module will make site fail on load #3028

Open orchardbot opened 12 years ago

orchardbot commented 12 years ago

volody created: https://orchard.codeplex.com/workitem/19200

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

orchardbot commented 12 years ago

@sebastienros commented:

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 ?

orchardbot commented 12 years ago

volody commented:

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_GoogleAnalyticsSettingsRecord 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_googleanalyticssettingsrecord' 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_GoogleAnalyticsSettingsRecord 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

orchardbot commented 12 years ago

volody commented:

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

Some features need to be upgraded: Contrib.GoogleAnalytics

orchardbot commented 12 years ago

volody commented:

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

orchardbot commented 11 years ago

@csurieux commented:

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 ?