Hey there! We recently updated to the 4.5.0 version of the plugin on a client site and everything sort of blew up. We managed to track the error down to the wpdm_ functions being used in the theme files and from there to an instantiate error inside of the class.
Error:
“PHP message: PHP Fatal error: Using $this when not in object context in /public_html/wp-content/plugins/download-manager/libs/class.Package.php on line 195”
That error in itself is rather vague, but we managed to track it back to the “Get” method which was calling “Prepare” statically (and thus negating all that clever work with the $this variable) when trying to retrieve data and well, PHP then falls on it’s face.
A quick workaround has been implemented, but we hope that you will take a look at this and add it to some potential future fixes.
Line 214:
$package = self::Prepare($ID);
Temporary Fix:
$test = new Package;
$package = $test->Prepare($ID);
//$package = self::Prepare($ID);
Deleted the original plugin, successfully uploaded the update. However, when trying to activate I get the following fatal error:
Parse error: syntax error, unexpected T_STRING in /home4/spreads5/public_html/wp-content/plugins/download-manager/download-manager.php on line 11
Hi, for the packages ‘Midland Networks brochure’ and ‘bt guarantee and compensation guidelines’ the download sizes show as 0kb and when you click download it downloads a ‘download-not-available’ .txt file despite me uploading a file to them that I’m pretty sure are not 0kb?
Also getting an error message when trying to download ‘Midland Networks Directions’. Something about encryption? But the size I upload is not encrypted in any way or anything? Full text of error:
“Fatal error: Uncaught exception ‘Exception’ with message ‘File is encrypted!’ in /homepages/17/d577652906/htdocs/midland/wp-content/plugins/wpdm-pdf-stamper/libs/fpdi1.5.2/pdf_parser.php:247 Stack trace: #0 /homepages/17/d577652906/htdocs/midland/wp-content/plugins/wpdm-pdf-stamper/libs/fpdi1.5.2/pdf_parser.php(214): pdf_parser->getEncryption() #1 /homepages/17/d577652906/htdocs/midland/wp-content/plugins/wpdm-pdf-stamper/libs/fpdi1.5.2/fpdi_pdf_parser.php(71): pdf_parser->__construct(‘/homepages/17/d…’) #2 /homepages/17/d577652906/htdocs/midland/wp-content/plugins/wpdm-pdf-stamper/libs/fpdi1.5.2/fpdi.php(128): fpdi_pdf_parser->__construct(‘/homepages/17/d…’) #3 /homepages/17/d577652906/htdocs/midland/wp-content/plugins/wpdm-pdf-stamper/libs/fpdi1.5.2/fpdi.php(108): FPDI->_getPdfParser(‘/homepages/17/d…’) #4 /homepages/17/d577652906/htdocs/midland/wp-content/plugins/wpdm-pdf-stamper/wpdm-pdf-stampers.php(219): FPDI->setSourceFile(‘/homepages/17/d…’) #5 /homepages/17/d577652906/htdocs/midland/wp-content/plugins/wpd in /homepages/17/d577652906/htdocs/midland/wp-content/plugins/wpdm-pdf-stamper/libs/fpdi1.5.2/pdf_parser.php on line 247”
Any ideas? Thanks.
The page in question is here: https://www.midlandnetworks.co.uk/downloadpackages.html
Hello,
we are using the backend to upload files (Downloads > Add New). With bigger files (not too much, just 5-10 MB), after the upload, in the “Attached files” metabox appears the error:
Fatal error: Maximum execution time of 300 seconds exceeded in C:\wamp2\www\wp-admin\admin-ajax.php on line 16 Call Stack #TimeMemoryFunctionLocation 10.0000154720{main}( )..\admin-ajax.php:0 " name="file[files][]">
(see the attached screenshot).
We suppose it’s in the AJAX call that inserts the correct icon…
What can we do?
Thanks!
Hello.,
I have just installed Download Manager Pro plugin in my local system. and testing it.
When i have used the shortcode ‘[wpdm_tree]’ and related to displaying tree view of folders. i foudn error like
Fatal error: Call to undefined function wpdm_user_has_access()
C:\xampp\htdocs\mysite\wp-content\plugins\wpdm-extended-shortcodes\wpdm-extended-shortcodes.php on line 455
i have tried these also
[wpdm_tree category=”category-slug”]
[wpdm_tree download_link=1]
but no use.
Please help!
Yesterday, I renewed my DMpro. After uploading the program into my website, I tried to activate the program and received the following fatal error. I tried to upload the wpdm-core.php file several times, but I still cannot see in the dm directory. No one can download from my site, and I would appreciate your help to resolve this issue as soon as possible. I have attached a screenshot of one of the page errors, where just the category shortcut is now showing on the page instead of the list of downloads.
<span style=”color: #444444; font-family: ‘Open Sans’, sans-serif; font-size: 13px; line-height: 1.5;”>Plugin could not be activated because it triggered a</span><span style=”color: #444444; font-family: ‘Open Sans’, sans-serif; font-size: 13px; line-height: 1.5;”> </span><span style=”color: #444444; font-family: ‘Open Sans’, sans-serif; font-size: 13px; line-height: 1.5; font-weight: 600;”>fatal error</span><span style=”color: #444444; font-family: ‘Open Sans’, sans-serif; font-size: 13px; line-height: 1.5;”>.</span>
<br style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;” /><b style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>Warning</b><span style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>: include(/home/content/b/a/r/bartokm/html/wp/wp-content/plugins/download-manager/wpdm-core.php) [</span>function.include<span style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>]: failed to open stream: No such file or directory in </span><b style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>/home/content/b/a/r/bartokm/html/wp/wp-content/plugins/download-manager/download-manager.php</b><span style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”> on line </span><b style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>98</b><br style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;” /><br style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;” /><b style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>Warning</b><span style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>: include() [</span>function.include<span style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>]: Failed opening ‘/home/content/b/a/r/bartokm/html/wp/wp-content/plugins/download-manager/wpdm-core.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in </span><b style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>/home/content/b/a/r/bartokm/html/wp/wp-content/plugins/download-manager/download-manager.php</b><span style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”> on line </span><b style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>98</b><br style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;” /><br style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;” /><b style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>Fatal error</b><span style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>: Call to undefined function CreateDir() in </span><b style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>/home/content/b/a/r/bartokm/html/wp/wp-content/plugins/download-manager/download-manager.php</b><span style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>on line </span><b style=”color: #000000; font-family: ‘Times New Roman’; font-size: medium; line-height: normal;”>93</b><span style=”color: #444444; font-family: ‘Open Sans’, sans-serif; font-size: 13px; line-height: 1.5;”>
</span>
The following error is appearing some times:
PHP Fatal error: Uncaught exception ‘Exception’ with message ‘File is encrypted!’ in /home/xxxxx/public_html/wp-content/plugins/wpdm-pdf-stamper/libs/fpdi1.5.2/pdf_parser.php:247
The basic problems are two:
A) It doesnt always day for which pdf file the error is
B) Is it possible to just bypass stamper instead of throwing fatal error when the file is encrypted;
Thanks!