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

Visualforce weird behavior (force bug?)

Hi, using force Sites I've made a visualforce page, with its corresponding controller. Everything works fine in the developer mode: https://<domain_name><page_name>?inst=8&po=PO00056

However, when I go to the public mode: 



Basically, it doesn't bring me a collection that is being perfectly brought on the developer mode.


My VF page is like this:


<apex:pageBlock title="Solicitudes">
    <apex:pageBlockTable id="RequisitionsList" value="{!Requisitions}"

var="cnno__Cnno_Purchase_Requisition__c" rendered="{!NOT(ISNULL


        <apex:column >
            <apex:facet name="header">
                <apex:outputText value="Requisition ID"/>
            <!-- Position name field linked to job details page -->
            <apex:outputText value="{!}"/>







And my apex controller has this method:


public cnno__Cnno_Purchase_Requisition__c[] getRequisitions(){
            return requisitions;  


Best Answer chosen by Admin (Salesforce Developers) 

you need to check the following to make sure they are set properly

1- site details>public access settings> object permissions 

2- site details>public access settings> field level security for the objects you are using 

3- sharing rules for the object you are using


your admin user and the site has different security settings and are different users