Support » Plugin: Transcoder » Transcoder errors In php 8

  • Uncaught Error: Undefined constant "INPUT_REQUEST" in /wp-content/plugins/transcoder/inc/helpers/custom-functions.php:32 Stack trace: #0
    
    /wp-content/plugins/transcoder/admin/rt-transcoder-handler.php(1117): transcoder_filter_input() #1
    
    /wp-includes/class-wp-hook.php(292): RT_Transcoder_Handler->handle_callback() #2
    
    #9 {main} thrown in /wp-content/plugins/transcoder/inc/helpers/custom-functions.php on line 32
Viewing 1 replies (of 1 total)
  • Thanks for reporting the issue.

    This issue is happening because INPUT_REQUEST constant has been removed permanently in PHP 8.0 and higher versions.

    Reference: https://bugs.php.net/bug.php?id=54672

    I’ve reported this issue to team and we will release the new version with the fix.

    Meanwhile, as a workaround, you can remove following code from /inc/helpers/custom-functions.php

    if ( INPUT_REQUEST === $type ) {
    		if ( isset( $_POST[ $variable_name ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
    			$type = INPUT_POST;
    		} elseif ( isset( $_GET[ $variable_name ] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    			$type = INPUT_GET;
    		} else {
    			return null;
    		}
    	}

    from transcoder_filter_input function.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.