Support » Plugin: Redirection for Contact Form 7 » Need Update For PHP 8

  • Please update the plugin with latest PHP 8 version, it create a lot of notices for deprecation and sometime fatal. I am looking forward to this update. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • In 8.0 I attempted a quick change and it worked.

    For example, in wp-content\plugins\wpcf7-redirect\classes\class-wpcf7r-leads-manager.php change line 352
    public static function insert_lead( $cf7_form_id, $args, $files = array(), $lead_type, $action_id ) {
    for
    public static function insert_lead( $cf7_form_id, $args, $lead_type, $action_id, $files = array() ) {

    If you can’t wait for the next version, you can try to fix the files this way. I didn’t test this changes, but Deprecation messages were gone.

    Thread Starter Tanjot Singh

    (@tjomak)

    It may have fixed deprecation messages for you, but did you think that you just shifted the 3rd param to 5th param in your fix. It may lead to some unknown error as somewhere 3rd param value passed something else. You should check it and there are many other deprecation messages instead of this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need Update For PHP 8’ is closed to new replies.