function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
bob17bob17 

Can't get VF Page on Layout to Display in Sites page

A have section of an Opportunity Layout that is a VisualForce page (vfPage1).  It displays fine in normal SFDC but when the Opportunity Layout is displayed on a VF page (vfPage2) via the <apex:detail> mechanism, the section that should be rendered by vfPage1 is not displayed.

 

The browser throws the following error:

 

Error: 'document.forms.echoScontrolForm_066A0000000Gn3f' is null or not an object

 

The id of vfPage1 is 066A0000000Gn3f and the Sites guest user has access to the VF Page, its controller extension, and the data is displays.

 

Any help or guidance would be very much appreciated.

Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent

if you want to track then you need to call support to open a case. It's not confirmed that this is a bug yet. I will also update this post with the progress.

 

** UPDATE  8/18/09 3:13pm pst **

 

this is not a bug. we tested and what I suspected is not an issue and it worked fine.

can you provide more details (org id etc..)? 

Message Edited by Bulent on 08-18-2009 03:04 PM

All Answers

RyanGuestRyanGuest

Does it contain an S-Control? S-Controls aren't supported in Sites.

 

I'd suggest creating a layout without an s-control and see if that works. 

bob17bob17
No, there is no S-Control involved.  Just a VF page included in a standard object layout.
UmapenUmapen

I am having similar problem. cannot see my pages on sites. I cannot see any errors either

 

Where can I find errors? 

 

http://community.salesforce.com/sforce/board/message?board.id=sites&thread.id=1230

BulentBulent

seems like a bug. What's happening is (I'm guessing now, we need to test)

apex:detail component is including the embedded visualforce page by using the salesforce.com url not the site url.

So, in site context the embedded visualforce page is not accessible  

bob17bob17

That make logical sence.  Thank you for looking into this.

 

Is there anything I can do about it?  If it is a bug who reports it?  Is there anyway to track the status of the bug so I would know when it is fixed?

BulentBulent

if you want to track then you need to call support to open a case. It's not confirmed that this is a bug yet. I will also update this post with the progress.

 

** UPDATE  8/18/09 3:13pm pst **

 

this is not a bug. we tested and what I suspected is not an issue and it worked fine.

can you provide more details (org id etc..)? 

Message Edited by Bulent on 08-18-2009 03:04 PM
This was selected as the best answer
UmapenUmapen

Not sure my problem is related to this or not. I am not using apex:detail tag.

 

I am using plain html still not able to see the pages on sites.

 

Any suggestions on how to debug look at the log files

BulentBulent

seems like you have a different issue. You can check the followings:

1- your page is enabled for your site

2- the related object is in deployed status

3- your site is in active status

4- your site has the proper access to the object and the fields

5-sharing is properly set for the site user