• I tried increasing my PHP via wp-config and now my website is broken with 500 error. I tried changing it back but the text I added disappeared and now I don’t know how to fix. Please help!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Anonymous User 20287723

    (@anonymized-20287723)

    Hi @gryphonhalley

    I’m curious – what did you type into your wp-config to “increase the PHP”

    Have you cleared your server caches?

    Finally and probably utmost – I recommend you contact your hosting service because they could clear this up quickly for you.

    Thread Starter gryphonhalley

    (@gryphonhalley)

    Hey @sagehen I added the following

    (‘WP_MEMORY_LIMIT’, ‘256M’);

    On the very top of the wp-config file which I realize is where my error is. However, when I went back to edit it, it’s gone. So I am unsure how to proceed.

    Will my hosting provider know how to fix this without me knowing exactly what I messed up? I just reached out to them.

    I did clear my cache and this did not work.

    Anonymous User 20287723

    (@anonymized-20287723)

    Yes, they in most cases would fix that handily for you, as would your WP developer. Most hosts will do a few small “oopsy” repairs for a customer, gratis.

    FWIW the code you added to a wp-config.php file needed to go after the opening <?php tag, and needed to include the word define() before the opening bracket, e.g.

    define('WP_MEMORY_LIMIT', '256M');

    Also, most servers don’t like curly quotes and can choke on them. I changed those for straight quotes in my code example here.

    Anonymous User 20287723

    (@anonymized-20287723)

    If that code is gone and your site is working, carry on. Hosts and WP core have ways of self-repairing broken config files. Maybe even try re-adding the correct code I just posting, after the opening php tag…. actually, even lower toward the bottom, where the config file suggests where people add their code.

    Thread Starter gryphonhalley

    (@gryphonhalley)

    @sagehen Unfortunatley this didn’t work. I noticed some additional text under the ‘stop editing here’ tag that I never noticed before. I tried deleting it and adding the text to the area you’ve mentioned to no avail. I have opened a ticket with my hosting provider. I do not have a developer unfortunately so I have to figure this out on my own.

    Anonymous User 20287723

    (@anonymized-20287723)

    @gryphonhalley Yeah, especially without knowing what you’re seeing or typing, it’s impossible to help you here. It’s just a “chat” about “stuff.” Asking for pro help is wise. Editing below where it says not to edit… not so sure 😉

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Tried increasing PHP with wp-config and now I am getting error 500’ is closed to new replies.