• Resolved samdahl7

    (@samdahl7)


    Updated GiveWP to 2.7.3 and got the following notice:

    Error Details
    =============
    An error of type E_ERROR was caused in line 144 of the file /home3/doctrin2/public_html/wp-content/plugins/give/give.php. Error message: Uncaught Error: Class ‘Give\Container\Container’ not found in /home3/doctrin2/public_html/wp-content/plugins/give/give.php:144
    Stack trace:
    #0 /home3/doctrin2/public_html/wp-content/plugins/give/give.php(456): Give->__construct()
    #1 /home3/doctrin2/public_html/wp-content/plugins/give/give.php(468): Give()
    #2 /home3/doctrin2/public_html/wp-settings.php(371): include_once(‘/home3/doctrin2…’)
    #3 /home3/doctrin2/public_html/wp-config.php(97): require_once(‘/home3/doctrin2…’)
    #4 /home3/doctrin2/public_html/wp-load.php(37): require_once(‘/home3/doctrin2…’)
    #5 /home3/doctrin2/public_html/wp-login.php(12): require(‘/home3/doctrin2…’)
    #6 {main}
    thrown

    Environment:
    WordPress version 5.4.2
    Current theme: Attitude (version 4.0.3)
    Current plugin: Give – Donation Plugin (version 2.7.3)
    PHP version 7.3.20

    Please advise. Thank you.

Viewing 15 replies - 1 through 15 (of 33 total)
  • Hi @samdahl7,

    On a site using WordPress version 5.4.2, Twenty Twenty theme version 1.4, GiveWP version 2.7.3, PHP version 7.3.5 and 7.4.1, I am not seeing this notice. It may be that there is some incompatibility with your other plugins or theme.

    I recommend you follow this troubleshooting tutorial using the Health Check plugin. It allows you to isolate plugins and change themes for an administrator, while the frontend still runs the live version of the website. You can see the documentation here: How to Troubleshoot WordPress Websites with Health Check. You can also check out this other tutorial: How to Troubleshoot Your Website like a WordPress Support Engineer.

    Let me know what you find when you try those tutorials.

    Same error, Twenty Twenty v1.4 AND Twenty Nineteen v1.6, WP v5.4.2, php 7.1.3. NO PLUGINS INSTALLED except Give. The only variable here is the php version. Your documentation states compatible with 5.6 or higher, but I’m guessing there’s something in this recent update that isn’t compatible.

    Regardless, this certainly appears to be a Give issue, not a user’s plugin/theme compatibility issue.

    Thanks!

    • This reply was modified 4 years, 3 months ago by aglamb.

    UPDATE: Give v2.7.2 does NOT give this error.

    @aglamb are you using a specific plugin for errors? I am not seeing this notice in an error log on a site using WordPress v5.4.2, GiveWP v2.7.3 or v2.7.2, PHP v7.3.5 or v7.4.1.

    @aglamb I also am not seeing this notice on a site using WordPress v5.4.2, GiveWP v2.7.3, PHP v5.6.39.

    Thread Starter samdahl7

    (@samdahl7)

    Thank you all. I did not have this error with Give 2.7.2. 2.7.2 is in the SVN repository. Can I just replace the 2.7.3 give.php file with the 2.7.2 give.php file in the plugin editor or does it require other dependencies?

    Or can someone tell me how to install an earlier version of the Give plugin? Thanks!

    • This reply was modified 4 years, 3 months ago by samdahl7.

    I get the same error since 2.7.3.

    Disabled all other plugins and reverted back to the twenty twenty theme, but the error remains the same.

    Haven’t found a solution yet.

    @samdahl7 you can find old versions of givewp plugin here https://www.ads-software.com/plugins/give/advanced/ when you scroll all the way to the bottom.

    @samdahl7 and @munikho I don’t see this notice in an error log on a site using WordPress v5.4.2, GiveWP v2.7.2 or v2.7.3, PHP v5.6.39, v7.3.5, or v7.4.1. What WordPress version and PHP version are you using?

    Thanks for checking @michaelbeil, I get this error on WordPress 5.4.2, GiveWP v2.7.3 and PHP v7.3 running on WPEngine.

    Thread Starter samdahl7

    (@samdahl7)

    Thanks for the info on where to get 2.7.2. When I tried installing I got the following:

    Unpacking the package…
    Installing the plugin…
    Destination folder already exists. /home3/doctrin2/public_html/wp-content/plugins/give/
    Plugin installation failed.

    So it won’t overwrite since a give directory exists. Do I delete the GiveWP plugin and then install 2.7.2? I do not want the donor data deleted. It says, “Are you sure you want to delete Give – Donation Plugin and its data?” I looked in the file directory and do not see donor data. I don’t know where it is stored. Bottom line: how do I install 2.7.2 and not lose donor data. Thanks!
    Environment:
    WordPress version 5.4.2
    Current theme: Attitude (version 4.0.3)
    Current plugin: Give – Donation Plugin (version 2.7.3)
    PHP version 7.3.20

    @samdahl7 do you have access to ftp? You can remove the give plugin through ftp in /wp-content/plugins/give… and then reupload it there.

    The donor data is saved in the database, not in the file structure.

    Same problem here. I think there’s a major bug in 2.7.3.

    Easiest way to downgrade, if you have SSH access and WP-CLI, is…

    wp plugin install give --version=2.7.2 --force --skip-plugins

    @drywallbmb Are you seeing this notice in an error log? Are you using WordPress 5.4.2, GiveWP v2.7.3, and PHP v7.3 like @munikho?

    @michaelbeil Actually running PHP v7.4.7, but yes, was using GiveWP 2.7.3 and WordPress 5.4.2. I tailed the debug.log while loading the site (which was showing WP’s standard fatal error message) to see the error. Tried re-installing 2.7.3 via wp-cli as I thought maybe a partial/failed update might have been to blame, but the error persisted. Rolling back to 2.7.2 fixed things.

    I believe my error was identical:

    [03-Aug-2020 15:52:13 UTC] PHP Fatal error:  Uncaught Error: Class 'Give\Container\Container' not found in /home/demo/sites/cdsfc/assets/plugins/give/give.php:144
    Stack trace:
    #0 /home/demo/sites/cdsfc/assets/plugins/give/give.php(456): Give->__construct()
    #1 /home/demo/sites/cdsfc/assets/plugins/give/give.php(468): Give()
    #2 /home/demo/sites/cdsfc/wp-settings.php(371): include_once('/home/demo/site...')
    #3 /home/demo/sites/cdsfc/wp-config.php(124): require_once('/home/demo/site...')
    #4 /home/demo/sites/cdsfc/wp-load.php(37): require_once('/home/demo/site...')
    #5 /home/demo/sites/cdsfc/wp-blog-header.php(13): require_once('/home/demo/site...')
    #6 /home/demo/sites/cdsfc/index.php(17): require('/home/demo/site...')
    #7 {main}
      thrown in /home/demo/sites/cdsfc/assets/plugins/give/give.php on line 144
Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘GiveWP 2.7.3’ is closed to new replies.