PHP warnings when activating custom field types.
-
I created a couple of custom field types, which are plugins. When activating the plugins, I get warnings like:
Warning: include_once(): Failed opening '/public/content/plugins/cmb2/includes/CMB2_Field_Link.php' for inclusion (include_path='phar:///usr/local/bin/wp/vendor/phpunit/php-token-stream:phar:///usr/local/bin/wp/vendor/phpunit/phpunit-mock-objects:phar:///usr/local/bin/wp/vendor/phpunit/php-code-coverage:phar:///usr/local/bin/wp/vendor/phpunit/phpunit:phar:///usr/local/bin/wp/vendor/symfony/yaml:.:/usr/share/php') in /public/content/plugins/cmb2/includes/helper-functions.php on line 44
The plugin activates, and the new field type works as expected, but if a user encounters this warning, it would be disconcerting.
Is there some sort of check I need to do in my plugins to register the field types without triggering the warning?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP warnings when activating custom field types.’ is closed to new replies.