File not found warning on Roots Bedrock – ASBPATH
-
Hi,
I’m using Roots Bedrock version of WordPress (5.7.1) I’ve installed a fresh version of Form Maker and I’m getting this warning on the Form Maker admin page.
Warning: include_once(/home/vagrant/code/my-project/web/appwp-admin/includes/plugin.php): failed to open stream: No such file or directory in /home/vagrant/code/my-project/web/app/plugins/form-maker/form-maker.php on line 1597 Warning: include_once(): Failed opening '/home/vagrant/code/my-project/web/appwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in /home/vagrant/code/my-project/web/app/plugins/form-maker/form-maker.php on line 1597
After some debugging, it seems like the path is not being defined properly in
/plugins/form-maker/form-maker.php
on line 151. It is using theWP_CONTENT_DIR
instead of theABSPATH
– on Roots BedrockWP_CONTENT_DIR
is defined asmy-project/web/app
– ifABSPATH
is used, everything seems to run fine with no warning. Is this something which needs to be changed, can we always useABSPATH
?Please let me know if you need more info.
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘File not found warning on Roots Bedrock – ASBPATH’ is closed to new replies.