Title: PHP Warning
Last modified: August 30, 2016

---

# PHP Warning

 *  Resolved [vgrch](https://wordpress.org/support/users/govaleriia/)
 * (@govaleriia)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-warning-65/)
 * 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://wordpress.org/plugins/gravity-forms-custom-post-types/](https://wordpress.org/plugins/gravity-forms-custom-post-types/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [jeffpurcell](https://wordpress.org/support/users/jeffpurcell/)
 * (@jeffpurcell)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-warning-65/#post-6587647)
 * 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](https://wordpress.org/support/users/govaleriia/)
 * (@govaleriia)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/php-warning-65/#post-6587648)
 * It did work. Thanks. 🙂
 *  [Doug Smith](https://wordpress.org/support/users/douglsmith/)
 * (@douglsmith)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-65/#post-6587680)
 * 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](https://wordpress.org/support/users/spivurno/)
 * (@spivurno)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-65/#post-6587686)
 * Hi guys, this is fixed in v3.1. Thanks for reporting it. 🙂
 *  [Doug Smith](https://wordpress.org/support/users/douglsmith/)
 * (@douglsmith)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-65/#post-6587687)
 * 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.

 * ![](https://ps.w.org/gravity-forms-custom-post-types/assets/icon-256x256.png?
   rev=2542252)
 * [Gravity Forms + Custom Post Types](https://wordpress.org/plugins/gravity-forms-custom-post-types/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-custom-post-types/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-custom-post-types/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Doug Smith](https://wordpress.org/support/users/douglsmith/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/php-warning-65/#post-6587687)
 * Status: resolved