Small PHP Bug and Fix
-
I noticed the following errors in my error log coming from this plugin. It appears that 3 varaiables were either not defined properly or were mis-spelled. $ppr_metaurl, $pprshowcols, $ppr_newwindow.
$ppr_metaurl – I think the property was never properly defined.
$pprshowcols– I think the property was never properly defined.
$ppr_newwindow – I think this is a type for $ppr_newindow.PHP Deprecated: Creation of dynamic property quick_page_post_reds::$ppr_metaurl is deprecated in /public_html/wp-content/plugins/quick-pagepost-redirect-plugin/page_post_redirect_plugin.php on line 97 PHP Deprecated: Creation of dynamic property quick_page_post_reds::$pprshowcols is deprecated in //public_html/wp-content/plugins/quick-pagepost-redirect-plugin/page_post_redirect_plugin.php on line 99 PHP Deprecated: Creation of dynamic property quick_page_post_reds::$ppr_newwindow is deprecated in /public_html/wp-content/plugins/quick-pagepost-redirect-plugin/page_post_redirect_plugin.php on line 1531
The fix should be adding the following 2 lines of code around line 72 and renaming the variable “$ppr_newindow” to “$ppr_newwindow” on line 45.
public $ppr_metaurl; public $pprshowcols;
- The topic ‘Small PHP Bug and Fix’ is closed to new replies.