• thetoolman123

    (@thetoolman123)


    Hi there,

    I don’t have access to FTP and have made a change to my functions.php file via a file editor plugin.

    However the admin has now gone down and I can’t upload the backup.

    What can I do?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Vlad T

    (@vladytimy)

    Hi, @thetoolman123

    So I asume you made a change in functions.php that resulted in an error – and now you can’t access the Dashboard.

    Unfortunately, if you don’t have FTP access there’s not muchyou can do. So you have access to your hosting panel? There should be a file manager there as well. Contact your host service and they will be able to help you.

    Kind regards!

    Vlad T

    (@vladytimy)

    PS: If you really have to use a browser to edit your .php files (but I would never recommend that), please use Theme Editor & Plugins Editor – built in tools. Those check your code for errors before saving it. But it happened to me to kill a website using those as well – that’s why FTP file editing is recommended. ??

    Thread Starter thetoolman123

    (@thetoolman123)

    Thanks, yes I only have a browser.

    I have managed to get it back with the help of the host.

    I’m guessing if there are errors with other PHP files, I should still be able to get into admin to fix them and it’s mainly functions.php that will kill me

    Vlad T

    (@vladytimy)

    I’m guessing if there are errors with other PHP files, I should still be able to get into admin to fix them and it’s mainly functions.php that will kill me

    Not exactly. An error in any php file will kill it. Not just the ones in functions.php

    I strongly recommend you get FTP access if possible ??

    Thread Starter thetoolman123

    (@thetoolman123)

    I see. I am mainly editing some template files for woocommerce. But I should still be able to get access to wp-admin? I’m sure I have made errors before in PHP files and it’s been ok. Maybe I was wrong

    Vlad T

    (@vladytimy)

    wp-admin access is a separate thing and you need it for the visual things (adding posts, changing settings etc.)

    If you use Appereance > Theme Editor / Plugins > Plugin Editor – those editors check for common errors and will prevent saving eronated php files. Yet, sometime it happens some errors will not be prevented and the file will be saved. It happens. And then you need FTP access.

    As a website developer/mantainer FTP access is very handy.

    Thread Starter thetoolman123

    (@thetoolman123)

    I see.

    I usually use FTP, but with this website I don’t have access so it is a major draw back my side.

    Just to clarify, if I were to make an error in a file, for example in: plugins/woocommerce/templates/file.php – this would not cause an error in the wp-admin side?

    Vlad T

    (@vladytimy)

    Just to clarify, if I were to make an error in a file, for example in: plugins/woocommerce/templates/file.php – this would not cause an error in the wp-admin side?

    If that file is loaded by wp-admin, then it would cause an error. I’m not familiar with WooCommerce templates. If the file only loads on the frontend, then that is the place the error will be.

    Thread Starter thetoolman123

    (@thetoolman123)

    Thanks, yes it would only be the front end.

    I will see if I can get FTP access but I don’t think I will be able to.

    Thanks for your help

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Can’t upload funtions.php file via file manager (without FTP) – admin down’ is closed to new replies.