PHP error
-
Hi,
Love your plugin, it’s great. But lately, when I’ve tried to generate new content, it showed: Server error. Please check your PHP Error Logs. How can I fix this?
Thanks
-
Hi,
- The issue is when I generate content, it shows a box like this: https://postimg.cc/bGgNvXWt
- Do you mean the PHP Error Logs on the Meow Apps Dashboard? If so, I see nothing there. I also tried to add this code on the wp-config.php. It didn’t work.
// Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 );3. I tried to find the debug on the file, it shows like this:
[01-Aug-2025 04:51:58 UTC] PHP Warning: file_get_contents(/home/happybak/public_html/wp-content/plugins/ai-engine/ai-engine.php): Failed to open stream: No such file or directory in /home/happybak/public_html/wp-includes/functions.php on line 6900
[01-Aug-2025 04:51:58 UTC] PHP Warning: include_once(/home/happybak/public_html/wp-content/plugins/ai-engine/ai-engine.php): Failed to open stream: No such file or directory in /home/happybak/public_html/wp-settings.php on line 545
[01-Aug-2025 04:51:58 UTC] PHP Warning: include_once(): Failed opening ‘/home/happybak/public_html/wp-content/plugins/ai-engine/ai-engine.php’ for inclusion (include_path=’.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php’) in /home/happybak/public_html/wp-settings.php on line 545
[01-Aug-2025 04:51:58 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewp-recipe-makerdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/happybak/public_html/wp-includes/functions.php on line 6121
[01-Aug-2025 04:51:58 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for theupdraftplusdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/happybak/public_html/wp-includes/functions.php on line 6121
[01-Aug-2025 04:52:14 UTC] PHP Deprecated: Creation of dynamic property Meow_MWAI_Query_Text::$env is deprecated in /home/happybak/public_html/wp-content/plugins/ai-engine/classes/services/model-environment.php on line 78
[01-Aug-2025 04:52:14 UTC] PHP Deprecated: Creation of dynamic property Meow_MWAI_Query_Text::$_maxDepthConfigured is deprecated in /home/happybak/public_html/wp-content/plugins/ai-engine/classes/engines/core.php on line 52
[01-Aug-2025 04:52:15 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: int + array in /home/happybak/public_html/wp-content/plugins/ai-engine/classes/services/usage-stats.php:95
Stack trace: 0 /home/happybak/public_html/wp-content/plugins/ai-engine/classes/core.php(743): Meow_MWAI_Services_UsageStats->record_tokens_usage() 1 /home/happybak/public_html/wp-content/plugins/ai-engine/classes/engines/chatml.php(1157): Meow_MWAI_Core->record_tokens_usage() 2 /home/happybak/public_html/wp-content/plugins/ai-engine/classes/engines/chatml.php(1119): Meow_MWAI_Engines_ChatML->handle_tokens_usage() 3 /home/happybak/public_html/wp-content/plugins/ai-engine/classes/engines/core.php(81): Meow_MWAI_Engines_ChatML->run_completion_query() 4 /home/happybak/public_html/wp-content/plugins/ai-engine/classes/engines/chatml.php(714): Meow_MWAI_Engines_Core->run() 5 /home/happybak/public_html/wp-content/plugins/ai-engine/classes/core.php(228): Meow_MWAI_Engines_ChatML->run() 6 /home/happybak/public_html/wp-content/plugins/ai-engine/classes/rest.php(504): Meow_MWAI_Core->run_query() 7 /home/happybak/public_html/wp-includes/rest-api/class-wp-rest-server.php(1292): Meow_MWAI_Rest->rest_ai_completions() 8 /home/happybak/public_html/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request() 9 /home/happybak/public_html/wp-includes/rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch() 10 /home/happybak/public_html/wp-includes/rest-api.php(459): WP_REST_Server->serve_request() 11 /home/happybak/public_html/wp-includes/class-wp-hook.php(324): rest_api_loaded() 12 /home/happybak/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 13 /home/happybak/public_html/wp-includes/plugin.php(565): WP_Hook->do_action() 14 /home/happybak/public_html/wp-includes/class-wp.php(418): do_action_ref_array() 15 /home/happybak/public_html/wp-includes/class-wp.php(818): WP->parse_request() 16 /home/happybak/public_html/wp-includes/functions.php(1342): WP->main() 17 /home/happybak/public_html/wp-blog-header.php(16): wp() 18 /home/happybak/public_html/index.php(17): require(‘/home/happybak/…’) 19 {main}thrown in /home/happybak/public_html/wp-content/plugins/ai-engine/classes/services/usage-stats.php on line 95
Hey @gale13! 👋
Could you please update to AI Engine version 2.9.8? This should resolve the issue. Let us know if you still experience any issue after updating.
Hi, I still cannot generate new content. The PHP error is still there.
Hey @gale13! 👋
Could you please update to version 2.9.9 and, if you’re still experiencing an issue, share your logs again? Since this file has been updated, the error should at least be different if you still encounter one. Thanks!
I’m sorry, the issue is still there, with the same error,
Hi @gale13,
Can you share the latest errors you’re seeing? The only fatal error you had before was already fixed, so if something is still happening, it must be something else.
I also noticed there are tons of messages in your error logs, and they’re not always related to AI Engine. Having those logs active in production can actually cause problems, since they might break asynchronous requests. I’d recommend checking with your hosting service, because it’s not normal to have so many logs. Maybe there’s even a setting on their side that lets you switch to a proper production environment. That would even solve a lot more issues than just this one! 👍
The topic ‘PHP error’ is closed to new replies.