DNseo How did you fixed it? I have the same problem.
Thanks!
Hi there,
We just received the notification of the comment of @currix. I don’t know why we missed the first one from @dnseo.
We will have a look into this issue this week. We have not seen this error on any of our installations.
@dnseo: Could you share with us how you solved it?
Best regards from Spain.
Hi there,
We had a look into this issue. Which PHP version are you both running? On PHP 5.6 and newer it should work. Maybe on 5.5 it could show this error.
One solution we found is replacing line 20:
if ( ( empty ( get_option( 'apa_cf7sdomt_pages_with_contact_forms' ) ) ) || ( get_option( 'apa_cf7sdomt_pages_with_contact_forms' ) == false ) ) {
with
if ( !get_option( 'apa_cf7sdomt_pages_with_contact_forms' ) ) || ( get_option( 'apa_cf7sdomt_pages_with_contact_forms' ) == false ) ) {
Could you please look if this works for you?
Best regards from Spain.
-
This reply was modified 8 years, 5 months ago by
apasionados.
Hello,
I am having the exact same error on my site. I replaced the code above and tried to re-activate the plugin. I received the following error:
Parse error: syntax error, unexpected ‘||’ (T_BOOLEAN_OR) in …/cf7-submission-dom-tracking/contact-form-7-s-dom-tracking.php on line 20
Hi richiricheh,
Which PHP versión are you running? We are not able to reproduce the error on our side.
Best regards from Spain.
Hola apasionados!
Same problem here, as @richiricheh. My PHP version es 5.4.4.
BR from Barcelona.
Hi there,
As stated in the plugin data, it requires PHP 5.5.x. Maybe we will add a check so that you can’t actívate it with lower versions.
By the way PHP 5.4.4 was released on 6 June 2012 and is an old release with no development since 3rd September 2015 which is 2,5 years ago. I would switch to a newer version asap. And if you switch you will also get a nice speed improvement. Have a look at: The Definitive PHP 5.6, 7.0, 7.1, 7.2 & HHVM Benchmarks (2018) (not related to us, but a good resource).
Best regards from Spain.
Good to know, I’ll talk with IT to update the server…