Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Received an error from server #2289

Closed
rashedhumayun2k3 opened this issue Sep 30, 2019 · 12 comments

Comments

@rashedhumayun2k3
Copy link

commented Sep 30, 2019

Hi,
I am stuck with this problem from 5 days. Please help me.

I am getting error while I click in Merchello "Sales" button. The error is Received an error from server.
I read the log file and got something like that:
ERROR Merchello.Web.Editors.InvoiceApiController - Unhandled controller exception occurred
System.ArgumentNullException: Value cannot be null.
Parameter name: indexProvider
at Merchello.Core.Ensure.That[TException](Boolean condition, Func1 defer) at Merchello.Core.Ensure.ParameterNotNull[T](T value, String paramName) at Merchello.Web.Search.CachedQueryBase2..ctor(CacheHelper cacheHelper, IPageCachedService1 service, BaseIndexProvider indexProvider, BaseSearchProvider searchProvider, Boolean enableDataModifiers) at Merchello.Web.Search.CachedOrderQuery..ctor(IMerchelloContext merchelloContext, BaseIndexProvider indexProvider, BaseSearchProvider searchProvider, Boolean enableDataModifiers) at Merchello.Web.Search.CachedOrderQuery..ctor(IMerchelloContext merchelloContext, Boolean enableDataModifiers) at Merchello.Web.Search.CachedInvoiceQuery..ctor(IMerchelloContext merchelloContext, Boolean enableDataModifiers) at Merchello.Web.Search.CachedQueryProvider.<>c__DisplayClass4.<InitializeProvider>b__1() at System.Lazy1.CreateValue()
at System.Lazy1.LazyInitValue() at System.Lazy1.get_Value()
at Merchello.Web.Search.CachedQueryProvider.get_Invoice()
at Merchello.Web.Editors.InvoiceApiController.SearchInvoices(QueryDisplay query)
at lambda_method(Closure , Object , Object[] )

@chrno1209

This comment has been minimized.

Copy link

commented Sep 30, 2019

This is something relate to the index I assume.
My suggestion is:

  1. Go to Developer -> Examine Management, there are 4 Merchello indexers over there, try to reindex all again
    image

  2. If above solution does not work, try to delete all index data in App_Data then restart IIS again.

Good luck :)

@rashedhumayun2k3

This comment has been minimized.

Copy link
Author

commented Sep 30, 2019

Thanks for response.
I am getting only few indexer but not the MerchelloCustomerIndexer, MerchelloInvoiceIndexer, MerchelloOrderIndexer, MerchelloProductIndexer in my project.

In my application I have the following indexer:
ExternalIndexer
InternalIndexer
InternalMemberIndexerc

I am totally new in umbraco, learning day by day. I am very happy that you people are very helpful.

@chrno1209

This comment has been minimized.

Copy link

commented Sep 30, 2019

When installing Merchello, it will also install it's indexers, including MerchelloProductIndexer, MerchelloInvoiceIndexer, MerchelloOrderIndexer and MerchelloCustomerIndexer.
If for some reason Merchello didn't install correctly, there might be more errors, but if it's just the indexers, then you can modify the examine settings instead of reinstall Merchello again.

  1. Edit config/ExamineIndex.config, add these lines:
  <IndexSet SetName="MerchelloProductIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/{machinename}/Merchello/Product/" />
  <IndexSet SetName="MerchelloInvoiceIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/{machinename}/Merchello/Invoice/" />
  <IndexSet SetName="MerchelloOrderIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/{machinename}/Merchello/Order/" />
  <IndexSet SetName="MerchelloCustomerIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/{machinename}/Merchello/Customer/" />
  1. Edit config/ExamineSettings.config, add these lines in corresponding node
<Examine>
  <ExamineIndexProviders>
    <providers>
      ...
      <add name="MerchelloProductIndexer" type="Merchello.Examine.Providers.ProductIndexer, Merchello.Examine" />
      <add name="MerchelloInvoiceIndexer" type="Merchello.Examine.Providers.InvoiceIndexer, Merchello.Examine" />
      <add name="MerchelloOrderIndexer" type="Merchello.Examine.Providers.OrderIndexer, Merchello.Examine" />
      <add name="MerchelloCustomerIndexer" type="Merchello.Examine.Providers.CustomerIndexer, Merchello.Examine" />
    </providers>
  </ExamineIndexProviders>
  <ExamineSearchProviders defaultProvider="ExternalSearcher">
    <providers>
      ...
      <add name="MerchelloProductSearcher" type="Examine.LuceneEngine.Providers.LuceneSearcher, Examine" />
      <add name="MerchelloInvoiceSearcher" type="Examine.LuceneEngine.Providers.LuceneSearcher, Examine" />
      <add name="MerchelloOrderSearcher" type="Examine.LuceneEngine.Providers.LuceneSearcher, Examine" />
      <add name="MerchelloCustomerSearcher" type="Examine.LuceneEngine.Providers.LuceneSearcher, Examine" />
    </providers>
  </ExamineSearchProviders>
</Examine>
@YodasMyDad

This comment has been minimized.

Copy link
Contributor

commented Sep 30, 2019

Firstly, what version of Umbraco are you using? Merchello will not work with v8. Secondly, what package did you install and where from?

@rashedhumayun2k3

This comment has been minimized.

Copy link
Author

commented Oct 1, 2019

Hi Chrno,
Many many thanks to you.
Its working now after adding those settings in config files.

Thanks

@chrno1209

This comment has been minimized.

Copy link

commented Oct 1, 2019

Glad that it works :)
Cheers

@sumoncuet

This comment has been minimized.

Copy link

commented Oct 2, 2019

Hello I'm new in umbraco. after installing merchello, I'm getting this error when click on catalog. Can u help me plz?
catalog error

@chrno1209

This comment has been minimized.

Copy link

commented Oct 2, 2019

can you check log and provide error detail?

@chrno1209

This comment has been minimized.

Copy link

commented Oct 2, 2019

You need to check the full log files generated by log4net in App_Data which provide more useful error detail than the browser console.

@sumoncuet

This comment has been minimized.

Copy link

commented Oct 2, 2019

Yes, The following things I got in log file
2019-10-02 13:14:06,507 [P2044/D8/T38] ERROR Merchello.Web.Editors.EntityCollectionApiController - Unhandled controller exception occurred
System.NullReferenceException: EntityCollection does not exist

@chrno1209

This comment has been minimized.

Copy link

commented Oct 2, 2019

The message itself does tell you the issue, which the collection does not exist any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.