Uncaught Type Error
-
Has anyone came across this error before? The media replace does appear to work, however there is an error given in the admin screen. When i search the error logs I find the below:
2024/09/02 08:58:46 [error] 6104#6104: *3143447 FastCGI sent in stderr: “PHP message: PHP Fatal error:? Uncaught TypeError: mysqli::real_connect(): Argument #5 ($port) must be of type ?int, string given in ../web/wp/wp-includes/class-wpdb.php:2349Stack trace:
#0 [internal function]: mysqli->real_connect()
#1 ../web/releases/20240219103528/web/wp/wp-includes/class-wpdb.php(2349): mysqli_query()
#2 ../web/releases/20240219103528/web/wp/wp-includes/class-wpdb.php(2263): wpdb->_do_query()
#3../web/releases/20240219103528/web/wp/wp-includes/class-wpdb.php(3146): wpdb->query()
#4 /../web/app/plugins/enable-media-replace/build/shortpixel/replacer/src/Replacer.php(280): wpdb->get_results()
#5 ../web/app/plugins/enable-media-replace/build/shortpixel/replacer/src/Replacer.php(240): EnableMediaReplace\Replacer\Replacer->handleMetaData()
#6 /home/szdev/site” while reading upstream, client: 10.0.61.2, server: www2.site.ie, request: “POST /wp/wp-admin/upload.php?page=enable-media-replace/enable-media-replace.php&action=media_replace_upload&attachment_id=16355&_wpnonce=ff580a8064 HTTP/1.1”, upstream: “fastcgi://unix:/run/php/szdev8.0-fpm.sock:”, host: “www.site.ie”, referrer: “https://www.site.ie/wp/wp-admin/upload.php?page=enable-media-replace%2Fenable-media-replace.php&action=media_replace&attachment_id=16355&_wpnonce=ff580a8064”
- You must be logged in to reply to this topic.