[Webstore] Sitesettings not generated when calling methods from AdminproductEdit.cs

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/5/2018 10:21:03 AM
Gravatar
Total Posts 13

[Webstore] Sitesettings not generated when calling methods from AdminproductEdit.cs

Hey all,

I am trying to generate proper URL's for my products. I am trying to do this by using methods found in the AdminProductEdit.cs file. However when calling methods from this file i constantly get the error that sitesettings are null. Does anyone know how to fix this?

Regards

Micha

6/13/2018 6:38:39 AM
Gravatar
Total Posts 13

Re: [Webstore] Sitesettings not generated when calling methods from AdminproductEdit.cs

Alright the problem just got even weirder. Sometimes the siteSettings actually do generate. Most of the time this happens after i clean+rebuild the code. However there are still plenty of times the siteSettings remain null when calling the method in AdminProductEdit.cs. Does anyone have an explanation for this behavior?

Regards

Micha

6/13/2018 7:03:01 AM
Gravatar
Total Posts 13

Re: [Webstore] Sitesettings not generated when calling methods from AdminproductEdit.cs

Found it more quickly than i thought but using the method siteSettings = CacheHelper.GetCurrentSiteSettings(); in the places that caused the problem fixed the issue for me!

You must sign in to post in the forums. This thread is closed to new posts.