Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Chiming in here too, that this occurs for one of our sites upon logging out of wordpress:

    error was caught (/wp-login.php?action=logout&_wpnonce=1cf71b801c)

    Error Details
    =============
    An error of type E_ERROR was caused in line 271 of the file wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/Url.php. Error message: Uncaught Error: Call to a member function getExternalCode() on null in wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/Url.php:271
    Stack trace:
    #0 wp-content/plugins/weglot/vendor/weglot/weglot-php/src/Util/Url.php(93): Weglot\Util\Url->detectUrlDetails()
    #1 wp-content/plugins/weglot/src/services/class-request-url-service-weglot.php(65): Weglot\Util\Url->__construct('https://www.dif...', NULL, Array, NULL, Array, NULL)
    #2 wp-content/plugins/weglot/src/helpers/class-helper-filter-url-weglot.php(46): WeglotWP\Services\Request_Url_Service_Weglot->create_url_object('https://www.dif...')
    #3 wp-includes/class-wp-hook.php(305): WeglotWP\Helpers\Helper_Filter_Url_Weglot::filter_url_log_redirect('https://www.dif...')
    #4 wp-includes/plugin.php(189): WP_Hook->apply_filters('https://www.dif...', Array)
    #5 /home/dif

    @wordpresswalton it looks like the list array returned from the endpoint in the code may have changed, as it now is [name] => id whereas the code was expecting [id] as the keys.

    Changing the listid in the cf7 config to the list NAME seems to resolve the issue. Not sure why the code is querying for the ids since the user is supposed to supply it but who knows!

    Hope that helps! Changing the listid in config to the name shouldn’t require any code updates, but may need reverted back to the ID if the plugin author releases any code fixes.

Viewing 2 replies - 1 through 2 (of 2 total)