Setting specifies the context site for experience editor - sitecore

I am working on multisites and I want to open experience editor for the context site, but sitecore doesn't resolve the context site and it always takes me to the default website, there is a setting in sitecore.config file i set it to "true", but still it takes me to the default website :
http://mywebsite.local/?sc_mode=edit&sc_site=website
here is the setting in sitecore.config, my sitecore version is 8.1 (Update 2)
<!-- PREVIEW - RESOLVE SITE
If false, the Preview.DefaultSite setting specifies the context site to use when a user previews an item.
If true, when a user previews an item, Sitecore tries to resolve the root item and the context site based on the current content language
and the path to the item. If Sitecore cannot resolve the context site, it uses the site that is specified in the Preview.DefaultSite setting.
Default value: false (use the value of the Preview.DefaultSite setting)
-->
<setting name="Preview.ResolveSite" value="true"/>

I have also face this issue before and it is known bug in sitecore. I have tried approach mentioned in below article. (However I am still facing this issue intermittently whenever I copy new dll in sitecore website.)
https://kb.sitecore.net/articles/382913
I have already placed all the files at my one drive link. Please take a backup of your existing file ("WebEditRibbon.aspx ) before replacing
https://1drv.ms/f/s!AotVzR-_yI5ObO5-Pzq02mcx-EU

This Reported as bug in Sitecore 8.1 (Update 2), and this is the fix from support team :
Open the “/sitecore/client/Applications/Launchpad/PageSettings/Buttons/ContentEditing/ExperienceEditor” item in the core database
Change the “Link” field value to:
/?sc_mode=edit&sc_resolvelanguage=0
Updated Answer :
For multi-sites, you need to apply anothor fix I did not find its number on https://kb.sitecore.net/ so i uploaded the required files on dropbox :
Download Sitecore.Support.88883.zip, from this Link
Copy the attached Sitecore.Support.88883.dll file to the /bin folder of your website;
Copy the attached Sitecore.Support.88883.config file to App_Config/Include folder of your website;
Open the "/sitecore/client/Applications/Launchpad/PageSettings/Buttons/ContentEditing/ExperienceEditor" item in the core database
Change the “Link” field value to: /?sc_mode=edit&sc_resolvelanguage=1
Clear the browser cache.

Related

Sitecore 10.1 | Site resolving works only if I check "Enable Preview" site property (for items referenced from different site)

I have multiple sites architecture. Like this one
sitecore/content/site1
sitecore/content/site2
For each item of site2 referenced in site1 I get the following URL:
www.site1.com/sitecore/content/site2/item
instead of
www.site2.com/item
I've debugged Sitecore.Sites.DefaultItemSiteResolver and found, that the site can be only resolved only if it has "Enable Preview" site property set to true:
But now, after setting it to true, I have another problem, the page resolving now works also in the preview (which is not the desired behavior, I want only the "webiste" site to be resolved there). It even ignores the "Preview.ResolveSite" setting, which is set to false.
What am I doing wrong? How to enable site resolving for published sites but not for the preview?
There are several settings in Sitecore.config that help to configure proper site resolving logic in multisite Sitecore solutions:
Rendering.SiteResolving — enables site resolving, so cross-site links can be rendered with correct hostname, language, and virtual folder.
Rendering.SiteResolvingMatchCurrentSite — item location is taken into consideration when a cross-site link is built. All items under a certain site root will be resolved in the context of that root.
Rendering.SiteResolvingMatchCurrentLanguage — when true, context language is taken into consideration when a cross-site link is built.
It is recommended to keep the Rendering.SiteResolving setting value at true for any multisite solution in order to ensure that cross-site links are built with the correct parameters. In this case, the Experience Editor and Preview mode are opened in the context of the site defined in the Preview.DefaultSite setting, if no other site can be resolved.
To make sure that items are opened in context of correct site, you must set the Rendering.SiteResolvingMatchCurrentSite setting to true.

Unable to preview in content editor - Sitecore

I have added 2 pages in the content tree - index & Home Page. It was working fine until yesterday. Unable to preview 'index' in the Content editor (CE) now.
The error message is -
The requested document was not found
However, when I do Tools > Browse > Preview, from Sitecore Rocks, it opens fine. Also, I am able to preview 'Home Page' in CE without issue.
Following Mike's Solution Here, I tried to add the user 'Everyone' and removing 'extranet/Anonymous'. But the changes never Save.
Why does it happen to this page alone. No changes made to web.config and I am using only master DB.
UPDATE:
Here is what I have observed.
When 'index' is placed outside the 'en' folder, it can be previewed. Someone suggested that Sitecore is confused by the folder name with its languages. But renaming it to Test-en, also did not work.
I also tried this. Created 'index' outside 'en' folder. Then created a copy of the same inside the 'en' with the name 'index1'. I can preview index1 now, but if 'index' is deleted, it's the same issue again.
I have seen this happen a few times. On a new instance, I don't believe it is permissions, especially if you are using SIM to install (if you aren't - try it!)
Follow these steps and it should fix your issue. Make sure all instances of your browser are closed. They are known to keep hidden instances running. Stop all those tasks. Restart your IIS instance. Log Into your sitecore site with the magical password. Preview the page. You should be able to preview and in fact get the Experience Editor.
I do agree that Sitecore is confused as to the state of that it is logged in as, that is why it is important to close all browser instances.
If you still get this error, clear your logs. Do the above steps and send me your logs. I will look at them for any oddities.
Happy Sitecoring!

Could not find the ColdFusion component or interface

I had a Mura 5 site, Admin stopped working with CF11 update.
I downloaded Mura 6, pasted site content in it, applied updateDB from url to the old database and it updated the DB.
Now admin area is working but i am getting the following error on client area.
Could not find the ColdFusion component or interface C:\sites\mura\test_site1\includes\servlet.cfc.
Ensure that the name is correct and that the component or interface exists.
The only problem is it is looking in old folder name mura instead of root folder of site which I named mura-6.
I don't know where can i change that to fix it. I didn't find any settings in tsetting nor in settings.ini.cfm(this has an abort tag on start btw)
I have also applied appreload, fuseboxreload and there is no mapping i found.
please guide.

Sitecore Upload Media from Page editor doesn't work

I am a new bee to Sitecore and here comes my first challenge at work.
In one of the website component, I want to add an image.
For this in content editor:
I'll click on browse.
Switch to folder view.
Navigate down to the folder you want to save into.
Click upload media on top left.
Click ‘Browse for media files’ and navigate to the image on the local drive and select it.
Enter alt-text and click upload media.
In Chrome the green bar for uploading never seems to finish. On IE one of the green bars changes to ‘Upload complete’. At this point there is no call to action to add the image to the module, select the module – you just don’t know what to do next.
Eventually you have to click ‘Back’ or ‘close’. Then when you go to find the image it is not in the folder you selected. It is in Upload folder. We cannot keep all of our files in ‘Upload’. We need to be able to upload into a chosen folder.
I am using Sitecore 7.2.
This works properly in a base site in Sitecore 7.2, but is not working in my website.
Is there any setting I need to change to make this work properly?
I know we can add media files into Media library directly and can use it. But we want to do it the using the above mentioned steps/ or using Page editor. The main problem is, this doesn't work while adding image from Page editor.
Hope I can get some solution!
many thanks!
I looked at the Release Notes for Sitecore 7.2 and found that there were several bugs related to Media Uploads that were resolved in Update 2 (140526), including some that relate to choosing the destination of uploaded media. From your description of the issue and the bugs that were fixed in Update 2, it sounds like you may only need to update to Revision 140526.
To find out what revision of Sitecore you are using, go to the Sitecore Desktop -> Start Menu -> Control Panel -> Administration -> Show About Sitecore Information. As you will see in the screenshot, below, there is a parenthesized revision number at the top. If that number is not 140526 then you should try to apply Update 2 to your instance.
Note that this screenshot is of an instance that is not running on Sitecore 7.2 Update 2, but is instead running on the initial release (140228).

Can't Open Web forms for marketers Form Designer or Security Manager

I have had WFFM running on a Sitecore instance for a while, but it has recently stopped working. When I go to "Form Designer" on an existing form, I get the standard Sitecore "The requested document was not found" page.
Requested URL: /applications/modules/web
User Name: sitecore\admin
Site Name: shell
If the page you are trying to display exists, please check that an
appropriate prefix has been added to the IgnoreUrlPrefixes setting in
the web.config.
Note that the requested URL is stated as /applications/modules/web instead of /applications/modules/web forms for marketers.
A lot of development has occurred on this site recently, so I'm not sure when exactly this started happening.
Additional: info:
Folder and file permissions are correct.
I've tried reinstalling the WFFM package, and made sure that all the files are in place.
Several processors have been added to the HttpBeginRequest pipeline, but I removed them all to test if they were the cause - they weren't.
I haven't upgraded Sitecore since WFFM was working and the version is correct.
No errors are logged
EDIT
This also seems to be affecting the Sitecore Security Editor:
Requested URL: /appl
User Name: sitecore\admin
Site Name: shell
If the page you are trying to display exists, please check that an
appropriate prefix has been added to the IgnoreUrlPrefixes setting in
the web.config.
EDIT 2
Further investigation with this is making me think it is related to the Requested URL. I originally thought the the "Not found" page was displaying the requested url incorrectly. However, if I attempt to goto mysite.com/sitecore/shell/applications/fake folder with spaces/fake page with spaces I get this error message:
Requested URL: /applications/fake folder with spaces/fake page with
spaces
User Name: sitecore\admin
Site Name: shell
If the page you are trying to display exists, please check that an
appropriate prefix has been added to the IgnoreUrlPrefixes setting in
the web.config.
As you can see the Requested Url is correct in the error message. So in relation to my problem, I think maybe Sitecore is requesting the wrong URL in the first place.
Additionally if I go to the go the following url by typing directly into the browser, then the Security Editor opens as expected:
mysite.com/sitecore/shell/Applications/Security/User-Editor
This is quite old now but I thought I'd provide an update for anyone else who encounters the problem.
Unfortunately, Sitecore support weren't able to help beyond pointing out that setting the addAspxExtension attribute to 'true' in the link provider seemed to solve the problem. This may have been acceptable except that extensionless URLs were important to the customer.
In the end I had to amend my link provider so that addAspxExtension is set to 'true' in the web config, and then I set it to false inside the GetItemUrl method for specified sites only.
So now whenever the context site is 'Shell' or 'Admin' etc, the extensions are added by default, but switched off in my main website.
Of course, this is a work around. I still don't know how to actually fix the problem
So the first thing that I am going to tell you is that I suspect that there is something wrong with your site declaration for Sitecore Modules. In your web.config, there's a site declaration for "modules_shell" and "modules_website". Those are where the code files that run the modules are usually located... a shell folder to run the parts that run in the Sitecore shell and a web folder to run the part that is accessed by the externally facing site. Please check your site declarations (and the form.config file) to make sure that you're not in live mode or something like that. I would definitely say that this is where you should start looking.
The next thing is to say that your comments about Sitecore not serving a url in the /sitecore/shell directory is really not surprising. Sitecore processes all requests unless you specifically tell it to ignore requests (like setting it in the IgnoreUrlPrefixes in web.config), it's going to try processing it. Like going to /sitecore/shell/applications gives me a layout error because it doesn't have anything set to handle that request. Now your error suggests that there is something wrong with Site declarations.. however, even if they were all right, it still wouldn't work.