Customizer Class PHP error prevents me from being Admin, stops site form working

Home Forums Legacy Support Support queries Other issues Customizer Class PHP error prevents me from being Admin, stops site form working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21883
    aces654
    Spectator
    I tried to insert code into my customizer_class.php file in WPLMS-Customizer. I got code from this page below and saved my file with the code. https://wplms.io/support/knowledge-base/removing-instructors-profile-link-from-name-in-course-page/ However the code didn't work. I deleted the code and updated the file. However I got this error: Parse error: syntax error, unexpected 'return' (T_RETURN), expecting function (T_FUNCTION) Now practically all of my website refused to work and spits back the above error on nearly every page I access. I can't even log in as admin on my Wordpress website due to this error. I think that I might have deleted necessary code when removing the ineffective extra code but I have no clue what the original file looked like. Even if I can find what it looked like, WP admin is not functioning due to the error so fixing it is difficult. Is there an original version of the Customizer-Class.php file I can access and restore site usability.
    #21886
    aces654
    Spectator
    Got it fixed from somewhere else.
    #21893
    crisulete
    Spectator
    Go in cpanel and delete the last code from customiser.
    #21895
    crisulete
    Spectator
    Be carrefuly whenyou  put code in wplms customizer, even a blank space will give you eror. Y experience that.
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Customizer Class PHP error prevents me from being Admin, stops site form working’ is closed to new replies.