Title: Class Type Hint Error
Last modified: February 17, 2020

---

# Class Type Hint Error

 *  Resolved [owenscorey](https://wordpress.org/support/users/owenscorey/)
 * (@owenscorey)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/class-returning-null/)
 * I was developing a training portal for our organization locally and Helpful was
   working fine until I deploy everything to our development environment and the
   Helpful plugin shows this error on all pages unless I remove Helpful plugin:
 * Fatal error: Default value for parameters with a class type hint can only be 
   NULL in /home/sctraind/public_html/wp-content/plugins/helpful/core/classes/class-
   helpful-setup.php on line 176
 * PHP Version of Development Environment: 7.2.7 (Not Working)
    PHP version of Local
   Environment: 7.3.8 (Working)
    -  This topic was modified 6 years, 2 months ago by [owenscorey](https://wordpress.org/support/users/owenscorey/).

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

 *  Plugin Author [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * (@pixelbart)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/class-returning-null/#post-12446471)
 * [@owenscorey](https://wordpress.org/support/users/owenscorey/)
 * Thanks for your feedback. The error should not occur anymore with the latest 
   version of Helpful, at least not in this file.
 * Kevin
 *  Thread Starter [owenscorey](https://wordpress.org/support/users/owenscorey/)
 * (@owenscorey)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/class-returning-null/#post-12447021)
 * Thanks! Now a new error has occurred on a single post. I’ve ran the update on
   the plugin and the database and still not getting past this error:
 * Catchable fatal error: Argument 1 passed to Helpful_Helper_Values::convertTags()
   must be an instance of string, string given, called in /home/sctraind/public_html/
   wp-content/plugins/helpful/core/classes/class-helpful-helper-values.php on line
   51 and defined in /home/sctraind/public_html/wp-content/plugins/helpful/core/
   classes/class-helpful-helper-values.php on line 78
 *  Plugin Author [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * (@pixelbart)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/class-returning-null/#post-12447224)
 * [@owenscorey](https://wordpress.org/support/users/owenscorey/)
 * All right, thank you. I’m gonna go through all the files and put out a fix right
   away.
 *  Thread Starter [owenscorey](https://wordpress.org/support/users/owenscorey/)
 * (@owenscorey)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/class-returning-null/#post-12447237)
 * [@pixelbart](https://wordpress.org/support/users/pixelbart/)
 * Thank you for your prompt effort to get this resolved!
 *  Plugin Author [Pixelbart](https://wordpress.org/support/users/pixelbart/)
 * (@pixelbart)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/class-returning-null/#post-12447449)
 * [@owenscorey](https://wordpress.org/support/users/owenscorey/)
 * I have now gone through them all again and removed the declarations. Thank you
   for your support!
 * Kevin
 *  Thread Starter [owenscorey](https://wordpress.org/support/users/owenscorey/)
 * (@owenscorey)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/class-returning-null/#post-12447580)
 * [@pixelbart](https://wordpress.org/support/users/pixelbart/)
 * That works, thank you!

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

The topic ‘Class Type Hint Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/helpful.svg)
 * [Helpful](https://wordpress.org/plugins/helpful/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/helpful/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/helpful/)
 * [Active Topics](https://wordpress.org/support/plugin/helpful/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/helpful/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/helpful/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [owenscorey](https://wordpress.org/support/users/owenscorey/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/class-returning-null/#post-12447580)
 * Status: resolved