By Guest on Tuesday, 24 May 2016
Replies 7
Likes 0
Views 2.5K
Votes 0
Hi...

When moving the site to PHP 7 I get the following error in the calendar module...

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; modJeventsCalHelper has a deprecated constructor in /home/xxx/public_html/cms3/modules/mod_jevents_cal/helper.php on line 15

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; DefaultModCalView has a deprecated constructor in /home/xxx/public_html/cms3/modules/mod_jevents_cal/tmpl/default/calendar.php on line 14

Thought you may need to know.

Gordon
Thanks for the update - we are removing these old style constructors. In the meantime you should disable error reporting in your Joomla config.
·
Tuesday, 24 May 2016 08:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Geraint...
Happy to help. You still have a great calendar and have done for many years. I always leave errors on, so I rolled the site back to PHP 5.5.
·
Wednesday, 25 May 2016 00:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You really shouldn't leave errors on a production site. This is a security issue for one and also not good for your users to see.

Many thanks
Tony
·
Wednesday, 25 May 2016 00:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Curious to how PHP 7 is coming.... any predictions on time frame?
Thanks!
·
Wednesday, 08 June 2016 15:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Jevents works fine with PHP 7 - you may get some strict notices about deprecated functions (which be eliminated in the next couple of releases) but these will not appear unless you have maximum error reporting enabled.
·
Wednesday, 08 June 2016 16:06
·
0 Likes
·
0 Votes
·
0 Comments
·
If I have errors set to system default I get these, which are what you are referring too.... of course turning errors off nothing is displayed.
Set on simple and none are displayed either.


Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; jevFilter has a deprecated constructor in mysiteinfo/components/com_jevents/libraries/filters.php on line 261

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; jevBooleanFilter has a deprecated constructor in mysiteinfo/components/com_jevents/libraries/filters.php on line 420

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; jevTitleFilter has a deprecated constructor in mysiteinfo/components/com_jevents/libraries/filters.php on line 455

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AlternativeBuildMonthSelect has a deprecated constructor in mysiteinfo/components/com_jevents/views/alternative/helpers/alternativebuildmonthselect.php on line 4
·
Wednesday, 08 June 2016 18:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

These are PHP Developer notices for future version of PHP your host really shouldn't have these on by default. If this is a production site set the error reporting to none.

Many thanks
Tony
·
Wednesday, 08 June 2016 20:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post