• Hi, I am using a Twenty Seventeen child theme. Recently my site became very slow loading. I checked all the obvious, plugins, cache etc and contacted my host who said it is not their fault but a script problem. After much reading and looking for solutions online I found how to repair and optimize my site by adding define(‘WP_ALLOW_REPAIR’, true); to the wp-config.php.

    I have found and opened this with notepad but do not know exactly where to place it and also, being fairly new coding, I do not know if it needs anything around it like /**define(‘WP_ALLOW_REPAIR’, true); */

    I have backed up my site and thought i’d try this first. (The slow loading could be due to needing to update from PHP5.4 to PHP7, I know I need to as my host no longer supports PHP5.4 and I am now paying them extra to support it).

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I don’t think that will fix it. By scripting issue your hosting providers meant it is a JavaScript problem, not something that can be fixed by optimising the database.

    Try deactivating all of your plugins to explore whether any could be responsible. If none are, keep all plugins deactivated and switch to the Twenty Seventeen theme to check whether it’s an issue with your Child Theme.

    Thread Starter Jane Milburn

    (@jane-milburn)

    Hi Andrew, thank you for your advice.

    I had checked the plugins, the site was loading in nearly 10 seconds, when I deactivated Jetpack it was loading at around 7 seconds. I then cleared up my CSS and reduced the size of all images on the site and now the site loads very quickly ??

    Against your advice I used an optimizing plugin, i’m not sure if this helped but now I have a WordPress error on a linked page Non-existent changeset UUID. Oddly this only happens on my mobile but other people have told me they can see the error on all of their devices. Also my permalinks have changed whereas the home page was https://www.stuartist.com it is now https://www.stuartist.com/?customize_changeset_uuid=daf415cd-0c03-4f3a-8c8a-6018db701c77&customize_autosaved=on
    This only happens in the browser and not on my pages withing the dashboard.

    I followed advice online which said to double check that in General settings both URL’s are the same for WordPress and the site, they are exactly the same. People also mention they only see this error in customize and I do not.

    I was wondering if turning off Autosave would help although I would apparently need to add code to wp-config.php which I do not feel comfortable doing.

    Have you any solutions please?

    Thread Starter Jane Milburn

    (@jane-milburn)

    The problem has been solved. It seems with reducing image sizes, clearing up my CSS, removing plugins, running W3 Super Cache and WP-Optimize plugins, all is working fine and loading fast.

    The other problem I had with a WordPress error on a linked page Non-existent changeset UUID has also been solved. When I looked at my links addresses in the text widget, they were very odd, looking a bit like the above url with the changeset uuid in it. I removed them and re-typed the correct link address. Now all is fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to edit wp-config.php’ is closed to new replies.