CMS MADE SIMPLE FORGE

Quotes Made Simple (Reloaded)

 

[#11554] Deprecated PHP causing loads of warnings

avatar
Created By: Paul Baker (paulbaker)
Date Submitted: Wed Aug 30 13:42:19 -0400 2017

Assigned To: Fernando Morgado (JoMorg)
Version: 1.1.0
CMSMS Version: 2.2.2
Severity: Minor
Resolution: None
State: Open
Summary:
Deprecated PHP causing loads of warnings
Detailed Description:
Module is still working well in front end, however thousands of warnings are
being generated by the code.

e.g.

PHP Deprecated:  Non-static method QuotesDAO::GetTemplate() should not be called
statically, assuming $this from incompatible context in
/home/ctw/public_html/modules/Quotes2/action.default.php on line nn

Other examples are identical except GetTemplate() is replaced by:
GetQuoteProps()
GetQuoteProp()
GetConnection()
SelectRandom()
IncreaseExposure()
etc...

Many lines of warnings are generated in the error log for each page load.  I
guess it is looping through code for each quote (I have around 150 quotes).

PHP 5.6.31

Thanks


History