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
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
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
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

Trying to resize the image in the comments
Hey everyone, Basically I am trying to make the images in the comments smalle...
9 Replies
Posted on Wednesday, 12 August 2009
J5 compatibility for Hotspots
Hi guys, Just started to update my old J3x website. Is there J5 compatibility p...
2 Replies
Posted on Monday, 24 February 2025
  • #Hotspots
  • #hotspots Joomla 5
error message when adding/cofiguring email address
When configuring the email plugin that send a email message to admin when a new ...
0 Replies
Posted on Friday, 09 May 2025
CMigrator: Path from Drupal 6 to J5?
(Category s/b CMigrator, but didn't see it on the list) I'm interested in usi...
0 Replies
Posted on Monday, 28 April 2025
Dowload all Hotspots entries
Hi there, I'm looking for a way to dowload all the Hotspots entries. I've got t...
0 Replies
Posted on Sunday, 06 April 2025
  • #kml
  • #download