- Posts: 1
COMMUNITY FORUM
SIG and PHP7: Deprected
- Michael Nickel
- Topic Author
- Offline
- New Member
after switching to PHP7, I got "Deprected" errors for Allvideos and Simple Image Gallery. For AllVideos the Dev version handles this issue, however for SIG, the error still remains:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJw_sig has a deprecated constructor in /homepages/25/d27154510/htdocs/santosha-yoga/cms/33/plugins/content/jw_sig/jw_sig.php on line 18
Any solution to that?
Joomla 3.6.5
PHP 7.0.17
Thank you for your efforts
Michael
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
Which version of Sig are you using?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Jan Korshavn
- Offline
- New Member
- Posts: 1
best rgds,
Jan Korshavn
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- FERRE
- Offline
- New Member
- Posts: 4
i had the same problem than Mickael and yan....my site is now running on Joomla 3.7 and php7
I tried the dev version found on the github and the problem of deprecated message still remains with SIG , for "allvideos" it disappears.
Loading the dev version on the gitub with SIG result in installing SIG 3.0.1 which is the same version than previously.
It doesn't work, the deprecated message is always here.
Can we hope an evolution of the plugin?
Thank you for all
jeanluc.ferre
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJw_sig has a deprecated constructor in D:\xampp-chatelaudren\htdocs\joomla-chatelaudren-1\plugins\content\jw_sig\jw_sig.php on line 18
Please Log in or Create an account to join the conversation.
- David Imerovic
- Offline
- New Member
I believe that at JoomlaWorks already working on the solution so, I just want to post that problem probably will occur with many updated sites as
this plugin is very popular.
Best regards
David
Please Log in or Create an account to join the conversation.
- Jean de Bosset
- Offline
- New Member
- Posts: 1
find your file at : ../plugins/content/jw_sig
edit the jw_sig.php file and replace the "function plgContentJw_sig(" by * function __construct(
// JDB - remplacement de plgContentJw_sig par __construct
function __construct( &$subject, $params ){
parent::__construct( $subject, $params );
So you get rid of the message until it gets corrected!
Please Log in or Create an account to join the conversation.
- Don Porter
- Offline
- New Member
- Posts: 2
I commented out the 3 lines with // then inserted the 3 lines JDP provided. The result looks like this:
// function plgContentJw_sigpro(&$subject, $params)
// {
// parent::__construct($subject, $params);
// JDB - remplacement de plgContentJw_sig par __construct
function __construct( &$subject, $params ){
parent::__construct( $subject, $params );
This solved the problem for me.
Thanks!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- InfiNet Computer Solutions, Inc.
- Offline
- New Member
- Posts: 6
Please Log in or Create an account to join the conversation.