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

Salesforce assuming namespace



I'm having an issue whereby Salesforce is giving me a namespace error when trying to load a Visualforce page with a composition in it.


The error reads (in generic form):  

"Apex class 'PackageNamespace.MyPageControllerExtension' does not exist"


Now, the controller extension above is saved as: 



in the apex classes and is NOT in a package. BUT, it IS an extension of a page controller



that IS found in a managed package



that has been installed on the org, which is thus referenced by



As a final piece of back ground, "PackageNamespace.MyBasicPageController" controls a 'master' page in which a composition (page), controlled by "MyPageControllerExtension", is displayed.


This is the part that causes the error:


There is a method in "PackageNamespace.MyBasicPageController" which is called and returns a page reference in order to reload the 'master' page and the composition. However, the error message above is what results i.e. Salesforce seems to think that the page controller extension is in the installed package when it isn't!!


Any help in this matter would be much appreciated. Could this be a bug?