Fatal error when opening document (/libraries/import.legacy.php)

clausjcom , April 12 2022, 15:44
C
clausjcom 9
April 12 2022, 15:44 #283
When I click to view a PDF file, the file is saved, but corrupt when opening.
Direct URL:
https://www.downstairs-foto.dk/images/documents/referater/20220221_Generalforsamlingsreferat.pdf
If I copy the URL and paste into my browser, I get this error:
Deprecated: Bootstrapping Joomla using the /home/downstai/public_html/libraries/import.legacy.php file is deprecated. Use /home/downstai/public_html/libraries/bootstrap.php instead. in/home/downstai/public_html/libraries/import.legacy.phpon line16
Deprecated: Bootstrapping Joomla using the /home/downstai/public_html/libraries/cms.php file is deprecated. Use /home/downstai/public_html/libraries/bootstrap.php instead. in/home/downstai/public_html/libraries/cms.phpon line17
Fatal error: Uncaught Exception: Failed to start application in /home/downstai/public_html/libraries/src/Factory.php:138 Stack trace: #0 /home/downstai/public_html/modules/mod_agiledownloads/readmedia.php(40): Joomla\CMS\Factory::getApplication('site') #1 {main} Next Exception: Failed to start application in /home/downstai/public_html/libraries/src/Factory.php:138 Stack trace: #0 /home/downstai/public_html/libraries/src/Exception/ExceptionHandler.php(90): Joomla\CMS\Factory::getApplication() #1 /home/downstai/public_html/libraries/src/Exception/ExceptionHandler.php(74): Joomla\CMS\Exception\ExceptionHandler::render(Object(Exception)) #2 [internal function]: Joomla\CMS\Exception\ExceptionHandler::handleException(Object(Exception)) #3 {main} thrown in/home/downstai/public_html/libraries/src/Factory.phpon line138
C
clausjcom 9
April 12 2022, 15:46 #284
Joomla 4, PHP 7.4
marco 329
April 12 2022, 19:37 #285
Hi clausjcom
I'm on it - thanks for the hint. I will keep you updated within this post.
kind regards
Marco
---------

Rate us on JED: https://extensions.joomla.org/profile/profile/details/379934

---------
marco 329
April 13 2022, 14:00 #286
 Answer
Hi clausjcom
I have found the issue and I've recently released Version 1.2.2 of agileDownloads (Pro) to fix it. You can either download the latest version from within your Downloads area on nx-designs or install it via Joomla! Updater. To use the Joomla! Updater you may need to setup the nx-designs framework plugin first and create / set a download id - see this post for more information: https://nx-designs.ch/blog/73-tutorials/218-subscription-manage-download-id-s
Sidenote: Because there are now a different files in the filesystem for J3/J4 as readmedia checker backend you need to disable / re-enable Folder Protection for each folder you want to secure before it works. Sorry but there was no other way to make it work in J3 & J4.
Let me know if the update works for you.
kind regards
Marco
---------

Rate us on JED: https://extensions.joomla.org/profile/profile/details/379934

---------
C
clausjcom 9
April 18 2022, 13:09 #294
Thanks a lot - that solved it!
/claus