Home › Forums › WoodMart support forum › Can't Edit Functions.php File
Can't Edit Functions.php File
- This topic has 13 replies, 2 voices, and was last updated 3 years ago by Artem Temos.
-
AuthorPosts
-
December 1, 2021 at 10:33 am #336088
atpd23ParticipantHello,
I am not able to edit functions.php file (in the admin panel, not by FTP). Every time I try to save that file, I get this error message: “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.” Actually, the problem isn’t a wrong code, because it happens if I just click ‘Update’ button.
In this forum, I could see some folks have had similar problems, but without a solution. Therefore I am asking for your help.
I have tried:
1) Follow the instructions on stackoverflow.com, but it suggests to install some plugin, but I don’t want to mess my website with bunch of plugins
2) Test if it’s working with Twenty Twenty-One theme’s functions.php file and it’s working without problems
3) This problem is only on the side of Woodmart and Woodmart Child
4) Deactivate all plugins
For completion, I am running my website on Multisite.
Actually, could I know, if I am running on a Multisite, ‘Theme Editor’ hide for the main site or any sub-site? Now I can see the ‘Theme Editor’ on Multisite -> Appearance -> Theme Editor, but not on the main site or any sub-site. Is that expected behavior?
Best Regards
Attachments:
You must be logged in to view attached files.December 1, 2021 at 12:41 pm #336154
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and provide us your admin access so we can check it?
Thank you in advance
December 1, 2021 at 4:37 pm #336254
atpd23ParticipantHello,
Thanks for the reply.
I have disabled all plugins. Please see the login info in the private content.Best Regards
December 2, 2021 at 7:08 am #336330
Artem TemosKeymasterSorry, but we can’t enter your dashboard at the moment https://gyazo.com/2778358b56e335a2c459c527e6f36bb0
Kind Regards
December 2, 2021 at 4:27 pm #336513
atpd23ParticipantMy mistake, I am sorry. Please try again.
Also I would like to ask you to check adding header borders. It isn’t working for me. In the ‘Header builder’ section I have tried to create my own header or import Woodmart header template, but get the same result, all borders were ignored.
To sum, please check:
1) Why I can’t add code into functions.php file in the case of Woodmart or Woodmart Child (Twenty Twenty-One is working)2) Why header bottom borders are not showing (also if I only import Woodmart header template)
I don’t know if these problems can be caused by multisite or not, because it used to work on my previous non-multisite testing sites.
Best Regards
December 3, 2021 at 7:12 am #336623
Artem TemosKeymasterHello,
We don’t see the “Theme editor” menu item in the dashboard https://gyazo.com/bf2c5fbc23bb60d1e8cacfca9c479174
2. You need to set HTTPS for all your websites in Multisite settings https://gyazo.com/550c6644aa511487665c64f0fb28231d
Kind Regards
December 3, 2021 at 11:17 pm #336799
atpd23ParticipantHello,
1) It seems you weren’t in the Multisite. Please follow the instructions in the attached image.
2) Thanks, now it’s working. Could I know, why HTTPS instead of HTTP had affect to header border?
3) One more question, where was
.page .main-page-wrapper { background-color: rgb(244,243,242); }
added? I can’t see that code and also can’t change background color by Theme Settings -> Styles and colors or in Elementor.Best Regards
Attachments:
You must be logged in to view attached files.December 6, 2021 at 7:02 am #337083
Artem TemosKeymasterHello,
1. It looks like some PHP error when the child theme is active. Please, give us access to your server logs so we can check the error.
2. Because header CSS file can’t be loaded from HTTP when you visit your website via HTTPS.
3. It is set via Theme Settings -> Styles & Colors -> Pages background https://gyazo.com/8055ce111630fac136097a7f52603ff6
Kind Regards
December 6, 2021 at 3:41 pm #337226
atpd23ParticipantHello,
I am sending login credentials for logs inspection.
Best Regards
December 7, 2021 at 7:01 am #337344
Artem TemosKeymasterPlease, specify your FTP host, username, and password. Also, send us a path to the PHP error log file.
Kind Regards
December 7, 2021 at 4:35 pm #337522
atpd23ParticipantPlease see the private content.
Also could I ask you to check, why the code below isn’t working? (I have cleared the cache)
.entry-header .article-body-container { box-shadow: none; text-align: left; padding: 0 25px; }
It should edit blog posts style. You can see that element at the bottom of the page (just above the footer). The code doesn’t affect anything.
Best Regards
December 8, 2021 at 7:12 am #337637
Artem TemosKeymasterHello,
It looks like your general WordPress problem since we can’t save the functions.php when the default theme is active as well https://monosnap.com/file/8uOfaGKagaJg61sQ3OTY1tdjcXA82K
Please, show us on the screenshot what exactly your code is supposed to do and send us a link to the page where do you test it.
Kind Regards
December 8, 2021 at 5:41 pm #337860
atpd23ParticipantHello,
That error is not showing on my side with the default theme. Please see the attached images. I am quite confused what cause this error, I don’t know if it can be caused by Multisite or what can be a problem.
Best Regards
Attachments:
You must be logged in to view attached files.December 9, 2021 at 7:18 am #337978
Artem TemosKeymasterYou need to switch to default theme in Appearance -> Themes to see the issue.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register