• Hey team,

    I am having such troubles with uploading media into a post on my website after the new update. It may let me add a few images but then it can not save and returns the JSON error on my WordPress admin dashboard and then crashes my whole front end site with page 502 showing. I then wait approx 20 minutes and my website is back up again.

    I have checked in my host (cloudways) and also Cloudflare and neither can find an issue on their end. I have done a plugin conflict, uped the memory limit value in PHP, checked my htaccess file and Apache permissions, and changed cron job time. Oh and i have also reverted back to just using the classic editor but still the same issues.

    What else could be happening here please, it has only been happening since the last wordpress update and for about 4 days…

    Thanks so much in advance,
    Arlia

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator James Huff

    (@macmanx)

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Thread Starter dwheditor

    (@dwheditor)

    Hi James,

    Thank so much.

    I have already tried the inspecting my plugins and didn’t seem to find any fix.
    I will action the renaming my theme, can you please confirm if I should rename just the main theme directory or and also the child theme directory?

    I did also see these error logs,
    [0x00007f5416e13f70] get_var() /home/240052.cloudwaysapps.com/ggpgscadks/public_html/wp-content/themes/Extra/core/functions.php:1294
    [0x00007f5416e13e30] et_get_attachment_id_by_url() /home/240052.cloudwaysapps.com/ggpgscadks/public_html/wp-content/themes/Extra/includes/builder/functions.php:11140
    [0x00007f5416e13d10] et_builder_responsive_image_metadata() /home/240052.cloudwaysapps.com/ggpgscadks/public_html/wp-content/themes/Extra/includes/builder/functions.php:11256
    [0x00007f5416e13bd0] et_filter_wp_calculate_image_srcset() /home/240052.cloudwaysapps.com/ggpgscadks/public_html/wp-includes/class-wp-hook.php:289

    Moderator James Huff

    (@macmanx)

    Rename the /Extra/ directory to /Extra-broken/

    Thread Starter dwheditor

    (@dwheditor)

    Oh no, that seemed to break my site…
    see what happened here

    Moderator James Huff

    (@macmanx)

    Sorry, rename the child theme’s directory as well.

    Thread Starter dwheditor

    (@dwheditor)

    Thanks James, and just before I do this can I confirm this option is so that my website will use another theme for example twenty twenty? If this is the case could I not just change that in appearance- themes?

    Moderator James Huff

    (@macmanx)

    Oh, you can access Appearance > Themes?

    Well, in that case, just switch to Twenty Twenty there. ??

    Thread Starter dwheditor

    (@dwheditor)

    Oh this option is a little tricky for me, as i dont have a staging site to test this on it would mean my website would be not functioning correctly on the front end for at least 30-1 hour.
    I dont have a staging site as my website size is quite large with over 12,000 images= around 38gb.

    Is there another way to do see if this issue is theme related?

    Moderator James Huff

    (@macmanx)

    Isn’t your site already not functioning correctly?

    Thread Starter dwheditor

    (@dwheditor)

    Not on the front end, and only when i try to add images to a blog post and then try to save it. The rest is working fine until i try that.

    Moderator James Huff

    (@macmanx)

    Ok, if you can install plugins, install Health Check. On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘JSON Error and 502 of front end of website after new update’ is closed to new replies.