Conversation
supportHello, After updating my php from 7.4 to 8.1 This issues started happening on plugin page & when updating content: E_ERROR (Line 129) file: /wp-content/plugins/purge-varnish/class_purge_varnish.php. Uncaught TypeError: socket_connect(): Argument #3 ($port) must be of type ?int, string given in /wp-content/plugins/purge-varnish/class_purge_varnish.php:129 Stack trace: #0 /wp-content/plugins/purge-varnish/class_purge_varnish.php(129):
Fixed it by passing intval to $port. (Line: 129 File: class_purge_varnish.php) if (@!socket_connect($client, $server, intval($port))) {
@ Kash , Issue resolved. Please check.
Fixed it by passing intval to $port. (Line: 129 File: class_purge_varnish.php) if (@!socket_connect($client, $server, intval($port))) {
@ Kash , Issue resolved. Please check.