-
Search Results
-
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:68And there’s been over 5,000 slow errors dealing with the
download-managerplugin and over 2,000 mentioning thewpdm-pdf-viewerplugin in the past day.Our issues are starting with PDFs not previewing and getting an error saying
An error occurred while loading the PDFfollowed 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 : eis not supported. Use either(a ? b : c) ? d : eora ? 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
Hello,
I encounter a fatal error on some pages.
Here is the error :Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 5335472600000032 bytes) in /wp-content/plugins/download-manager/src/Package/FileList.php on line 639I followed these steps from this topic : I’ve updated the plugin to the last version 6.4.1 and clear all cache from Settings > Privacy.
► Nothing changed ! Still got the error
So I followed these steps from this topic : I changed the allowed memory limit in wp-config.php and php.ini files to 2048M (that is quite huge !)
► Nothing changed ! Still got the error
Regarding the recommandation from the error, I should allow at least 5335472600M … which is ludicrous !
What can I do ?
EDIT: while debugging, the variable $fileinfo is empty because in the database table postmeta, the meta_key __wpdm_fileinfo for this post ID does NOT exists
Hello there,
I’ve created a custom small plugin that should interact with your plugin. In one of my file, I sue this code:
namespace package_scanner\model; use WPDM\Package; class Post {…}Now, since some updates on your plugin, I have a fatal error with “use WPDM\Package;”. What’s wrong? What should I change? Do I have to change other things related to this line?
Thank you,
CedricI hope this message finds you well. I wanted to inform you that we have successfully downloaded the plugin and uploaded it to our server. However, when we attempted to activate it, we encountered a fatal error that is preventing the plugin from activating.
Fatal error: Uncaught Error: Call to undefined function PrivateMessage\User\wp_date()
in /srv/windowswear.com/subdomains/wwstg/httpdocs/wp-content/plugins/private-message/src/User/User.php on line 34We kindly request your assistance in resolving this issue at your earliest convenience. If you require any further information or access to our server, please do not hesitate to reach out. Your prompt attention to this matter would be highly appreciated.
Thank you for your support.
Best regards,
Hello there 🙂
I hope you’re fine?
My website was running WPDM 5.3.3 without any issue. Now, I’ve tried to update to 6.3.3 but I have a fatal error that breaks the site:
PHP Fatal error: Uncaught Error: Class 'WPDM\Package' not foundThis code is in one of my template file. If I comment the lines, the site is “working” again but with some missing infos (due to these commented lines).
Here are the lines:
–$data['download_link'] = \WPDM\Package::downloadLink($data['ID'], 0, array(
'template_type' ► 'url'
));
–$files = \WPDM\Package::getFiles($data['ID']);I guess that this method is not available anymore. But could you tell me how I should replace my code in order to make it work again?
Kind regards,
Cedric