-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin could not be activated because it triggered a fatal error (/libraries/cmb2/) #80
Comments
@cmwwebfx thanks for reporting - I believe I know the issue here... will be coming out with a commit soon to patch it up :] |
Thank s Devin, I will continue to feed any bug reports or feedback once I can get this going on the site. Do you need live login details of the site to help in troubleshooting? |
Hey @cmwwebfx are you using PHP 5.2? Looks like your fatal error is due to "DIR" magic constant - which was added in PHP 5.3. I'm updating the code now, because a lot of people are using PHP 5.2 still - but I just want to confirm that's the version you are using. |
Ok @cmwwebfx as of 38307a4 you should be all set... would you mind confirming? |
Closing this out for now - will reopen if @cmwwebfx confirms issue is not fixed |
Hi Devin Appologies for delay. Was in weekly WIP. Yes the version of PHP on this host is 5.2 unfortunately. I have amended the line 813 as directed, and this allows for the plugin to be activated. The site now throws a new warning message. Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/languages/en_US.mo) is not within the allowed path(s): (VIRTUAL_DOCUMENT_ROOT:/home/chroot_bind/php/php5/usr/local/lib/php/) in /home/a-web/ac/9c/foundationbarossa.org.au/public/www/wp-includes/l10n.php on line 476 Screenshots attached. |
Yikes - looks like some pretty restrictive hosting there... I did some research and it looks like it's primarily hosting related: https://wordpress.org/support/topic/warning-is_readable-functionis-readable-open_basedir-restriction-in-effec https://theme-fusion.com/knowledgebase/getting-php-is_readable-warning/ Do you have any idea if this is an MS IIS server? If this is a plugin related issue I'd love to resolve it, I'm just not sure how as I've never seen it before and all Google seems to be saying is it's the host. Any insight is appreciated. |
Very likely it is a hosting issue as it is on an old server. Then again, many sites are sitting on old servers like this one. The server is not an MS IIS setup. Here is the text clip of the server settings using Gravity Forms Server Tool: [OK] BackupBuddy Version = 5.2.0.5 |
@cmwwebfx very good point. Is this a test server I could get in and debug on? Otherwise I'll have to spin up a vm with php 5.2 |
The log is helpful BTW |
Unfortunately this is a live site and the client was adamant that it was to go on this server. |
Ok I'll see what I can do about this... I've created a new issue for this: #82 |
…s-org#80) * refactor: replace react-scripts with laravel mix and replace paths * fix: add all styles to main css file * feature: dequeue unnecessary scripts and styles from form builder route * feature: add form-builder alias scripts * feature: add @givewp/form-builder alias and replace some annoyingly long paths Co-authored-by: Jon Waldstein <jonwaldstein@jons-air.mynetworksettings.com> Co-authored-by: Kyle B. Johnson <kjohnson@users.noreply.github.com> Co-authored-by: Kyle B. Johnson <kyle.johnson@hey.com>
Hi Devin,
Went to install this morning, and received a fatal warning when trying to activate.
Warning: require_once(DIR/libraries/cmb2/init.php) [function.require-once]: failed to open stream: No such file or directory in /home/a-web/ac/9c/foundationbarossa.org.au/public/www/wp-content/plugins/Give-master/includes/admin/register-settings.php on line 813
Fatal error: require_once() [function.require]: Failed opening required 'DIR/libraries/cmb2/init.php' (include_path='.:/usr/local/lib/php/__applications/:/home/chroot_bind/php/php5/usr/local/lib/php/') in /home/a-web/ac/9c/foundationbarossa.org.au/public/www/wp-content/plugins/Give-master/includes/admin/register-settings.php on line 813
plugins that are active at the time of installation in Screenshot below.
The text was updated successfully, but these errors were encountered: