• Resolved akinschris

    (@akinschris)


    I’m getting the follow message when attempting to activate.

    I had to disable the plugin via the website to get back into it.

    Parse error: syntax error, unexpected ‘)’, expecting ‘&’ or T_VARIABLE in /public_html/wp-content/plugins/custom-contact-forms/classes/class-ccf-form-manager.php on line 774.

    Any ideas?

    https://ww.wp.xz.cn/plugins/custom-contact-forms/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Taylor Lovett

    (@tlovett1)

    Did you try reuploading and reactivating the plugin?

    Hello,

    On our local system, the update to 6.2 from 5.1.0.1 went fine, but on the remote server we are having the same error as akinschris, when updating via WordPress admin, or by loading the plugin folder by ftp. The plugin installs, but gives this error on attempted activation:

    Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /——/———-/wordpress2/wp-content/plugins/custom-contact-forms/classes/class-ccf-form-manager.php on line 811

    We have tried restoring the original version and re-updating twice, but still get the same error.

    I’m wondering if the database update was not triggered. Do you know what we might try next. We don’t want to lose our contact form data.

    Regards,
    Shannon

    Plugin Author Taylor Lovett

    (@tlovett1)

    What PHP version are you running?

    Thank you for the quick response.

    We are running 5.3.13 on the server where we were not able to update.

    We just loaded it on another server, running 5.3.29, and had no problem. We were prompted to update the database, and all went well. We also updated the contact form plugin first, after updating the theme, then updated the other plugins.

    What do you think?

    Regards,
    Shannon

    Plugin Author Taylor Lovett

    (@tlovett1)

    Are you running PHP with Apache or something else like PHP-FPM?

    Both are Apache.

    steffan

    (@steffanbakergmailcom)

    I get the same problem. I have the following versions on server.

    PHP Version 5.3.3 centos 6.6 Apache/2.2.15

    I get this message when activating

    Parse error: syntax error, unexpected ‘)’, expecting ‘&’ or T_VARIABLE in /var/zpanel/hostdata/zadmin/public_html/thevipclientexecutive_co_uk/wp-content/plugins/custom-contact-forms/classes/class-ccf-form-manager.php on line 811

    I have removed plugin from database. Please advise.

    I’m seeing the same error as @steffan on a client’s site.

    I sorted this out for my client. Their ISP had asp_tags turned on in the php.ini. That resulted in the JS template code in the class-ccf-form-manager.php being parsed as PHP.

    Since I turned off asp_tags, everything looks like it’s working.

    Thank you very much for posting your solution bookwyrm! That worked for us, and we were able to update the plugin.

    In our shared hosting account admin, we edited the php.ini, and set asp_tabs: Off.

    Plugin Author Taylor Lovett

    (@tlovett1)

    This is fixed in 6.3.2

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Fatal Error’ is closed to new replies.