I have a SharePoint site where clicking "View All Site Content" generates this error:
The URL '/sites/foo/bar' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.
Any ideas?
Hm, maybe you can check whether any web part is causing problems.
Just add ?contents=1 at the end of the URL and you will go to the Web Part Maintenance mode for the current page.
It's a long shot, but with SharePoint you never know :)
Could be an issue with an unpublished system masterpage for the site. Try looking at http://[yoursitecollection]/_catalogs/masterpage/Forms/AllItems.aspx to see if there is an issue.
Related
Thanks in advance for your insights.
I created a Template page in one SharePoint site. Now I need to copy that Template page to another SharePoint site. I was expecting this to be very simple, but have not found a viable solution yet.
Here is my Template page...
https://my_url.sharepoint.com/sites/mysite_365/SitePages/Templates/Documentation-Template.aspx
This is where I need to copy it to...
https://my_url.sharepoint.com/sites/my_other_site/SitePages/Templates
NOTE:
My version of SharePoint is SharePoint Online.
I created Documentation-Template.aspx as part of an Office 365 group site. Not sure if that might make a difference.
Thanks again!
Under the modern experience, you can only copy a site page to the same Site Pages library in the same site. You could vote on this idea in uservoice:
https://sharepoint.uservoice.com/forums/329214-sites-and-collaboration/suggestions/35035618-add-the-ability-to-copy-a-modern-site-page-from-on
As a workaround, you could switch to classic experience. Then copy a site page to another site with the URL path to the other site's Site Pages library. Like this:
This still doesn't seem to be an option.
Here's a flow I made to accomplish this
Manually trigger a flow and ask for SourceSiteURL, PageName, DestinationURL and FailAction
Init Integer variable for FailAction
Switch to set fail action from input to Integer
Copy file in SharePoint from sourceURL/SitePages/PageName to DestinationURL/SitePages/PageName
I'm using SharePoint 2010. I saved a Site Template(.stp) and used this template to create a sub site. Browser shows file not found error, however, if I add /_layouts/ChageSiteMasterPage.aspx to that URL, I'm able to see settings Page.
Error:
cannot create folder "Path".
Correlation ID: 4baa2636-0dd9-4965-afc1-e438d74a20d5
What could be the problem??
Search for that correlation ID in your SharePoint log. Probably the problem is because you need to activate a feature in the new site, or you have a custom solution that you need to deploy there.
Go to Site Setting and open the Master Pages section. Look for anything checked out and chack it back in. This happens each time you create a new site from a template.
Does anybody know how to find offending web part which causes this error ?
“A Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered on this site as safe.”
I have inherited an old SharePoint 2003 portal site which uses custom web parts.
I know what this error means. I also know that each web part must be installed and registred as safe in web.config. The problem is that I don't know which one is missing.
I get same error when I'm trying to open the page in FrontPage as well.
Use contents=1 in QueryString to disable/remove WebParts from page that causes errors.
stsadm.exe -o enumallwebs -includewebparts
http://sharepointreporter.wordpress.com/
Requires updating to Sp2 I believe, for this command to be available. Problematic web parts will appear as 'Missing' in the resultant list.
Go to Event Viewer of the machine and you shall be able to see Error entries. Out of tons of entries you have to find out the entries related to you and you shall be able to see the names of the webparts that the sharepoint site is trying to load but fails. If you shall read the complete description of the error entry in the Event Viewer, it will give you version and even PublicKey Token of the webpart as well.
I hope this helps!!!
Try reading this:
http://www.bluedoglimited.com/SharePointThoughts/ViewPost.aspx?ID=189
It should give you some clues to solving the problem. Essentially you have a control that is not marked as safe and it is failing. You can most likely config it to work, but the link above has other possible solutions.
in your url just append content=1. This will give you the all the webparts that are deployed. Now, you can keep deleting each of the webpart to find which one is causing issue ( ensure that you know to add the web parts back).
For example: if Url is http://localhost:9000/default.aspx, try with http://localhost:9000?contents=1
Alternatively, try to create a new webpart page,add web parts that are there on your actual page and check which one is causing issue. This will avoid changes to the actual page.
Hope this helps.
I've just suggested this same answer on MSDN:
This stsadm helped me in finding where the webpart was referenced in any way:
stsadm -o enumallwebs -includewebparts > C:\temp\somelog.txt
Then you can see the web part is listed under some <Web Id=... Url=...> XML node, i.e. you know the "culprit" web site.
At that point, some reasons I've found for those forgotten references:
the webpart is used in some sub-site of the culprit website, and the sub site is hidden from the quick list or top bar
the webpart has been deleted from the culprit website, but it still is in the "site collection recycle bin". You can reach that by going to the normal website recycle bin, then look for its link on the top bar description ("Use this page to restore items that..."). By the way, this site collection recycle bin has two views itself: be sure to check them both.
In both cases, I got some help by browsing the culprit website with SharePoint Manager. With that I could easily spot the existence of a forgotten subsite, as well as the existence of this "second level recycle bin".
HTH
I am using a pageviewer webpart to display a .htm page which is present in a document library in sharepoint 2010.
It is asking me to download the page instead of diplaying in the page
But in MOSS 2007 it is working fine(I mean it is displaying in the page)
Please suggest me the solution
Thanks in advance.
SP2010 has restrictions on displaying or opening some files. So for that, You need to go to central administration and check the "Browser File Handling" to "Permissive" for that web application's general settings.
I think it will help you.
There is a better way to handle "Browser File Handle" issue. Take a look at my blog here: http://www.pdfsharepoint.com/sharepoint-2010-and-pdf-integration-series-part-1/
Solution #2 addresses Pdf extension without exposing entire Web Application to "Permissive" browsing. Setting "Browsing File Handle" to "permissive" opens too many vulnerabilities with other file extensions.
Thanks,
Dmitry
Inside SharePoint I've previously created a site template by appending _layouts/savetmpl.aspx to the end of my site and new sites have been created correctly and work as expected.
I've now come to do the same thing again and yet this time the new site is throwing an error relating to the page layout.
The error is:
This page is not using a valid page layout. To correct the problem, edit page settings and select a valid page layout.
When I try to select a different one, there is only the one to select. This page layout is in use on other sites and they render fine.
Has anyone else seen this issue?
All the best
First, if you append the _layouts/savetmpl.aspx tho the url, i suppose you dont have it in the Site Settings options, so you are using a Publishing site. This is because Microsoft doesn´t support this option (save as template in publishing sites). And they dont support it because it has some bugs, for sure.
So, I would recommend not using this option in important sites, or if you plan to ask support to Microsoft in the future.
However that error indicates that the page layout or his associated content type (ou parent content types) are not correctly installed in the site collection. Are you using your own (custom) content types? Please confirm if the ID of the associated content type (something like 0x0100C6739B7D12DE419aA2F9A2F96CC26818) is exactly the same in the Page Layout on working sites and in the not working sites.
Hope it helps
Do the sites/site collection where the templates working have all the same features enabled as teh sites/site collection where the template isn't working?
Can you check the server logs? <12 hive>\LOGS
Did you add a custom page layout, use it, and then forget to check that "save content" checkbox when you saved your template?