gravity-forms-custom-post-types
gravity-forms-custom-post-types copied to clipboard
PHP 5.4 Strict Standards Error: Non-Static Method
Using PHP 5.4 with WP_DEBUG enabled, I get the following error(s):
Strict Standards: Non-static method GFCPTAddon::get_base_path() should not be called statically in /wp-content/plugins/gravityforms-custom-post-types/gfcptaddon.php on line 55
Strict Standards: Non-static method GFCPTAddon::get_base_path() should not be called statically in /wp-content/plugins/gravityforms-custom-post-types/gfcptaddon.php on line 58
This error did not appear when I was running PHP 5.3, but with PHP 5.4+ changing E_ALL
to include E_STRICT
2, I get this error in both the WordPress admin and the theme front-end.
I'm using Gravity Forms + Custom Post Types v3.0.1 with WordPress 3.8.1 on PHP v5.4.17.
Just replace #121
protected function get_base_path(){
with
protected static function get_base_path(){
Issue also mentioned here: https://wordpress.org/support/topic/static-call-notices#post-6996775