• Resolved Kash

    (@jdwel)


    Hello,

    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):?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Kash

    (@jdwel)

    Fixed it by passing intval to $port.

    (Line: 129 File: class_purge_varnish.php)
    if (@!socket_connect($client, $server, intval($port))) {

    Plugin Author Dsingh

    (@devavi)

    @Kash, Issue resolved. Please check.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 8 error: socket_connect()’ is closed to new replies.