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)
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. # 1
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. # 2
Joe Sonne
CComment supporter
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. # 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
Joe Sonne
CComment supporter
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. # 5
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. # 6
Joe Sonne
CComment supporter
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. # 7
  • Page :
  • 1


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

Last questions

Community Builder : category depends on CB Field
Hi, I've made changes on components/com_comprofiler/plugin/user/plug_hotspots...
0 Replies
Posted on Tuesday, 06 June 2023
  • New
  • CMC for Joomla 4?
    Hello administrator I have updated my website to Joomla 4.x few days ago. Unf...
    2 Replies
    Posted on Thursday, 05 May 2022
    CB : hotspots_mapping line not deleted when locati
    Hi, With the Community Builder plugin When I delete a Location (hotspot) c...
    0 Replies
    Posted on Monday, 05 June 2023
  • New
  • Fehler Zahlenformat Veranstaltung erstellen
    ich habe kürzlich Matukio auf unserer Joomla4 Seite komplett runter geworfen, da...
    2 Replies
    Posted on Wednesday, 31 May 2023
  • Resolved
  • Download Pro Version of C Comment
    I have looked all over the site, and I do not see where I can download the Pro v...
    1 Replies
    Posted on Sunday, 28 May 2023
    • #download