502 Bad Gateway when accessing /wp-login

Hi guys can you help me?

I’m having 502 Bad Gateway in accessing our domain when login.
I’ve already update the codes as suggested from chatgpt but still not working thru ftp.

https://ourdomain/wp-admin/ → 502 Bad Gateway

Logs

[08-Oct-2025 03:10:39 UTC] Automatic updates starting…
[08-Oct-2025 03:10:41 UTC] Automatic plugin updates starting…
[08-Oct-2025 03:10:41 UTC] Automatic plugin updates complete.
[08-Oct-2025 03:10:41 UTC] Automatic theme updates starting…
[08-Oct-2025 03:10:41 UTC] Automatic theme updates complete.
[08-Oct-2025 03:10:41 UTC] Automatic updates complete.
[08-Oct-2025 05:47:51 UTC] PHP Warning: Attempt to read property “term_id” on null in /www/domain/public/wp-content/plugins/anywhere-elementor-pro/includes/helper.php on line 595
[08-Oct-2025 05:47:51 UTC] PHP Warning: Attempt to read property “term_id” on null in /www/domain/public/wp-content/plugins/anywhere-elementor-pro/includes/aepro.php on line 408
[08-Oct-2025 05:47:51 UTC] PHP Warning: Attempt to read property “taxonomy” on null in /www/domain/public/wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-taxonomy.php on line 49
[08-Oct-2025 05:47:51 UTC] PHP Warning: Attempt to read property “taxonomy” on null in /www/domain/public/wp-content/plugins/seo-by-rank-math/includes/frontend/paper/class-taxonomy.php on line 54
[08-Oct-2025 05:47:51 UTC] PHP Warning: Attempt to read property “taxonomy” on null in /www/domain/public/wp-content/plugins/seo-by-rank-math/includes/class-term.php on line 110
[08-Oct-2025 05:47:51 UTC] PHP Warning: Attempt to read property “name” on null in /www/domain/public/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php on line 412
[08-Oct-2025 05:47:51 UTC] PHP Fatal error: Uncaught TypeError: ltrim(): Argument #1 ($string) must be of type string, WP_Error given in /www/domain/public/wp-includes/formatting.php:4482
Stack trace:
#0 /www/domain/public/wp-includes/formatting.php(4482): ltrim(Object(WP_Error))
#1 /www/domain/public/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(147): esc_url(Object(WP_Error))
#2 /www/domain/public/wp-content/plugins/seo-by-rank-math/includes/frontend/class-shortcodes.php(73): RankMath\Frontend\Breadcrumbs->get_breadcrumb(Array)
#3 /www/domain/public/wp-includes/shortcodes.php(434): RankMath\Frontend\Shortcodes->breadcrumb(Array, ‘’, ‘rank_math_bread…’)
#4 [internal function]: do_shortcode_tag(Array)
#5 /www/domain/public/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(rank_m…’, ‘do_shortcode_ta…’, ‘[rank_math_brea…’)
#6 /www/domain/public/wp-content/plugins/elementor/includes/widgets/shortcode.php(141): do_shortcode(‘[rank_math_brea…’)
#7 /www/domain/public/wp-content/plugins/elementor/includes/base/controls-stack.php(2374): Elementor\Widget_Shortcode->render()

Hello :waving_hand:

My name is Vladimir.

I don’t see from the logs what is the site in question, but since you are inquiring about wp-admin, I’m assuming this is hosted on Managed WordPress Hosting on Kinsta. As such, you are entitled to use our Support team to help you.

Please open a chat from Mykinsta and the engineer will be there to help :slight_smile:

Kind regards! :waving_hand:

Hi Vladimir, our website hosted in kinsta. I’ve just rename our actual website to ourdomain or domain something. When we access our website it has a 502 Bad Gateway error in accessing the /wp-admin

Thanks for the info i will just contact the support

Hi @fsaaro Arneil!

Thank you for your reply!
I could see that looked like you’ve reached out to our support team (via our chat system) and the issue (502 bad gateway and the fatal error) seems has been resolved already there by 1 of our support engineers! :+1:

Should you need further assistance, please feel free to reach us out again!

Best regards,
Agus Utomo