SharePoint Document Library 404 Error - sharepoint

Help-
Any idea what would cause sharepoint's doc library's tree view navigation to break?
What-
We have a sharepoint site that uses the template Document Center to hold all of our docs. In the master page of the site there is a site hierarchy showing a tree view for all the folders in the document library. When clicking on the folders from the tree view we get a 404 error but navigating to the folder from the document viewer webpart on the child page works fine.
When-
The issue started yesterday when my boss was playing around w/ the appearance of the document library web part's Chrome type trying to add a link to the top to get better breadcrumb navigation when using the folder links in the webpart.
Example:
Clicking on the root folder of the document library named "Documents" goes to this url w/ a 404 Error:
http://portal.domain.net/firmdocs/Documents
Go here we get a listing of the items:
http://portal.domain.net/firmdocs/Documents/Forms/AllItems.aspx
What did I try
We didn't change the name of the doc library recently
I am going to do an IIS reset tonight
Tried changing the chrome type back to what it was w/ no luck.
Checked the master page and child page back up versions from a few months ago and no luck. Also the current fiels have not been edited anytime soon.

Did you modify any of the views for the DocLibray? It could be a link to an invalid view.

This usually happens when the original ListViewWebPart in the view is tampered with in some way.
Check to make sure your boss hadn't accidentally closed the original ListViewWebPart in AllItems.aspx
To do that, navigate to http://portal.domain.net/firmdocs/Documents/Forms/AllItems.aspx?contents=1 (the ?contents=1 is the important part)
You should see only one ListViewWebPart in that list.
The other thing you can try is opening AllItems.aspx in SharePoint designer. Make any change to the page (insert a space in the markup, for example) and save it, clicking yes on the prompt to customize a page from the site definition. Once it's saved, right click on it and "Revert to Site Definition."

Related

SharePoint 2013 Page Layout Error

I'm really finding it difficult to set up a new theme for my SharePoint 2013 site.
I have uploaded all other files to the design gallery. But when I uploaded the page layouts, and I try to change the Content Type to Page Layout, I get the error below:
Sorry, something went wrong List does not exist.
The page you selected contains a list that does not exist. It may have been deleted by another user.
Technical Details
Correlation ID: ce2b429d-0147-d0c2-bc23-32b039f7d8a6
Please what can I do to resolve this?
Thanks.
I got it working by disabling the publishing feature under > site settings > Site Collections Feature > SharePoint Server Standard Site Collection features
Deactivate
Reactivate
Rebooted the server (probably could have done an IISReset but
overkill!)
Now I can add layout pages under master pages gallery.
In the browser, go to your site, and on the Site Actions menu, click
View All Site Content, and then click the Pages document library.
Or you can browse directly to
http://your_site/pages/forms/allitems.aspx, where your_site is the URL
for your site, such as fabrikamweb/finance for the
http://fabrikamweb/finance subsite.
The Pages document library is created automatically by the publishing
feature and contains all of the pages in a site that are created from
page layouts. You can look in the Page Layout column to see which page
layout was used for a specific page and then click the link to view
that page in the browser.
https://support.office.com/en-us/article/Customize-a-publishing-page-layout-c10bda25-0145-44c6-ba14-7757176fb47f

SharePoint 2013 File Not Found Missing Page Layout

How do I detach a page layout from a page and attach a different one? Is there a powershell command. SharePoint Designer is throwing an error.
I deployed a new set of master pages and page layouts and removed my old ones. I missed detaching a couple pages from the page layouts and now when I try to open those pages I'm getting a File Not Found. I've recovered the old page layouts and I still cannot open the pages. I tried detaching the page layout in SharePoint Designer but it's throwing an error "operation is not valid due to the state of the object."
I found the solution:
I had to download the page and edit the properties in a text editor and then upload the file. DO NOT DELETE THE FILE on the SharePoint site and re-add. It but be copied over the original.
Steps to fix this issue.
Download the SharePoint Page.
Navigate to the location of the new page layout
Take note of the following:
1) Name
2) Title
3) ContentTypeId (IN THE URL).
Edit the Page in text editor - use the values from above without the "*" below.
Replace xxx.xxx.com with your site.
|mso:ContentTypeId msdt:dt="string"|***ContentTypeId*|/mso:ContentTypeId|
|mso:PublishingPageLayoutName msdt:dt="string"|Name|/mso:PublishingPageLayoutName|
|mso:PublishingPageLayout msdt:dt="string"|https://xxx.xxx.com/_catalogs/masterpage/Name, Title|/mso:PublishingPageLayout|
Upload the Page to the same location as the original.

SharePoint 2010, Upload Document Redirect to Page

I have a document library in SharePoint 2010 that several different teams are using for the same purpose. Each team has their own page that has a filtered view of the document library on it. The document library also has custom columns.
The issue I am running into is when a team member uploads a document from their page. They click "Add document" from their page, and then they browse to the document they want to upload. This part works perfectly - and the URL specifies the source as the team's page. However, after a user selects the document and clicks "OK", it takes them to the EditForm.aspx page that allows the user to fill in the meta data for the document. This is fine, but now the source URL specifies a view from inside of the document library, and no longer points to the team's page (where they came from).
Does anyone know how I can change this source URL to point to the team's page instead of the document library? Or, does anyone know a workaround for this issue so that a user can upload a document from a page (with document library web part on it) so that it returns to the page?
Thanks!!
SharePoint 2010 should work the way you want out-of-the-box. I tried to reproduce your situation, but was unable to. What I did was set up a library with one custom column and two custom views. I then created two pages, one with a list form web part using one view and one with a list form web part with the other view.
When I click on the Add Document from either page, a modal dialog window opens to the Upload page. I first select the file (Upload.aspx) and then am redirected to the metadata properties (EditForm.aspx). After filling out the metadata, the dialog window closes, and the page behind it (the page we were originally on) refreshes to show the new document in the web part. So the user experience is that they stay on the page they want while adding the document as desired.
If you edit your question or provide comments with more details on your situation we can try to reproduce it, but the functionality you describe is exactly how it is supposed to work out-of-the-box.
Peter's correct - SharePoint's being SharePoint.
If I am reading this right, it may be that you should simply check out in-line editing. Using a view, you and edit the properties dynamically without leaving the page (each team getting their own view).
Alternately, I see many who simply want to redirect users back to the page they came from either edit or view of an item regardless of where that was (a link, etc.). Simplest way to do that is a little programming by adding a button to the forms replacing the OK/Cancel with your own code. Simply edit the forms using InfoPath to add the new buttons - you have the user context if you need to custom redirect to a team home page or some such.

How to make document library in top level visible to subsites

I'd like to ask if you came up with a solution that will allow for subsites to access a centralized document library at the parent level. I'm still trying to no avail. I've tried doc library templates, views, Doc Center and the best method i have OOTB is a page view web part on the subsites page display a view from the parents library. (by the way to remove the ribbon, append ?IsDlg=1 to the url and the ribbons hidden) cool tip. Say will you give be a Y/N on a solution that will allow one to keep a set of documents in the doc center and surface them in the sub-site.
There are another option without such hard coding. You can open any view of your document library, as mentioned earlier AllItems.aspx for example with SharePoint Designer. Open it for editing in advanced mode (there are option when you click right mouse button on file in SP Designer). Then just point mouse cursor inside web part and chose in ribbon web parts, Add to Site gallery, see the picture. Fill in name of new web part. That is all, now you can add this web part on any page on any web site from webpart gallery through the user interface or through the SP Designer by clicking Insert, Web Part in the ribbon on any page.
You can do this by editing the AllItems.aspx (or other view page) and scraping off the WebPartPages:ListViewWebPart and pasting it into a page on the subsite.
This will give you an error "List does not exits The page you selected contains a list that does not exist."
Then you need to get the WebID for the root site (where you took the ListViewWebpart from and replace the part of the webpart that looks like this:
<WebId xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">00000000-0000-0000-0000-000000000000</WebId>
with (for example)
<WebId xmlns="http://schemas.microsoft.com/WebPart/v2/ListView">7b04dee8-b120-4dee-abea-28b77316ec7d</WebId>

How to get Site Icon to properly update in Sharepoint 2010 Web Part Page

I'm working on creating a reusable and extensible web application in SharePoint 2010. I've created a master page to apply across all pages in the site. However, whenever I create a web part page and navigate to it, the site icon does not display. Instead of my custom site icon being displayed it shows the default SharePoint icon. I can get around this by placing the icon directly into the master page, but that would require me to create a new master page if I ever wanted to extend this web application.
Does anyone know why this is happening? My initial thought was that the web part page had somehow been customized to not use the default master page, but that does not seem to be the case: if I update the master page it is reflected in the web part page.
Googling around and checking this site yielded little answers. I only found one post out there that reported the same issue I am observing but there was no solution.
If it helps, I did notice one phenomena when navigating to this page. Before the page completely loads, the correct site icon appears for a split second before being replaced with the default site icon. Hope that helps.
I ran into the same issue this morning and didn't want to create a custom master page just for this, but luckily it was quickly resolved by following admlcrunch's suggestion (on SharePoint 2010):
Go to the desire page
Click on the "Page" tab at the top
Click on the "Title Bar Properties" at the right (in the ribbon)
In the Image Link section on the right, paste in the image URL
Click OK
The only bad thing about this is, you have to update every Web Part page that you want custom icon image to display.
I was just having the same issue. Web Part Pages have their own icon that you can set.
To set the icon click Page > Title Bar Properties. This will open the Web Part Page Title Bar dialog. In this dialog there is an area to set the Image Link. You can set the icon here. I just copied the URL to the site icon.
Open the page in designer and remove the custom titlebar place holder:
[WebPartPages:TitleBarWebPart]
from the :
[asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea"]

Resources