• Resolved thriveconsultancy

    (@thriveconsultancy)


    Since adding a line of code to a php file (function-set-avia-frontend.php) earlier today, the website has been entirely broken; not only am I unable to access the front end of the website, but I also cannot access the dashboard (to remove the line of code which I am sure is causing the issue, OR to replace the file with the original version).

    I’ve tried to fix the php file via Filezilla, but I cannot even log in using FTP.

    Any advice is greatly appreciated!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • siddhartha

    (@siddhartha10jun)

    Hello,

    Can you tell me what line of code added in your file.

    Thread Starter thriveconsultancy

    (@thriveconsultancy)

    As I recall, it was:

    $logo .= ‘<div class=”logotext_wrapper”><p class=”logotext”>Catherine Cook-Cottone, Ph.P</p></div>’;

    siddhartha

    (@siddhartha10jun)

    Open your debug and check error because this line of code not enough for your site down.

    Review clearly what you exactly change and what you exactly write a code.

    Thread Starter thriveconsultancy

    (@thriveconsultancy)

    That’s what I thought–but this was, as far as I recall, the only thing updated!

    Any ideas for how I can open debug without access to the website (including via FTP), please?

    Many thanks

    siddhartha

    (@siddhartha10jun)

    go to wp_config.php file in root and find this code “define(‘WP_DEBUG’, FALSE);
    and change FALSE to TRUE

    Site seems to be live on the front end. Have you fixed this? You should have access to the site files via the control panel that hosts normally provide for clients e.g. cPanel. Use the file manager as an alternative route to access files.

    siddhartha

    (@siddhartha10jun)

    now site is accessible then what is an issues right now.

    Thread Starter thriveconsultancy

    (@thriveconsultancy)

    Thank you all for your replies! It turns out that it was this one line of code which broke the site. After obtaining further information from the client, I was able to amend the code via the site’s web host. All fixed! 🙂

    siddhartha

    (@siddhartha10jun)

    Most welcome…

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Broken website after editing php file’ is closed to new replies.