Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I had a similar error using ThemeREX Addons plugin. There is an incompatibility, I guess since WordPress 6.2. I managed to hot-fix it editing:
    wp-content/plugins/trx_addons/components/api/gutenberg/blocks/dist/blocks.build.js:

    • Replaced all wp.components.ServerSideRender with wp.serverSideRender
    • Replaced all wp.editor.InspectorControls with wp.blockEditor.InspectorControls
    • This reply was modified 1 year, 4 months ago by JosefStepanek. Reason: Specified my case
    • This reply was modified 1 year, 4 months ago by JosefStepanek.

    From error log:
    Fatal error: Call to undefined function filter_var()

    Hi,

    I just found a solution for that blank page after clicking on Authorize New Account.

    There was a problem with the send_authed_request() in lib/wp-twitter.php.

    If you comment the “if ( ! filter_var…” condition, as shown below, the authorization should pass ok.

    public function send_authed_request( $request_url, $method, $body_parameters = array() ) {
    		$parameters = $this->_get_request_defaults();
    		$parameters['body'] = wp_parse_args( $body_parameters, $parameters['body'] );
    
    		//if ( ! filter_var( $request_url , FILTER_VALIDATE_URL ) )
    			$request_url = self::get_api_endpoint( $request_url );
    
    		$this->sign_request( $parameters, $request_url );
Viewing 3 replies - 1 through 3 (of 3 total)