Bug reports Found a bug? Post it here please.
Version 5.x > Bug reports > Wrong content site tree in Insert media link View modes: 
User avatar
Member
Member
tamir@high-way.co.il - 9/26/2011 2:06:37 PM
   
Wrong content site tree in Insert media link
User image

Hi ,

In one of our sites when the desk editor try to connect a link to an image in the WYSIWYG editor he gets the insert media window wit wrong site.

he doesn't have this site in his site list and has no admin permission
with admin user it opens in the correct tree.

thanks
Tamir

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/26/2011 10:16:14 PM
   
RE:Wrong content site tree in Insert media link
Hi,

which version of Kentico do you use? Have you applied any hotfix? There was a similar error fixed, in the R2 version, therefore applying the latest hotfix could help you. But to be sure, please provide us the version of system on which your site is running.

Thank you in advance for information.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
tamir@high-way.co.il - 9/27/2011 3:58:54 AM
   
RE:Wrong content site tree in Insert media link
Hi Ivana ,

Thank you for the quick reply ,

im using ver: v5.5.3789

can I apply safely the Hot fix?

thanks

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/27/2011 4:16:06 AM
   
RE:Wrong content site tree in Insert media link
Hi,

if you have not customized the site, the hotfix should be applied without any issue, but it is recommended to create a backups of database and project folder.

Please download the latest hotfix for 5.5 version, not for 5.5 R2 version.

The package is available here:
hotfixes

If it does not help, please let us know.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
tamir@high-way.co.il - 9/27/2011 4:57:51 AM
   
RE:Wrong content site tree in Insert media link
Hi Ivana ,

Thank you applying the hot fix solved the issue but now the Ecommerce add to cart not working

im getting the followin error
must be somthing we created in the past and now it is not available

Event ID: 38266
Event type: Error
Event time: 9/27/2011 12:53:42 PM
Source: Controls
Event code: LOADTRANSFORMATION
User name: xxxxxx (administrator)
IP address: xxxx-xxxx-xxxx-xxxx
Description: Message: [CMSDataProperties.LoadTransformation]: http://server/CMSTransformations/882ebece-d744-4e6c-a553-a00544b156d8/customProduct/MitziClassic/Default---showeditdelete.ascx(55): error CS0103: The name 'MyFunctions' does not exist in the current context
Stack Trace:
at System.Web.Compilation.AssemblyBuilder.Compile()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.UI.TemplateControl.LoadTemplate(VirtualPath virtualPath)
at System.Web.UI.TemplateControl.LoadTemplate(String virtualPath)
at CMS.Controls.CMSAbstractDataProperties.LoadTransformation(Control parent, String transformationName, Boolean showEditDelete)

Machine name: IBM1
Event URL: /חנות/MItzy-Lace/ורוד-עתיק.aspx?imagepath=%2fTheCollections%2fmitzyLace%2f%d7%95%d7%a8%d7%95%d7%93%2fpink7(back)&videopath=http://www.youtube.com/watch?v=TqudToabYMQ&imagedesc=%D7%90%D7%99%D7%9A%20%D7%9C%D7%95%D7%91%D7%A9%D7%99%D7%9D%20%D7%9E%D7%99%D7%A6%D7%99%20%D7%91%D7%A7%D7%A9%D7%99%D7%A8%D7%94%20%D7%94%D7%A4%D7%95%D7%9B%D7%94
URL referrer: http://www.mitzysimone.com/חנות/MItzy-Lace/ורוד-עתיק.aspx
User agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; he; rv:1.9.2.22) Gecko/20110902 firefox 3.61


thank you
tamir

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/27/2011 5:15:24 AM
   
RE:Wrong content site tree in Insert media link
Hi,

haven't you created a custom transformation function? How to do it is described here:
Custom transformation function

So maybe you have removed the file where methods were defined.

You can check the code of transformation described in the error message. Probably you have a custom product document type and one of its transformations is throwing the error message.

Best regards,
Ivana Tomanickova

User avatar
Member
Member
tamir@high-way.co.il - 9/27/2011 5:18:30 AM
   
RE:Wrong content site tree in Insert media link
Hi ,

I found this in it's default transformation :

<%# MyFunctions.showSoldOut(Eval("SKUAvailableitems")) %>;" >

this is a custom product.

so this was removed on the hotfix sql or files update?

thanks

User avatar
Member
Member
tamir@high-way.co.il - 9/27/2011 5:25:50 AM
   
RE:Wrong content site tree in Insert media link
Ok ,

Found that the global.cs
changed and removed my functions.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/27/2011 5:26:03 AM
   
RE:Wrong content site tree in Insert media link
Hi,

it will be related to the files update. In you original project folder probably exists the class with name MyFunctionas and ShowSoldOut is one of its method. Could you please take a look into your original project folder backup and copy this file into the new one?

It will be probably inserted under App_Code directory. Please take a look at the documentation from my previous post. Maybe you followed it while the class was developed.

Best regards,
Ivana Tomanickova