+ Start a Discussion
daveespodaveespo 

Receiving "down for maintenance" on my Sites pages

I created my first Sites application on Friday. However, I am only able to get the 'landing page' to work. Any links from that page to other pages on the Site generate a "... is down for maintenance" message

 

I have authorized these pages to be part of my Site so it's not a permission problem. (prior to authorizing the pages, I was receiving a different error).

 

This is the error screen:

 

http://screencast.com/t/zhNh1NBwulZ

 

And this demonstrates taht the TicketPurchaseInstance page is authorized:

 

http://screencast.com/t/6MZbOEgnU

BulentBulent

"Down for maintenance" page is displayed when the page causes an error that we don't want to display to the end user.

Do you (site admin) get an email about the error?

 

You can create a profile that matches the site public access settings profile and test the same page when you are authenticated and you'll see the full error details 


Message Edited by Bulent on 09-30-2009 04:40 PM
daveespodaveespo

No, I haven't been receiving any emails about page errors. Just to be clear: the error only occurs when accessing the page via the public Sites URL .. If I'm logged into my SF account and access the page through /apex/TicketPurchaseInstance, it works fine.

 

I turned on Debug Log for all users ... The page doesn't terminate with an error state according to the log output:

 

Here is the list of log entries:

 

http://screencast.com/t/bXO6tszgIB

 

And here is the detail from each of them:

 

http://screencast.com/t/BvfByZskU3i

 

http://screencast.com/t/RiYEKjb5

BulentBulent
the best way to test this is to try with a user after you login to salesforce. But make sure that user's profile matches the site profile (public access settings, FLS, sharing, etc)
daveespodaveespo

FYI, the problem was ultimately due to permission problems on my Custom Objects. However, there appears to be a bug in the permission enforcement.

 

I did not grant any access to the objects that are displayed on the first page of my Site, but the objects were displayed anyway. The second page of the site failed with the "Maintenance" message because the permissions weren't set to 'Read' for Basic Access.

 

This is the screen shot of the page ... Before I went into this screen, all of the checkboxes for the Custom Objects were unchecked

 

http://screencast.com/t/WrBJUQbxeIO

daveespodaveespo

I don't know how to answer that. Neither controller was created with any special permissions. Both were created using the Force.com IDE (new - Apex Class)

 

I tried removing the permissions I set (the ones from the screenshot from my last post) and tried changing the "Active Site Home Page" to the VF Page that was problematic. It is still returning the "maintenance" error.

 

So it doesn't appear to be related to the fact that the page is the default landing page.

 

How do I know if it's running in 'system mode'? I thought that all Custom Controllers ran in system mode by default.

RyanGuestRyanGuest

What if you try to re-create the pages that are displaying the error message step by step? For example, create a blank page and make sure that it works. Then add a controller and make sure it works. Then slowly add pieces to the page until you can determine what portion of the page/controller is causing an error.

 

 

Message Edited by RyanGuest on 04-07-2009 08:28 PM
d3developerd3developer

"Like other Apex classes, all custom controllers run in system mode"

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_custom.htm

 

 

I'm having the same problem once again. No errors, but an automatic forward to the maintenance page. 

 

BulentBulent

"Down for maintenance" page is displayed when the page causes an error that we don't want to display to the end user. 

Best way to see the error is to create a profile that matches the site public access settings profile and test the same page when you are authenticated and you'll see the full error details 

Message Edited by Bulent on 09-30-2009 04:40 PM
d3developerd3developer

Sadly the full error details are simply, "An internal server error has occurred"

 

Nothing more is noted in the Debug log.

 

I've created an entry on the Idea Exchange re: this problem. Please upvote if you also have encountered this issue:

 

http://ideas.salesforce.com/article/show/10098242/Debug_log_entry_when_forwarding_to_maintenance_page

BulentBulent

please send me a private message with your org id and the url for the public page causing the internal error.

I'll check the cause. 

lolouilawahinelolouilawahine

I also struggled with the site "down for maintenance" error my first time setting up a Public Knowledge Base site and was able to resolve it by going to the Site's Public Access Settings and editing the Category Group Visibility Settings.  It should be set to "All Categories" or you can customize it for specific data categories.

 

If you are having trouble seeing the Category Group Visibility settings,

 

Go to Setup > Customize > User Interface

Disable "Enable Enhanced Profile User Interface"

Then go back to your site's Public Access Settings and scroll to the bottom.  You will see Data Category Visibility.

 

There's a great LinkedIn group you can join for more help working with Salesforce Knowledge sites.  Lots of great discussions and speedy replies.

 

Salesforce Knowledge User Group 

http://www.linkedin.com/groups/Salesforce-Knowledge-User-Group-3784290

Ravi kumar 100Ravi kumar 100
Hi daveespo, 

Did you resolve the issue? If posssible share your solution for the mainatenence sites page issue. 
SFDC GabbarSFDC Gabbar
Did you guys find a solution for this? If yes can you please share.