• Dear Developer’s Team,

    I hope this message finds you well. First, I’d like to thank you for creating such a fantastic plugin! It has been incredibly helpful and provides powerful functionality directly within the Contact Form 7 interface. I truly appreciate the effort and expertise that went into developing it.

    I am reaching out regarding a notice that appears in my site’s PHP error log related to the Contact Form 7 Connector plugin. The message indicates the use of deprecated functionality, specifically:

    WPCF7_TagGenerator::add(): Use of tag generator instances older than version 2 is deprecated.

    This seems to suggest that the plugin is using older methods that are no longer recommended in the latest versions of WordPress or PHP. While this does not currently impact the functionality of my site, I am concerned about future compatibility and would like to ask if there are plans to update the plugin to address this issue.

    I greatly appreciate the functionality your plugin offers and prefer using it due to its direct integration with Contact Form 7. However, resolving this notice would ensure better compatibility and reduce potential risks in the future.

    Thank you for your attention to this matter, and I look forward to your response.

    Best regards,

    Mojca

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter mojcak

    (@mojcak)

    And also this:

    Deprecation Notice: strpos() Function
    Error Log Entry: [23-Nov-2024 17:19:06 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /path-to-website/wp-content/plugins/contact-form-7-connector/includes/class-plugin.php on line 167

    Details:
    The strpos() function is being called with null as the first parameter ($haystack), which is deprecated in PHP 8+. This issue is located in the file class-plugin.php on line 167.

    Suggested Fix:
    Ensure that the parameter passed to strpos() is always a valid string. Implement a check or default value for the $haystack variable before calling strpos().

    Plugin Author arisoft

    (@arisoft)

    Hi

    Sorry for the late response. v. 1.2.7 contains fixed for deprecated PHP warning (related to PHP 8.x).

    About “WPCF7_TagGenerator::add()” error, we can’t reproduce it (checked in CF7 6.0 and 6.0.3). Probably this error from another CF7 plugin? If not, could you provide steps how to reproduce it?

    • This reply was modified 3 months ago by arisoft.
    Qilin

    (@qilin2000)

    Hello there,

    I have installed the latest version of the plugin, but there are still PHP Deprecated messages:

    PHP Deprecated str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in website.com\wp-includes\functions.php on line 2189

    PHP Deprecated strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in website.com\wp-includes\functions.php on line 7300

    And the error messages were gone as soon as I deactivated the plugin, my PHP version is 8.1.31, if I use PHP 8.0.30, no error messages, all work fine.

    Please look into it, thanks!

    Plugin Author arisoft

    (@arisoft)

    Hi

    These warnings are not related to our plugin. wp-includes\functions.php is core file of WordPress.

    Qilin

    (@qilin2000)

    Are you sure? As I said above, once the plugin was deactivated, the warnings were gone, there may be conflicts between the plugin and the wordpress core file.

    Plugin Author arisoft

    (@arisoft)

    Update the plugin to v. 1.2.8 please. It should help.

    Qilin

    (@qilin2000)

    The issue is fixed now. I have tested the newest plugin with PHP 8.0.30, 8.1.31 & 8.2.27, all work fine without warnings. Thank you very much!

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