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
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
Are you running PHP with Apache or something else like PHP-FPM?
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.