• Resolved owenscorey

    (@owenscorey)


    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 5 years, 1 month ago by owenscorey.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Pixelbart

    (@pixelbart)

    @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

    (@owenscorey)

    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

    (@pixelbart)

    @owenscorey

    All right, thank you. I’m gonna go through all the files and put out a fix right away.

    Thread Starter owenscorey

    (@owenscorey)

    @pixelbart

    Thank you for your prompt effort to get this resolved!

    Plugin Author Pixelbart

    (@pixelbart)

    @owenscorey

    I have now gone through them all again and removed the declarations. Thank you for your support!

    Kevin

    Thread Starter owenscorey

    (@owenscorey)

    @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.