Need help for php error in plugin

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
User avatar
shoumikdas
Joomla! Intern
Joomla! Intern
Posts: 96
Joined: Fri Jun 04, 2010 12:07 pm

Need help for php error in plugin

Post by shoumikdas » Tue Nov 14, 2017 5:50 am

Hi,

I need some help for this php error in plugin. How can I hide this error/warning message? Screenshot attached.

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 /home/username/public_html/plugins/content/jw_sig/jw_sig.php on line 18

This is the Simple Image Gallery plugin - free version.

Thanks
You do not have the required permissions to view the files attached to this post.
Thanks
S

"We always have a choice."

SharkyKZ
Joomla! Ace
Joomla! Ace
Posts: 1599
Joined: Fri Jul 05, 2013 10:35 am
Location: Unknown

Re: Need help for php error in plugin

Post by SharkyKZ » Tue Nov 14, 2017 7:34 am

Lower error reporting level. Error reporting should be disabled on live sites for security reasons.

Or go to the specified file and change this:

Code: Select all

function plgContentJw_sig( &$subject, $params ){
to this:

Code: Select all

function __construct( &$subject, $params ){

User avatar
shoumikdas
Joomla! Intern
Joomla! Intern
Posts: 96
Joined: Fri Jun 04, 2010 12:07 pm

Re: Need help for php error in plugin

Post by shoumikdas » Wed Nov 15, 2017 8:53 am

That helped! Thanks!
Thanks
S

"We always have a choice."


Post Reply

Return to “Extensions for Joomla! 3.x”