however, I want to mention that this register_rest_route notice might be irrelevant, and the real cause of the server error might be elsewhere. I just wanted to provide all the information I found during troubleshooting.
-
This reply was modified 8 months, 3 weeks ago by
samicai.
-
This reply was modified 8 months, 3 weeks ago by
samicai.
Hey @samicai! 👋
We are not aware of any incompatibility with Events Calendar. When you receive a “Server Error” message, make sure to check your network inspector and PHP error log to find the root of the issue, without this information, it can be hard to pinpoint the exact cause.
Also, the messages you’re seeing are not actual errors but warnings intended for developers about best practices when declaring REST routes in the plugin code. You can safely ignore these messages, as they won’t impact your use of the plugin.
Hey @valwa ,
Thank you for your quick and helpful reply!
You are absolutely right — the REST route warnings are not critical errors, and they can safely be ignored.
After deeper investigation, I checked the PHP error logs as you suggested, and I found the real cause.
It seems the issue is indeed related to a conflict with The Events Calendar plugin when trying to post generated content via the AI Engine “Content Generator”.
From what I can see, the error is triggered at the posting stage, not during the generation of the content itself.
2025-04-28 14:15:24 Error 500 POST /wp-json/mwai/v1/helpers/create_post HTTP/2.0 https://amigamaker.com/wp-admin/edit.php?page=mwai_content_generator Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 285 nginx SSL/TLS access
2025-04-28 14:15:24 Error 3194786#0: *52441 open() "/var/www/vhosts/amigamaker.com/httpdocs/wp-json/mwai/v1/helpers/create_post" failed (2: No such file or directory) nginx error
2025-04-28 14:15:24 Error 3194786#0: *52441 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: TEC\Events\Calendar_Embeds\Calendar_Embeds::disable_slug_changes(): Argument #3 ($unsafe_post_array) must be of type array, stdClass given, called in /var/www/vhosts/amigamaker.com/httpdocs/wp-includes/class-wp-hook.php on line 324 and defined in /var/www/vhosts/amigamaker.com/httpdocs/wp-content/plugins/the-events-calendar/src/Events/Calendar_Embeds/Calendar_Embeds.php:163
Stack trace:
#0 /var/www/vhosts/amigamaker.com/httpdocs/wp-includes/class-wp-hook.php(324): TEC\Events\Calendar_Embeds\Calendar_Embeds->disable_slug_changes()
#1 /var/www/vhosts/amigamaker.com/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /var/www/vhosts/amigamaker.com/httpdocs/wp-includes/post.php(4811): apply_filters()
#3 /var/www/vhosts/amigamaker.com/httpdocs/wp-content/plugins/ai-engine/classes/rest.php(512): wp_insert_post()
#4 /var/www/vhosts/amigamaker.com/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1292): Meow_MWAI_Rest->rest_helpers_create_post()
#5 /var/www/vhosts/amigamaker" while reading response header from upstream nginx error
2025-04-28 14:15:26 Error 3194786#0: *52551 "/var/www/vhosts/amigamaker.com/httpdocs/events/photo/2025-03-31/page/2/index.html" is not found (2: No such file or directory) nginx error
2025-04-28 14:15:31 Error 404 GET /events/photo/2025-03-31/page/2/?eventDisplay=past HTTP/1.1 https://amigamaker.com/events/photo/2025-03-31/page/2/?eventDisplay=past Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot) 138 K nginx SSL/TLS access
I hope the attached logs will help you pinpoint the interaction issue more precisely.
Out of curiosity, have you tried running both AI Engine and The Events Calendar plugins together on your end to see if you can reproduce the issue?
-
This reply was modified 8 months, 3 weeks ago by
samicai.
Hey@valwa ,
Thank you for your quick and helpful reply!
You are right — the REST route warnings are not critical errors, and they can safely be ignored.
After deeper investigation, I checked the PHP error logs as you suggested, and I found the real cause.
It seems the issue is indeed related to a conflict with The Events Calendar plugin when trying to post generated content via the AI Engine “Content Generator”.
From what I can see, the error is triggered at the posting stage, not during the generation of the content itself.
2025-04-28 14:15:24 Error 500 POST /wp-json/mwai/v1/helpers/create_post HTTP/2.0 https://amigamaker.com/wp-admin/edit.php?page=mwai_content_generator Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 285 nginx SSL/TLS access
2025-04-28 14:15:24 Error 3194786#0: *52441 open() "/var/www/vhosts/amigamaker.com/httpdocs/wp-json/mwai/v1/helpers/create_post" failed (2: No such file or directory) nginx error
2025-04-28 14:15:24 Error 3194786#0: *52441 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: TEC\Events\Calendar_Embeds\Calendar_Embeds::disable_slug_changes(): Argument #3 ($unsafe_post_array) must be of type array, stdClass given, called in /var/www/vhosts/amigamaker.com/httpdocs/wp-includes/class-wp-hook.php on line 324 and defined in /var/www/vhosts/amigamaker.com/httpdocs/wp-content/plugins/the-events-calendar/src/Events/Calendar_Embeds/Calendar_Embeds.php:163
Stack trace:
#0 /var/www/vhosts/amigamaker.com/httpdocs/wp-includes/class-wp-hook.php(324): TEC\Events\Calendar_Embeds\Calendar_Embeds->disable_slug_changes()
#1 /var/www/vhosts/amigamaker.com/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /var/www/vhosts/amigamaker.com/httpdocs/wp-includes/post.php(4811): apply_filters()
#3 /var/www/vhosts/amigamaker.com/httpdocs/wp-content/plugins/ai-engine/classes/rest.php(512): wp_insert_post()
#4 /var/www/vhosts/amigamaker.com/httpdocs/wp-includes/rest-api/class-wp-rest-server.php(1292): Meow_MWAI_Rest->rest_helpers_create_post()
#5 /var/www/vhosts/amigamaker" while reading response header from upstream nginx error
2025-04-28 14:15:26 Error 3194786#0: *52551 "/var/www/vhosts/amigamaker.com/httpdocs/events/photo/2025-03-31/page/2/index.html" is not found (2: No such file or directory) nginx error
2025-04-28 14:15:31 Error 404 GET /events/photo/2025-03-31/page/2/?eventDisplay=past HTTP/1.1 https://amigamaker.com/events/photo/2025-03-31/page/2/?eventDisplay=past Mozilla/5.0 (Linux; Android 7.0;) AppleWebKit/537.36 (KHTML, like Gecko) Mobile Safari/537.36 (compatible; PetalBot;+https://webmaster.petalsearch.com/site/petalbot) 138 K nginx SSL/TLS access
Out of curiosity, have you tried running both AI Engine and The Events Calendar plugins together on your end to see if you can reproduce the issue?