Blog error... not working

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
I am trying to activate the Blog functionality on my nopCommerce site... but after I activate it, I get this error message:
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:
Line 78:                 {
Line 79:                     <a href="@Url.RouteUrl("BlogPost", new { blogPostId = item.Id, SeName = item.SeName })" class="blogdetails">
Line 80:                         @string.Format(@T("Blog.CommentsLink").Text, item.NumberOfComments)
Line 81:                     </a>
Line 82:                 }


I have added two entries to the blog... but still not good...
Obviously, both entries have no comments at all, because nobody can enter the blog without crashing (not even myself).

Any help?

Thanks!
11 years ago
Hi!
I posted this a year ago... since I got no replies, I just deactivated the blog feature for the time being.
But I am curious again... I have just finished installing version 2.8... I tested the blog feature and it is still not working... any idea why?
Thanks
11 years ago
As a guess, are you using a custom theme?  That might be what is causing the problem.  Or are you using the default clean 2.8 nopcommerce theme?
11 years ago
The format exception is likely caused by a translation of the "Blog.CommentsLink" resource. For 2.80, the default English value for "Blog.CommentsLink" is "Comments ({0:d})". You can edit this value via Admin > Configuration > Languages > click "View string resources" link for your language > click the funnel icon on the "Resource name" column > enter Blog.CommentsLink > click Filter. Ensure the value for the resource has "({0:d})", "({0})", or "{0}" in the translation.

The character string: {0} is a format item that is used to insert the number of comments into the resource value and can cause a format exception if it is incomplete.

.
11 years ago
Ok, will try your suggestion mb, because I am using the site in spanish, so that's must be the cause... will let you know.
Thanks!
11 years ago
Yes, mb, you fixed my problem... thank you very much. :)
10 years ago
My blog is working fine. However, when I click on the RSS button on blog page, I got below message.

"We're sorry, an internal error occurred.

Our supporting staff has been notified of this error and will address the issue shortly.

We apologize for the inconvenience.

Please try clicking your browsers 'back' button or try reloading the home page.

If you continue to receive this message, please try again in a little while.

Thank you for your patience."

The RSS button on new products page is working good.

I tried searching on google for about a week but still couldn't find an answer. Can anyone here able to help please?? =(

Here is the link - http://hbacademy.org.uk/store/blog

Many thanks !
9 years ago
I'm using 3.4 and got this error:

[ArgumentNullException: Value cannot be null.
Parameter name: uriString]
   System.Uri..ctor(String uriString) +6701298
   Nop.Web.Controllers.BlogController.ListRss(Int32 languageId) in \BlogController.cs:237
   lambda_method(Closure , ControllerBase , Object[] ) +97

Did anyone run into this as well?
9 years ago
snapnzip wrote:
I'm using 3.4 and got this error:

[ArgumentNullException: Value cannot be null.
Parameter name: uriString]
   System.Uri..ctor(String uriString) +6701298
   Nop.Web.Controllers.BlogController.ListRss(Int32 languageId) in \BlogController.cs:237
   lambda_method(Closure , ControllerBase , Object[] ) +97

Did anyone run into this as well?


Based on the error, it looks like one or more blog posts are missing a SeName.

It looks like it is the post titled "Stay Warm and Stylish with This Year's Hottest Winter Trends" as you can't click the link from the blog.

If you edit the blog post details in Admin > Content Management > Blog > Blog Posts > click Edit for the post and then click the "Save and Continue Edit" button, a 'Search engine friendly page name' should be generated for the blog post on the SEO tab.

.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.