I get this error
Fatal error: Uncaught Error: Class “WPDM\Session” not found in /home3/apreaasi/public_html/knowledgebrief/beta-kb/wordpress/wp-content/themes/aprea/download-manager/lock-options/email-lock-form.php:10 Stack trace:
my website beta is https://knowledgebrief.aprea.asia/beta-kb/wordpress/
Can someone help me? Im in desperate need to get this up
Hello there, This is my subscription-based website where I offer pdf’s to be downloaded. Monthly users can download 3 reports per month, then after 3 downloads if anyone intends to download more reports (PDF), they will have to pay an additional 14.99$. Previously it worked. I had posts where the download button was there as well as another package of pdf that could be added to the cart. Right now when I am adding the shortcode of that 14.99$ package on any post on my WordPress. The page shows a critical error message.
I got an email from WordPress saying Stripe is creating the issue. Here is the mail:
Howdy!
WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with one of your plugins, WPDM – Stripe.
First, visit your website (https://adventurefreaksss.com/) and check for any visible issues. Next, visit the page where the error was caught (https://adventurefreaksss.com/wp-admin/post.php?post=2055&action=edit) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.5.3
Active theme: Astra (version 4.6.14)
Current plugin: WPDM – Stripe (version 1.6.5)
PHP version 8.1.27
Error Details
=============
An error of type E_ERROR was caused in line 1137 of the file /home/u875753586/domains/adventurefreaksss.com/public_html/wp-content/plugins/wpdmpp-stripe/wpdmpp-stripe.php. Error message: Uncaught Error: Call to a member function create() on null in /home/u875753586/domains/adventurefreaksss.com/public_html/wp-content/plugins/wpdmpp-stripe/wpdmpp-stripe.php:1137
Stack trace:
#0 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-content/plugins/wpdmpp-stripe/wpdmpp-stripe.php(1210): WPDMPP\Libs\PaymentMethods\WPDM_Stripe->buyNowButton()
#1 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/class-wp-hook.php(324): WPDMPP\Libs\PaymentMethods\WPDM_Stripe->buyNow()
#2 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#3 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-content/plugins/wpdm-premium-packages/templates/add-to-cart/buy-now.php(15): apply_filters()
#4 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-content/plugins/wpdm-premium-packages/includes/libs/ShortCodes.php(122): include(‘/home/u87575358…’)
#5 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-content/plugins/wpdm-premium-packages/includes/libs/cart-functions.php(1279): WPDMPP\Libs\ShortCodes->buyNowHTML()
#6 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-content/plugins/wpdm-premium-packages/wpdm-premium-packages.php(1392): wpdmpp_add_to_cart_html()
#7 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/class-wp-hook.php(326): WPDMPP\WPDMPremiumPackage->fetchTemplateTag()
#8 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#9 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-content/plugins/download-manager/src/Package/PackageController.php(397): apply_filters()
#10 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-content/plugins/download-manager/src/Package/PackageController.php(1818): WPDM\Package\PackageController->prepare()
#11 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-content/plugins/download-manager/src/Package/Shortcodes.php(68): WPDM\Package\PackageController->fetchTemplate()
#12 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/shortcodes.php(433): WPDM\Package\Shortcodes->singlePackage()
#13 [internal function]: do_shortcode_tag()
#14 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/shortcodes.php(273): preg_replace_callback()
#15 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/class-wp-hook.php(324): do_shortcode()
#16 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#17 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1865): apply_filters()
#18 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response()
#19 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1230): WP_REST_Posts_Controller->get_item()
#20 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/rest-api/class-wp-rest-server.php(1063): WP_REST_Server->respond_to_request()
#21 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/rest-api.php(555): WP_REST_Server->dispatch()
#22 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/rest-api.php(2922): rest_do_request()
#23 [internal function]: rest_preload_api_request()
#24 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-includes/block-editor.php(753): array_reduce()
#25 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload()
#26 /home/u875753586/domains/adventurefreaksss.com/public_html/wp-admin/post.php(187): require(‘/home/u87575358…’)
#27 {main}
thrown
Kindly check on this. And let me know. Thanks.
We’ve been experiencing ongoing issues with PDFs not previewing, specifically when hit with a large amount of traffic to the page. The issue presents with PDFs not previewing and getting an error saying An error occurred while loading the PDF
followed by really slow site loading and downloading speeds. This does seem to be tied to the plugin unable to render during high traffic times because when I force logout all users, PDFs begin to load again.
We have a specific page on our site where about 140 of our highest viewed packages are linked and we have had to bypass the PDF previews completely in order to keep our site running. Rather than linking to the resource page with the PDF preview, we are now linking directly to the file URL in the wp-content folder in the browser to enable our clients to preview, access and download these important packages. This is just a band-aid and cannot be a long-term solution as it is a security risk.
I’ll follow this message up with login details and more specifics. We really need to figure this out as not being able to preview and having the site slow down is significantly impacting our ability to do business. Download Manager is the core functionality of our site and we don’t want to find another solution, but we may need to start looking if we can’t get this resolved.
I’ve opened a previous thread on this and am linking for context: https://www.wpdownloadmanager.com/support/topic/urgent-continued-fatal-errors/
We continue to have issues with Download Manager and PDF Viewer working as intended on our site. In chatting with our host, they’ve been able to share with us the following:
The site is seeing the following fatal error:
PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /www/wp-content/plugins/wpdm-pdf-viewer/tpls/viewer.php:68
And there’s been over 5,000 slow errors dealing with the download-manager
plugin and over 2,000 mentioning the wpdm-pdf-viewer
plugin in the past day.
Our issues are starting with PDFs not previewing and getting an error saying An error occurred while loading the PDF
followed by really slow download speeds. Our host is suggesting we take these slow errors to you and work on getting those resolved. A lot of these slow errors are in regards to MySQL queries they’re seeing the MySQL layer CPU spiking to 100% consistently, which is probably the primary cause of the issues we’re seeing with the site going down and not working. The slow logs won’t provide the exact query running, but should provide you some solid information to be able to help get that fixed and stabilize the site.
Multiple customers of ours are using your plugin. But for some reason today it will let the loginpage crash and also Gravity Forms can’t send any submits when this plugin is enabled.
Can you tell me what is wrong with the plugin and please fix it?
2024/03/28 14:22:47 [error] 716230#716230: *591348 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: get_class(): Argument #1 ($object) must be of type object, null given in /home/knipping/knipping.nl/current/wp-content/plugins/download-manager/src/User/Login.php:458
Thanks
We have started having issues intermittently with PDF Viewer not generating previews and displaying the error: “An error occurred while loading the PDF.” We are running Version 3.0.6. In chatting with our host about seemingly related site speed issues, they confirmed that the WPDM PDF Viewer plugin is throwing out quite a few fatal errors: “NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /www/wp-content/plugins/wpdm-pdf-viewer/tpls/viewer.php:68”
They also said: “It also seems like download-manager is throwing out massive amounts of errors as well, over about 8k within the last 2 hours alone so those may be worth having a look at.” We are running Version 6.5.1 of Download Manager Pro.
This site is a core offering to our clients and has behaving very unpredictably. Looking for any quick insight or help you can provide to mitigate these issues please.
These warnings appear inside the log file of the WordPress site, and I do not know what is causing these problems. Use the latest version of your plugins.
[27-Dec-2023 12:46:14 UTC] PHP Warning: Trying to access array offset on value of type null in /home/*********/public_html/wp-content/plugins/download-manager/src/Package/PackageController.php on line 540
[27-Dec-2023 12:46:14 UTC] PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, null given in /home/********/public_html/wp-content/plugins/wpdm-pdf-viewer/tpls/viewer.php:68
Stack trace:
#0 /home/******/public_html/wp-content/plugins/wpdm-pdf-viewer/tpls/viewer.php(68): method_exists(NULL, ‘hasPurchased’)
#1 /home/******/public_html/wp-content/plugins/wpdm-pdf-viewer/wpdm-pdf-viewer.php(97): include(‘/home/kutubpdfa…’)
#2 /home/******/public_html/wp-includes/class-wp-hook.php(324): WPDM\AddOn\PDFViwer->viewer(Object(WP))
#3 /home/******/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#4 /home/******/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#5 /home/******/public_html/wp-includes/class-wp.php(830): do_action_ref_array(‘wp’, Array)
#6 /home/******/public_html/wp-includes/functions.php(1336): WP->main(”)
#7 /home/******/public_html/wp-blog-header.php(16): wp()
#8 /home/******/public_html/index.php(17): require(‘/home/kutubpdfa…’)
#9 {main}
thrown in /home/******/public_html/wp-content/plugins/wpdm-pdf-viewer/tpls/viewer.php on line 68
[27-Dec-2023 13:41:07 UTC] PHP Warning: Undefined array key 3 in /home/******/public_html/wp-content/themes/******/includes/libs/better-framework/libs/class-bf-color.php on line 61
Is there a solution to these problems or at least an explanation for them?
I have just tried to open our wordpress website (www.peprimary.co.uk) and have had this message coming up:
“Fatal error: Unparenthesized a ? b : c ? d : e
is not supported. Use either (a ? b : c) ? d : e
or a ? b : (c ? d : e)
in D:\HostingSpaces\PePrime\peprimary.co.uk\wwwroot\wp-content\plugins\download-manager\widgets\class.Search.php on line 17
There has been a critical error on your website.
Learn more about debugging in WordPress.”
Any idea why? It seems to have something to do wirth WPDM
Many thanks