• telanganaemployees2017

    (@telanganaemployees2017)


    today i am trying to add gppgle analytics code in header.php file but i am unable to update my header.php file and getting error

    WordPress 4.9 Error when editing PHP theme files
    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.

    and i lost total my header.php file and reinstalled theme also
    how to solve this problem

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter telanganaemployees2017

    (@telanganaemployees2017)

    and second issue
    after updating http to https i am getting URL Redirects Error

    Your URL performed one redirect! While redirects are typically not advisable (as they can affect search engine indexing issues and adversely affect site loading time), one redirect may be acceptable, particularly if the URL is redirecting from a non-www version to its www version, or vice-versa.

    How to solve this error

    Theme Author Tom

    (@edge22)

    Hi there,

    You’re likely adding some broken PHP into the theme file.

    It’s best to leave the parent files alone completely, as your changes will be lost the next time you update the theme.

    What code are you trying to add? I should be able to give you a better solution.

    As for the redirect issue – how are you adding redirects? Have you checked with your hosting company?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress 4.9 Error when editing PHP theme files’ is closed to new replies.