Keyword

SIG and PHP7: Deprected

  • Michael Nickel
  • Michael Nickel's Avatar Topic Author
  • Offline
  • New Member
More
7 years 2 weeks ago #161333 by Michael Nickel
SIG and PHP7: Deprected was created by Michael Nickel
Dear Joomlaworks team,

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 1 week ago #161381 by Krikor Boghossian
Replied by Krikor Boghossian on topic SIG and PHP7: Deprected
Hello Michael,

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.

More
6 years 11 months ago #161736 by Jan Korshavn
Replied by Jan Korshavn on topic SIG and PHP7: Deprected
I updated to PHP 7 yesterday and immideately got the same error message from SIG, and that's using the last version available from your download. Any chance you will update it to remove this issue? Site is Joomla 3.7.

best rgds,
Jan Korshavn

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 11 months ago #161746 by Krikor Boghossian
Replied by Krikor Boghossian on topic SIG and PHP7: Deprected
Hello Jan,

Can you the DEV version instead?
github.com/joomlaworks/simple-image-gallery

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
6 years 11 months ago #161836 by FERRE
Replied by FERRE on topic SIG and PHP7: Deprected
hello,
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.

More
6 years 11 months ago #161849 by David Imerovic
Replied by David Imerovic on topic SIG and PHP7: Deprected
Hi, I would like to report the same problem. I try the Github version also and it's not working.

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.

More
6 years 11 months ago #161973 by Jean de Bosset
Replied by Jean de Bosset on topic SIG and PHP7: Deprected
to get rid of the deprecation message you can simply correct the code of the plugin with the correct V7 syntax.

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.

More
6 years 10 months ago #162104 by Don Porter
Replied by Don Porter on topic SIG and PHP7: Deprected
Many thanks to JDB for this fix. To perhaps assist those that are even less comfortable with this code than I am, here's what I did in lines 28-30 of jw_sigpro.php --

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #162113 by Krikor Boghossian
Replied by Krikor Boghossian on topic SIG and PHP7: Deprected
@Jean de Bosset Thanks buddy,

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.
  • InfiNet Computer Solutions, Inc.'s Avatar
  • Offline
  • New Member
More
6 years 8 months ago #163354 by InfiNet Computer Solutions, Inc.
Replied by InfiNet Computer Solutions, Inc. on topic SIG and PHP7: Deprected
Thank you for the post. I just noticed the issue on our website. Seems odd that the authors don't publish this fix.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum