• Resolved Jeff Daigle

    (@jeff-daigle)


    I’m unable to activate the plugin, because when I try I get this error message:

    Plugin could not be activated because it triggered a fatal error.
    Fatal error: Can’t use function return value in write context in /public_html/wp-content/plugins/post-my-contact-form-7/public/class-cf7-2-post-public.php on line 188

    Hopefully this is a quick fix, there are other similar plugins but I’d rather use this one since it seems to get updated more often and has been tested up to 4.9.1.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jeff Daigle

    (@jeff-daigle)

    Checked back with the client and found that they are still on PHP 5.4(!). Will update and try again.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Hey Jeff,

    thanks for the headsup. The error is rather trivial and indeed due to an older version of php. Line 188 checks for empty() result from a function call, which prior to PHP 5.5 only supports variables.

    Hopefully this is a quick fix […]

    sure it would be but I developed this plugin using PHP 5.6 so I am not sure how many more parts of the code would fail with PHP 5.4 and hence the problem is potentially much bigger.
    You go on to say,

    there are other similar plugins

    I am surprised, could you point out an other plugin that maps cf7 forms to posts? I have used gravity forms and formidable pro, both of which offer similar functionality as a paid extension, but I am not aware of other plugins. Its always good to see what others are doing ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error Prevents Activation’ is closed to new replies.