• Resolved digitalpopcorn

    (@digitalpopcorn)


    Any idea?
    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected ‘=’, expecting ‘)’ in /home/xxx/public_html/wp-content/plugins/constant-contact-forms/includes/class-settings.php on line 248

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hello.

    This is an issue that I hope will be addressed in a bugfix release soon. The spot in question uses some PHP syntax that is valid in PHP 5.5, but not 5.4 and under. It’s an easy fix that won’t break anything thankfully.

    If you’re comfortable with editing the file in question while we work out a couple more details, I can show you what was done to get around this and things back in working order.

    Thread Starter digitalpopcorn

    (@digitalpopcorn)

    Yes, I am interested. Is it the plugin file that we would be editing?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Correct, this file specifically:
    /constant-contact-forms/includes/class-settings.php

    On line 248 in that file, you’ll see the following:

    if ( ! empty( $disclosure_info = $this->plugin->api->get_disclosure_info( true ) ) ) {
    

    You will want to change it to:

    $disclosure_info = $this->plugin->api->get_disclosure_info( true );
    if ( ! empty( $disclosure_info ) ) {
    

    Basically assign the variable first, and pass the variable into the empty() statement, instead of assign inline.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Should be taken care of in 1.0.1 as well, now.

    Thread Starter digitalpopcorn

    (@digitalpopcorn)

    Thank you so very much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin could not be activated – Fatal Error’ is closed to new replies.