hi, i have install and configure smart seo plugings. but i have a issue with all catagory and product page. they are on render and throw an error. i have customize a nop commerce source (lot's of change in model and and view and so many new fields are added).
error is :-
Input string was not in a correct format.
else Line 22: { Line 23: var result = acquire(); Line 24: //if (result != null) Line 25: cacheManager.Set(key, result, cacheTime);
hi, i have install and configure smart seo plugings. but i have a issue with all catagory and product page. they are on render and throw an error. i have customize a nop commerce source (lot's of change in model and and view and so many new fields are added).
error is :-
Input string was not in a correct format.
else Line 22: { Line 23: var result = acquire(); Line 24: //if (result != null) Line 25: cacheManager.Set(key, result, cacheTime);
plz advise how to solve it..?
Hi,
Can you please send the stack trace of the error, as we cannot guess what might be wrong by just looking at the lines above. In which files does the error occur, what changes have you made, are you sure that this error is due to the Nop Smart Seo plugin.
Can you let us know the id of the order so that we can double check what product you are using.
When we Enable plugin From Admin Side, all Catagory page show a error on page , and error Was :-
Input string was not in a correct format.
and other all page are working(running) like productDetail page , Shopping Cart and Home page etc.
in Admin side in Log This error Shown:- error
Log level: Error
Short message: Input string was not in a correct format.
Full Message :- System.FormatException: Input string was not in a correct format. at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args) at System.String.Format(IFormatProvider provider, String format, Object[] args) at System.String.Format(String format, Object arg0) at SevenSpikes.Nop.Plugins.SmartSEO.Builders.KeywordsBuilder.BuildKeywords(String localizedKeywordsSEOTemplate, String localizedKeywordsSEOTemplateRegex, String entityTitle) at SevenSpikes.Nop.Plugins.SmartSEO.Helpers.SEOCategoryTemplateHelper.() at SevenSpikes.Nop.Plugins.SmartSEO.Helpers.SEOCategoryTemplateHelper..() at Nop.Core.Caching.CacheExtensions.Get[T](ICacheManager cacheManager, String key, Int32 cacheTime, Func`1 acquire) in c:\Users\Developer\Documents\Projects\Harry\310\Libraries\Nop.Core\Caching\Extensions.cs:line 23 at Nop.Core.Caching.CacheExtensions.Get[T](ICacheManager cacheManager, String key, Func`1 acquire) in c:\Users\Developer\Documents\Projects\Harry\310\Libraries\Nop.Core\Caching\Extensions.cs:line 12 at SevenSpikes.Nop.Plugins.SmartSEO.Helpers.SEOCategoryTemplateHelper.ConfigureLocalizedCategoryTemplates(CategoryModel categoryModel) at SevenSpikes.Nop.Plugins.SmartSEO.ActionFilters.CategoryActionFilterAttribute.OnActionExecuted(ActionExecutedContext filterContext) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) at System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(
Have you modified the CategoryModel type in nopCommerce? What are your category SEO template settings as you might have entered incorrect settings in the Smart SEO configuration. You can try to uninstall and then install the plugin this way all the templates will be reset and you can try to see if you still have any problems.