• Resolved vgrch

    (@govaleriia)


    Hello,

    I’m debugging my theme and see the following Notice:

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

    If I go to front-end, it adds:

    Warning: Cannot modify header information – headers already sent by (output started at Z:\home\localhost\www\wp-content\plugins\gravity-forms-custom-post-types\gfcptaddon.php:55) in Z:\home\localhost\www\wp-includes\pluggable.php on line 1207

    And besides these warnings nothing is displayed in the front-end.

    I suppose it’s related to your plugin, can you have a look?

    Thanks.

    https://www.ads-software.com/plugins/gravity-forms-custom-post-types/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Until an update is available you can do the following:

    On line 121 of gfcptaddon.php change this:

    protected function get_base_path(){

    to this:

    protected static function get_base_path(){

    Worked for me ??

    Thread Starter vgrch

    (@govaleriia)

    It did work. Thanks. ??

    Doug Smith

    (@douglsmith)

    FYI, I’m seeing the same error appear in the WordPress plugin updater. There’s something about updating the JetPack plugin that causes those errors to appear in the update results text.

    Plugin Author Dave from Gravity Wiz

    (@spivurno)

    Hi guys, this is fixed in v3.1. Thanks for reporting it. ??

    Doug Smith

    (@douglsmith)

    Thanks for the update, David! I’ve confirmed it working well here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Warning’ is closed to new replies.