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
Daniel BleasdaleDaniel Bleasdale 

Unknown constructor 'myController.myController(ApexPages.StandardController controller)'

How do I go about sorting this error so I can go live?

User-added image
Unknown constructor 'myController.myController(ApexPages.StandardController controller)'

Apex page-
<apex:page lightningStyleSheets="true" StandardController="Apprentice__c" extensions="myController" title="Apprentice Documentation">
My custom controller/Extension :-
public class myController{
public Apprentice__c ApprenticeObj{get;set;}
public Apprenticeship_Component__c ComponentsObj{get;set;}
public Programme_Area__c ProgramArea {get;set;}
public Apprenticeship_Qual__c Qual {get;set;}  
ApexPages.StandardController sc;
public myController(ApexPages.StandardController sc){ 
    this.sc = sc; 
    ApprenticeObj = new Apprentice__c(); 
    ComponentsObj = new Apprenticeship_Component__c(); 
    ProgramArea = new Programme_Area__c ();
    Qual = new Apprenticeship_Qual__c ();
}

Thanks Dan
 
Best Answer chosen by Daniel Bleasdale
Daniel BleasdaleDaniel Bleasdale
It wasnt working because of a custom process that was running on the live org, I just changeed the save function to the Standard controller save.

I have It working now

All Answers

Raj VakatiRaj Vakati
Are this changes also included in change set ?? I mean both the class and page ? Looks like you are not included this in to the Change Set 
Daniel BleasdaleDaniel Bleasdale
It wasnt working because of a custom process that was running on the live org, I just changeed the save function to the Standard controller save.

I have It working now
This was selected as the best answer