• I have a meeting in 45 minutes with my client to go over the website I’ve developed for her.

    Just this morning, I tried adding the Meteor Gallery plugin. After adding all the slides, and creating the settings, I copied and pasted the short code provided inn the Custom.php editor with MUCH hesitation.

    https://www.whitewavehealingarts.com/wp-admin/theme-editor.php?file=lib%2Fcustom.php&theme=virtue

    Sure enough, the site crashed!!!

    I’m only able to access the custom.php page editor by keeping the window open and back paging when necessary.

    Using the wp-admin, I get a blank screen however I try to enter, whether it be from changing the page away from custom.php editor, or just typing in the URL with wp-admin.

    When I just put in the URL https://whitewavehealingarts.com, I receive this error:

    Parse error: syntax error, unexpected ‘<‘ in /home/wp_57242k/whitewavehealingarts.com/wp-content/themes/virtue/lib/custom.php on line 605

    I went back to the custom.php editor, copy and pasted the code into Diff Checker, and the code ends at line 603???

    I had put the new code at the end, saved, then when crashed, back-paged to get to the editor again, deleted the new code and saved…but NOTHING!

    PLEASE HELP ASAP!!! Thank you!!!
    Lily

Viewing 1 replies (of 1 total)
  • Hey,
    First off because it’s best to be clear. There isn’t any reason to be editing something in the themes core files. If your wanting to add a function then you should be using a child theme. It’s also always a good idea to edit using software and ftp transfer and not using the wp-editor. Lastly shortcodes shouldn’t go in function files.

    I’m only able to access the custom.php page editor by keeping the window open and back paging when necessary.

    That is actually not true. By backing up in your browser your only viewing a cached page. You can’t actually make any changes in that file now because the function that runs that has crashed.

    What you need to do.

    Login to your server. where you host the site and get access to the web file manager. Navigate to wp-content/themes/virtue/lib/custom.php and edit that file from your web file manager. This will only work through your server, wordpress admin won’t work.

    Then remove whatever you added and you site should come back. If it doesn’t just delete the whole theme folder then login to your site and reinstall it.

    Kadence Themes

Viewing 1 replies (of 1 total)
  • The topic ‘Client's Site is DOWN after Editing php NEED HELP ASAP!’ is closed to new replies.