Home Forums WoodMart support forum Can't Edit Functions.php File

Can't Edit Functions.php File

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #336088

    atpd23
    Participant

    Hello,

    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.
    #336154

    Artem Temos
    Keymaster

    Hello,

    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

    #336254

    atpd23
    Participant

    Hello,

    Thanks for the reply.
    I have disabled all plugins. Please see the login info in the private content.

    Best Regards

    #336330

    Artem Temos
    Keymaster

    Sorry, but we can’t enter your dashboard at the moment https://gyazo.com/2778358b56e335a2c459c527e6f36bb0

    Kind Regards

    #336513

    atpd23
    Participant

    My 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

    #336623

    Artem Temos
    Keymaster

    Hello,

    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

    #336799

    atpd23
    Participant

    Hello,

    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.
    #337083

    Artem Temos
    Keymaster

    Hello,

    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

    #337226

    atpd23
    Participant

    Hello,

    I am sending login credentials for logs inspection.

    Best Regards

    #337344

    Artem Temos
    Keymaster

    Please, specify your FTP host, username, and password. Also, send us a path to the PHP error log file.

    Kind Regards

    #337522

    atpd23
    Participant

    Please 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

    #337637

    Artem Temos
    Keymaster

    Hello,

    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

    #337860

    atpd23
    Participant

    Hello,

    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.
    #337978

    Artem Temos
    Keymaster

    You need to switch to default theme in Appearance -> Themes to see the issue.

Viewing 14 posts - 1 through 14 (of 14 total)