Gravity Form Custom Post Types Plugin Error

This plugin seems to be broken with WordPress 3.9.1 With Debug set to true you will see an error.

Strict Standards: Non-static method GFCPTAddon::get_base_path() should not be called statically in /wp-content/plugins/gravity-forms-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/gravity-forms-custom-post-types/gfcptaddon.php on line 58

Until the developer updates this plugin you can use this fix

The get_base_path() function needs to be run statically with newer versions of PHP - edit line 121 of gfcptaddon.php as follows:

protected static function get_base_path(){

References: https://wordpress.org/plugins/gravity-forms-custom-post-types/ https://wordpress.org/support/topic/plugin-broken-on-391-any-alternative http://wordpress.org/support/topic/debug-error-message

Post your comment

Comments

No one has commented on this page yet.

RSS feed for comments on this page | RSS feed for all comments

Copywrite © 2017 Kevin Phillips All rights are reserved.

Proudly supporting opensource software