• I was editing things in my customizer.php and then this message appeared:

    Parse error: syntax error, unexpected ‘months’ (T_STRING) in /home4/kellyj/public_html/wp-content/themes/sugarspice-pro/inc/customizer.php on line 28

    Now it wont let me log into my panel and I’ve tried to update the customizer to its original content but the message keeps appearing. I dont knoe what to do.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Do you have access to Cpanel or some other form of hosting control panel for your site? Usually they have a file manager of some sort that would let you go in and inspect the file, and edit it directly online.

    Otherwise you need to connect to your site via FTP using something like filezilla, navigate to the file and download it to a work directory your computer. Then open it up in a real text editor like Notepad++ or Sublime Text 2.

    Now just look at line 28. Copy the surrounding lines , say 4 lines on both directions and post them up here. Meanwhile go and download your theme again. Open up its version of this file and save it in your work directory, naming it customizer.good.php and the previously downloaded file customizer.bad.php

    Then you can use a tool like winmerge to open up both files and compare the differences. Or you can also jut try uploading the good one (without renaming it of course) to your site. preserve the bad one first just in case.

    Thread Starter kellyjeanine

    (@kellyjeanine)

    Thank you for responding. I do not have access to my Cpanel. I am not familiar with FTP do you think you could guide me? Thank you

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Your hosting providers will be able do guide you with this.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I broke my website, now it won't let me back into the Admin Panel to fix it it.’ is closed to new replies.