1. Joe Sonne
  2. Bugs
  3. Monday, 15 August 2016
  4.  Subscribe via email
Hi there,
I get a fatal error on a Joomla 3.6.2 site when switched to PHP7.
Here's the error:

KExceptionError | Fatal Error

Function name must be a string
.../templates/purity_iii/html/mod_cmc/default.php:76
71 {
72 foreach ($fields as $f)
73 {
74 $field = explode(';', $f);
75 echo '<div class="control-group">';
76 echo $form->$field[1]($field);
77 echo '</div>';
78 }
79 }
80
81 if (is_array($interests))


I've been told that Line 76: "echo $form->$field[1]($field);" is not valid in PHP7 and is generating an error as our build in debugger shows. This line needs to be fixed and be made compatible with PHP7.

I'm not a PHP guy so I am only going on information forwarded to me by another developer.

Would changing this one line and making it valid in PHP7 give me the ability to run the site in PHP7?

The site runs fine in PHP5.5.

Is this a simple change?

Best regards,
Joe Sonne
Responses (7)
Accepted Answer Pending Moderation
Much thanks for your replies Daniel.
And also thanks for a great component and module!
  1. more than a month ago
  2. Bugs
  3. # 1
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
yep, it's an override, not done by us and I can't guarantee that it works on PHP7
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 2
Accepted Answer Pending Moderation
Thanks Daniel,

I've updated to version 3 now.

So I should also completely remove the html/mod_cmc folder from the template?

Joe
  1. more than a month ago
  2. Bugs
  3. # 3
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
try again please. It should work now.
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 4
Accepted Answer Pending Moderation
Hi Daniel,

My CMC Mailchimp is at version 2.

I just tried to download version 3 from the downloads page and the download link gives me a 404.

Best regards,

Joe
  1. more than a month ago
  2. Bugs
  3. # 5
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
and this here is actually a template override. Make sure to use v3 and remove the override to be sure that the extension works with php7
.../templates/purity_iii/html/mod_cmc/default.php:76
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 6
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
Is this CMC v3 now?
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. Bugs
  3. # 7
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Last questions

Errror on Google Captcha V3 in Matukio
Hi, I am experiencing spam-problems on contact-forms protected by google reCa...
0 Replies
Posted on Wednesday, 20 March 2024
  • New
  • Google map styles migrating......
    Google are updating their map styles. Is there anything we need to do to migrate...
    0 Replies
    Posted on Monday, 18 March 2024
    • #google maps
    • #map styles
    Latest Hotspots Makes Website Hang
    When using the Latest Hotspot module, the webpage slows down and does not load....
    3 Replies
    Posted on Monday, 15 January 2024
    Text ändern
    Hallo in der Übersicht der Veranstaltungen kann man ja auf "Mehr Informati...
    0 Replies
    Posted on Thursday, 14 March 2024
    When is CComment compatible with Joomla 5?
    When is CComment compatible with Joomla 5?...
    3 Replies
    Posted on Tuesday, 05 December 2023
    • #CComment
    • #Joomla 5