EditableImage does not synchronize with Targetserver

Manmath Kulkarni asked on March 30, 2017 10:07

Hi,

I have source and target server. I am able to synchronize pages and media libraries, so source and target have same set of images. Also EditableText is getting synchronize with target server but EditableImage does not show any image on target server. It shows broken image.

Kindly, let me know if you have any solution.

Thanks in advance,
Manmath

Recent Answers


Juraj Ondrus answered on March 30, 2017 14:14

Hi,
What version of Kentico are you using?
Also, when you change the editable image - add some image, what is the task generated in staging and what are the task data? Is this task synchronized correctly?
I would also check that the image you have selected for the editable image web part exists on target.

0 votesVote for this answer Mark as a Correct answer

Manmath Kulkarni answered on March 30, 2017 14:39

Hi Juraj,

Thanks for your reply.

I am using Kentico 10 version. I am using ASPX page templates in my site. When I add/change image in EditableImage web part "Update Page" task is generated. This task gets synchronize correctly with target server, also Image that used in EditableImage web parts exists on target.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on March 30, 2017 14:43

I assume you are using the same page templates. What are the sync task data? is the change correctly logged? How big is the image?
What is the path or link generated for the image?

Is the configuration the same? I mean when it comes to URLs - maybe you are using extension less setup on source but not on target. Could you please check and compare the URLs and SEO settings in the Settings application?

0 votesVote for this answer Mark as a Correct answer

Manmath Kulkarni answered on March 31, 2017 17:52 (last edited on March 31, 2017 18:09)

Hi Juraj,

I can see URL of EditableImage for the selected is image in "Production" still points to "Staging" URL.

What need to be done in this case so that URL will point to production URL path.

Thanks.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on April 3, 2017 08:15

Thanks,

The image you are selecting. Is it a page attachment, CMS.File page or media file?
How is the image selected exactly? I just tried selecting all types of image as mentioned above, and in all cases the path is saved in relative format - so the domain name is not there. Or, what exactly you mean by pointing to staging URL?

0 votesVote for this answer Mark as a Correct answer

Manmath Kulkarni answered on April 3, 2017 09:34

Hi Juraj,

Image I am selecting for EditableImage is media file not attachment or CMS.file page. In this case also Path is relative and domain name is not there.

For staging: /StagingSiteName/StagingSiteName/media/Background-Images/bg.jpg
For Production: /ProductionSiteName/StagingSiteName/media/Background-Images/bg.jpg 
instead of /ProductionSiteName/ProductionSiteName/media/Background-Images/bg.jpg

I am trying to set correct path on production for EditableImage from aspx.cs code behind but EditableImage.ImageControl returns null.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on April 3, 2017 09:59

Thanks for the info.

In this case, if you are using staging, you should be also using the same code names for both sites - they should be basically identical. So, in this case the folder names will be the same. Or, another option would be not using the site specific subfolders for media files.

In the code behind, if you are changing the values - at what event are you doing it? Isn't it possible that you are changing the values too early or too late in the life cycle? Also, you need to call the ReloadData method to reload the values.

0 votesVote for this answer Mark as a Correct answer

Manmath Kulkarni answered on April 24, 2017 11:34

HI Juraj,

Thanks for your answer. I tried using same code name for source and target server and its working.

However I have scenario where I have one staging server and multiple production server. If I kkep same code name, Knetico gives error "Site with the same code name already exists". What can be done in this case to allow synchronization with multiple sites.

Thanks in advance.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on April 24, 2017 13:35

What is the exact setup please? You have the web sites in one Kentico instance? I mean in the target instance. Looks like yes - in this case I would recommend using separate Kentico instances for the web sites.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.