error:FastCGI sent in stderr: “PHP message: PHP Warning:
-
2023/07/05 10:34:37 [error] 18506#18506: *2930 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406; PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "GET /wp-json/media-file-renamer/v1/media?limit=100&skip=0&filterBy=unlocked&orderBy=id&order=asc&search= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?page=mfrh_dashboard"Hello,
Could you fix?
-
Hi,
I could fix this, and avoid the error, but not having this file in the metadata means that your media entry is basically broken. Does this happen with every media entry?
Hello,
Some errors happens when accessing the Media File Renamer | Dashboard, and some happen when click pagenation, and some happens when bulk rename the images, for your debug purpose, Here are full debug errors for refereance.
Some images are from photo reviews by the plugin at https://ww.wp.xz.cn/plugins/woo-photo-reviews/, but quite sure the images exist:
2023/07/11 01:30:03 [error] 17631#17631: *78726 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406; PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "GET /wp-json/media-file-renamer/v1/media?limit=25&skip=0&filterBy=unlocked&orderBy=id&order=asc&search= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?page=mfrh_dashboard" 2023/07/11 01:30:42 [error] 17631#17631: *78729 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "GET /wp-json/media-file-renamer/v1/media?limit=25&skip=50&filterBy=unlocked&orderBy=id&order=asc&search= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-two-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?page=mfrh_dashboard" 2023/07/11 01:31:12 [error] 17629#17629: *78738 FastCGI sent in stderr: "PHP message: WordPress database error Unknown column 'meta_value' in 'field list' for query UPDATE wp_posts SET meta_value = '2023/07/mysite99385and1798498a5efaedd3bc734c178481b8143dd57d4ew.jpg' WHERE ID IN ('1853232') made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Meow_MFRH_Rest->rest_rename, Meow_MFRH_Core->rename, Meow_MFRH_Core->call_post_actions, Meow_MFRH_Core->call_hooks_rename_url, do_action('mfrh_url_renamed'), WP_Hook->do_action, WP_Hook->apply_filters, Meow_MFRH_Updates->action_update_postmeta" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "POST /wp-json/media-file-renamer/v1/rename HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?page=mfrh_dashboard" 2023/07/11 01:31:19 [error] 17629#17629: *78738 FastCGI sent in stderr: "PHP message: WordPress database error Unknown column 'meta_value' in 'field list' for query UPDATE wp_posts SET meta_value = '2023/07/mysite99385and1798498a4ffef6732b1440238f3cdc765ef8c5ack.jpg' WHERE ID IN ('1853231') made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, Meow_MFRH_Rest->rest_rename, Meow_MFRH_Core->rename, Meow_MFRH_Core->call_post_actions, Meow_MFRH_Core->call_hooks_rename_url, do_action('mfrh_url_renamed'), WP_Hook->do_action, WP_Hook->apply_filters, Meow_MFRH_Updates->action_update_postmeta" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "POST /wp-json/media-file-renamer/v1/rename HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-two-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?page=mfrh_dashboard" 2023/07/11 01:31:37 [error] 17629#17629: *78738 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "POST /wp-json/media-file-renamer/v1/rename HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-two-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?page=mfrh_dashboard" 2023/07/11 01:33:56 [error] 17629#17629: *78738 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "GET /wp-json/media-file-renamer/v1/media?limit=25&skip=50&filterBy=unlocked&orderBy=id&order=asc&search= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-two-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?page=mfrh_dashboard" 2023/07/11 01:35:00 [error] 17632#17632: *79008 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406; PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "GET /wp-json/media-file-renamer/v1/media?limit=25&skip=75&filterBy=unlocked&orderBy=id&order=asc&search= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-two-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?page=mfrh_dashboard" 2023/07/11 01:37:16 [error] 17632#17632: *79022 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "POST /wp-json/media-file-renamer/v1/rename HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?page=mfrh_dashboard" 2023/07/11 01:37:17 [error] 17632#17632: *79022 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "POST /wp-json/media-file-renamer/v1/rename HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-two-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?page=mfrh_dashboard" 2023/07/11 01:37:26 [error] 17632#17632: *79022 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406; PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "GET /wp-json/media-file-renamer/v1/media?limit=25&skip=75&filterBy=unlocked&orderBy=id&order=asc&search= HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-two-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?page=mfrh_dashboard"Thanks
Errors also happens when access wordpress media library:
2023/07/11 01:48:36 [error] 17629#17629: *79393 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "POST /wp-json/media-file-renamer/v1/analyze HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php" 2023/07/11 01:48:48 [error] 17629#17629: *79393 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "POST /wp-json/media-file-renamer/v1/analyze HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-two-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php" 2023/07/11 01:49:18 [error] 17629#17629: *79393 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "POST /wp-json/media-file-renamer/v1/analyze HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?paged=2" 2023/07/11 01:49:34 [error] 17629#17629: *79393 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "POST /wp-json/media-file-renamer/v1/analyze HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-two-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?paged=2" 2023/07/11 01:49:35 [error] 17629#17629: *79393 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "file" in /var/www/mysite.com/htdocs/wp-content/plugins/media-file-renamer-pro/classes/rest.php on line 406" while reading response header from upstream, client: 24.199.120.100, server: mysite.com, request: "POST /wp-json/media-file-renamer/v1/analyze HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php82-fpm.sock:", host: "mysite.com", referrer: "https://mysite.com/wp-admin/upload.php?paged=2"I will release a new version soon, and when there is no metadata, I will use an alternative way to get the data I need.
Note: I still don’t know why this would happen, but it’s not an issue on Media File Renamer side. Normally, Media entries always have metadata. That said, plugins can’t do whatever they like 🙂
Sorry for missing this message.
Any plan to release the new version?
By the way, it would be great if there is a status showing up when running:
wp media-file-renamer rename_all –allow-root
Otherwise, there will be nothing showing up if there are 20g images on server to be renamed, and please check the screenshot to understand what I mean:
https://prnt.sc/kASeLztgU31HThanks
The topic ‘error:FastCGI sent in stderr: “PHP message: PHP Warning:’ is closed to new replies.