Hey are you trying to edit on your theme editor and when you save it or update it you have seen to an error like you may need to manually fix and upload the file over ftp. so, today i have a solution to remove this problem happening when update your editing on theme editor section.
So, i have two ways to solve this problem and both the two ways are very easy and we don’t use any software to solve this problem.
one more thing is that we don’t also not used FTP to solve this problem. we solve it by very easy and modern ways. so before starting you should follow by steps carefully because one wrong steps make your website crack so must be carefully.
so come on the first way to solve it that You may need to manually fix and upload the file over FTP.
By Update Your PHP version.
Yes, guys, you must update your php version. This error happening when your php version of your Cpanel is older or need to up to date so, you should update your php version on your website and you should set the latest PHP version that is 7.3.
Sometimes when your PHP version is outdated then some php modules or coding not work on your WordPress site and you know that the WordPress site is fully depended on php code. so we always use latest PHP version. php 7.3 is the latest version of PHP.
If you want to know that How to update your php version then check out this link.
NOTE :- This is the 50-50% working mehtod but second method is 100% working so, must apply or use second method that i will tell after the first method
Now When you update your php version then i bet with you that your problem must be solved. And if this trick not work then you need to apply second trick which are given below.
By Using File Manager Of CPANEL
In this method you need to login in your cpanel account. You can also solve your problem by using your cpanel. so in this way i will tell you steps by steps. so follow it carefully.
- Steps 1. After log in cpanel account, open file manager in cpanel like below image.
- Steps 3. Now search WP content folder and open the folder like below images.
- Steps 4. In this folder you find three or more folder present in it simply click on WP Theme Option and click on your present active theme of your wordpress theme.
I use newspaper theme then i click on newspaper option similarly choose your active theme of your wordpress site and click on it.
- Steps 5. Now you see many of php file simply edit your php file that you want by clicking left button of your mouse and click on edit option.
So, This is the second method that i told with you and it is 100% working method.so must try it once. i hope this two method will solve your problem if you still have any doubt must ask me in comment box.