• I am getting an internal 500 error after an update to a theme function.

    I normally only have access via the backend(wp-admin) as this is an amazon instance they set up for me(meaning, I have access via a secure connection but I don’t have s/ftp access in the traditional sense).

    Since all the pages including admin pages are spitting this error I don’t know how to edit the file again(I have tried accessing via wp-login.php / wp-admin directly to no avail).

    I know I can access some files using sudo commands(I use putty), I used this to edit the php.ini file so I must have some level of access, but I am not terribly comfortable with using sudo commands, and I don’t know how to get into a wordpress directory with it.

    How would I use sudo command /terminal to fix the theme file in question
    OR
    how could I get wordpress to load so I can disable the theme and fix the one in question?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You need to edit the file via the file manager in Amazon. You will need to either rename the themes folder name (this will deactivate the theme and switch it to the default Twenty Fifteen theme), or delete the theme are upload the older version into the folder. You can find the theme in the wp-content>themes section in the file manager.

    Thread Starter kbrackson

    (@kbrackson)

    Thank you!
    but
    I don’t have access to file manager other than command line.

    Would you know commands that will get me to a standard install of wp on an amazon instance?

    Why can you not access the file manager???

    Thread Starter kbrackson

    (@kbrackson)

    I am a super user but I don’t have a login to file manager, they gave me an SSH key, and wordpress had already been installed.

    I found wordpress and the files in var/www/html/ (not under ec-2 user)

    I got into the theme directory but when I tried to rename the folder or even just edit the file with the text editor in the terminal I am using, it says permission denied.

    How is that even possible that I cannot write over a file I was able to edit via wp-admin? The wp content folder has 775 permissions.

    I don’t know what to do about this. I have never used Amazon’s hosting service. I would suggest contacting them and seeing what they have to say about the issue.

    Thread Starter kbrackson

    (@kbrackson)

    Thanks for the replies…I have never used Amazon’s service before either. I have tried to contact them and they couldn’t help.

    I still haven’t been able to fix this so I am very worried.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fixing an internal 500 error from corrupted theme file?’ is closed to new replies.