You have no items in your shopping cart.

Sunday, December 22, 2024 5:24:23 PM

can't install

Posted: 3 years ago

#11368 Quote

kh.s

Posted: 3 years ago

#11368 Quote
Hi
i can't install this plugin and get this error in log

Posted: 3 years ago

#11369 Quote

Support

Posted: 3 years ago

#11369 Quote
What nopcommerce version do you use?
Nop 4.30?

Posted: 3 years ago

#11370 Quote

Support

Posted: 3 years ago

#11370 Quote
Check the first string on this error message. You will see the name of the plugin with  the issue.
Nopcommerce 4.30 uses FluentMigrations and tries to install the plugin, but the old plugin doesn't have information about FluentMigrations.

Posted: 3 years ago

#11371 Quote

kh.s

Posted: 3 years ago

#11371 Quote
yes, nop 4.30
full error:

The plugin "FoxNetSoft.Plugin.Feed.Manager" not installed

System.Exception: An error occured executing the following sql:
CREATE TABLE [dbo].[AddressAttribute] ([Id] INT NOT NULL IDENTITY(1,1), [Name] NVARCHAR(400) NOT NULL, [IsRequired] BIT NOT NULL, [AttributeControlTypeId] INT NOT NULL, [DisplayOrder] INT NOT NULL, CONSTRAINT [PK_AddressAttribute] PRIMARY KEY ([Id]))
The error was There is already an object named 'AddressAttribute' in the database.

---> System.Data.SqlClient.SqlException (0x80131904): There is already an object named 'AddressAttribute' in the database.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite, String methodName)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at FluentMigrator.Runner.Processors.SqlServer.SqlServerProcessor.ExecuteNonQuery(String sql)
ClientConnectionId:b99764a3-a499-44a7-961b-2f04b72a6e60
Error Number:2714,State:6,Class:16
   --- End of inner exception stack trace ---
   at FluentMigrator.Runner.Processors.SqlServer.SqlServerProcessor.ExecuteNonQuery(String sql)
   at FluentMigrator.Runner.Processors.SqlServer.SqlServerProcessor.Process(String sql)
   at FluentMigrator.Runner.Processors.ProcessorBase.Process(CreateTableExpression expression)
   at FluentMigrator.Expressions.CreateTableExpression.ExecuteWith(IMigrationProcessor processor)
   at FluentMigrator.Runner.MigrationRunner.<>c__DisplayClass80_0.<ExecuteExpressions>b__1()
   at FluentMigrator.Runner.StopWatch.Time(Action action)
   at FluentMigrator.Runner.MigrationRunner.ExecuteExpressions(ICollection`1 expressions)
   at FluentMigrator.Runner.MigrationRunner.ExecuteMigration(IMigration migration, Action`2 getExpressions)
   at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp(IMigrationInfo migrationInfo, Boolean useTransaction)
   at FluentMigrator.Runner.MigrationRunner.MigrateUp(Int64 targetVersion, Boolean useAutomaticTransactionManagement)
   at FluentMigrator.Runner.MigrationRunner.MigrateUp(Int64 targetVersion)
   at Nop.Data.Migrations.MigrationManager.ApplyUpMigrations(Assembly assembly, Boolean isUpdateProcess) in C:\andrei\nop_sources\src\Libraries\Nop.Data\Migrations\MigrationManager.cs:line 180
   at Nop.Services.Plugins.PluginService.InsertPluginData(Type pluginType, Boolean isUpdateProcess) in C:\andrei\nop_sources\src\Libraries\Nop.Services\Plugins\PluginService.cs:line 194
   at Nop.Services.Plugins.PluginService.InstallPlugins() in C:\andrei\nop_sources\src\Libraries\Nop.Services\Plugins\PluginService.cs:line 469

Posted: 3 years ago

#11372 Quote

Support

Posted: 3 years ago

#11372 Quote
Did you install the fresh nop 4.30 or upgrade the old nop instance?

Can you check if Migration table has the value?
Execute this command
select * from MigrationVersionInfo where [Description]='Nop.Data base schema'

Posted: 3 years ago

#11375 Quote

kh.s

Posted: 3 years ago

#11375 Quote
Upgraded from 4.20 to 4.30.
i executed this command
select * from MigrationVersionInfo where [Description]='Nop.Data base schema'

result is empty table version,appliedon and description

Posted: 3 years ago

#11376 Quote

Support

Posted: 3 years ago

#11376 Quote
Nop team did a SQL script for upgrade nop 4.20 to nop 4.30.
You need to execute this script.

Execute this command
INSERT [MigrationVersionInfo] ([Version], [AppliedOn], [Description]) VALUES (637160666562551771, CAST(N'2020-03-18T07:23:31.000' AS DateTime), N'Nop.Data base schema')


But I advice you to check this table MigrationVersionInfo.

Posted: 3 years ago

#11377 Quote

kh.s

Posted: 3 years ago

#11377 Quote
thank you, my problem resolved with your help.
i want json file, edit feeds.xml id 558
<FeedNetWork>
    <Id>558</Id>
    <Name>Custom template</Name>
    <Image></Image>
    <Schema>custom_template.xml</Schema>
    <ExportMethodId>99999</ExportMethodId>
    <DisplayOrder>59</DisplayOrder>
    <ExportFileType>JSON</ExportFileType>
  </FeedNetWork>

generated feed but get this error in json file
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Posted: 3 years ago

#11378 Quote

Support

Posted: 3 years ago

#11378 Quote
<ExportFileType>JSON</ExportFileType>

The plugin doesn't create json file.

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved