Conversation
supportJust installed CMB2 Taxonomy on a fresh install of WP 4.2.2 “Powell” but on activation I am getting these errors: Warning: require_once(__DIR__/init.php) [function.require-once]: failed to open stream: No such file or directory in /home2/gabster/public_html/gabster/wp-content/plugins/cmb2-taxonomy/plugin.php on line 33 Fatal error: require_once() [function.require]: Failed opening required ‘__DIR__/init.php’ (include_path=’.:/usr/lib64/php:/usr/share/pear’) in /home2/gabster/public_html/gabster/wp-content/plugins/cmb2-taxonomy/plugin.php on line 33 Any idea what can go wrong? thanks https://wordpress.org/plugins/cmb2-taxonomy/
It seems that the such problem relates to the fact __DIR__ is working only since php 5.3 I solved such situation by replacing __DIR__ with dirname(__FILE__) Unfortunately Many WP websites are still running on PHP 5 versions that are lower then 5.3…
Thanks a lot!! Yes – that fixed it. Thanks!! g
Hi @all , Thanks for your feedback. I have fixed by following the proposal from @gabstero in the plugin.php file and some other locations. The new version is ready to be downloaded at https://wordpress.org/plugins/cmb2-taxonomy/ .
Thanks much, Jose!!
It seems that the such problem relates to the fact __DIR__ is working only since php 5.3 I solved such situation by replacing __DIR__ with dirname(__FILE__) Unfortunately Many WP websites are still running on PHP 5 versions that are lower then 5.3…
Thanks a lot!! Yes – that fixed it. Thanks!! g
Hi @all , Thanks for your feedback. I have fixed by following the proposal from @gabstero in the plugin.php file and some other locations. The new version is ready to be downloaded at https://wordpress.org/plugins/cmb2-taxonomy/ .
Thanks much, Jose!!