jDownloadsownloads.com


Author Topic: Failed to read the file  (Read 229 times)

0 Members and 1 Guest are viewing this topic.

Offline sparadrus

  • Newbie
  • *
  • Posts: 3
Failed to read the file
« on: 29.11.2018 18:41:48 »
Hi,
An user have upload a corrupt pdf (one page is broken) . I have the feeling that Jdownload/imagick continue at process this file to create thumbnail.
I can upload new files without issues;
I search to delete this temporary file, but i can't find him.
When a file is submit since frontend, and imagick/gd process to create thumbnail, where this file is stocked?
Thanks !
Best Regards,
Philippe
 
This is errors in Jdownload Control Panel (and screen capture in attachment) :

Une erreur s'est produite


1 Failed to read the file   
/var/www/html/intranet/administrator/components/com_jdownloads/helpers/jdownloadshelper.php:1141
Call stack
#   Function   Location
1   ()   JROOT/administrator/components/com_jdownloads/helpers/jdownloadshelper.php:1141
2   Imagick->__construct()   JROOT/administrator/components/com_jdownloads/helpers/jdownloadshelper.php:1141
3   JDownloadsHelper::create_new_pdf_thumb()   JROOT/administrator/components/com_jdownloads/helpers/jdownloadshelper.php:2481
4   JDownloadsHelper::runMonitoring()   JROOT/administrator/components/com_jdownloads/views/jdownloads/tmpl/default.php:206
5   include()   JROOT/libraries/src/MVC/View/HtmlView.php:695
6   Joomla\CMS\MVC\View\HtmlView->loadTemplate()   JROOT/libraries/src/MVC/View/HtmlView.php:230
7   Joomla\CMS\MVC\View\HtmlView->display()   JROOT/administrator/components/com_jdownloads/views/jdownloads/view.html.php:35
8   jdownloadsViewjdownloads->display()   JROOT/libraries/src/MVC/Controller/BaseController.php:672
9   Joomla\CMS\MVC\Controller\BaseController->display()   JROOT/administrator/components/com_jdownloads/controller.php:44
10   jdownloadsController->display()   JROOT/libraries/src/MVC/Controller/BaseController.php:710
11   Joomla\CMS\MVC\Controller\BaseController->execute()   JROOT/administrator/components/com_jdownloads/jdownloads.php:39
12   require_once()   JROOT/libraries/src/Component/ComponentHelper.php:382
13   Joomla\CMS\Component\ComponentHelper::executeComponent()   JROOT/libraries/src/Component/ComponentHelper.php:357
14   Joomla\CMS\Component\ComponentHelper::renderComponent()   JROOT/libraries/src/Application/AdministratorApplication.php:101
15   Joomla\CMS\Application\AdministratorApplication->dispatch()   JROOT/libraries/src/Application/AdministratorApplication.php:159
16   Joomla\CMS\Application\AdministratorApplication->doExecute()   JROOT/libraries/src/Application/CMSApplication.php:303
17   Joomla\CMS\Application\CMSApplication->execute()   JROOT/administrator/index.php:51

Offline ColinM

  • Moderator
  • *
  • Posts: 3.704
Re: Failed to read the file
« Reply #1 on: 30.11.2018 11:17:10 »
Hi

The images are stored in <joomla-root>/images/jdownloads/screenshots  and
the thumbnails are in<joomla-root>/images/jdownloads/screenshots/thumbnails - but do not delete directly from those locations!!!
Information as to which image(s) is used in a Download is stored in the database.  If you just delete the image directly then you will get a problem because now jD has conflicting information
So to recover it would be best to delete the image by accessing the Download in the backend and then in the images tab to deselect the faulty image.  You could also of course change the file. Or just delete the Download and do it again!!Colin

Offline sparadrus

  • Newbie
  • *
  • Posts: 3
Re: Failed to read the file
« Reply #2 on: 03.12.2018 16:36:29 »
Hi,
Thanks for your reply.
Before i post my topic, I have deleted the file, and clean the visualisation directory.
I can uplod new file, but the summary layout of jdownload backend is always broken, and i have the same error (Read the file)
The behavior is like Jdownload inscpector process again to read the file in cache..? So strange.
All entry in DB and file from server are ok... Imagick or GD have cache? I have still reboot the server :)
I have no idea...

Thanks for your help,
Regards

Offline ColinM

  • Moderator
  • *
  • Posts: 3.704
Re: Failed to read the file
« Reply #3 on: 04.12.2018 17:24:20 »
Hi
Fairly sure this is DB problem caused by deleting the img file directly.
 Think you should delete the offending Download but check that you have field "Delete images from deleted Downloads? " in Config - Monitoring tab set to Yes.
It the Summary layout failing with evedry Download or only the 'troublesome' one?
Colin

Offline sparadrus

  • Newbie
  • *
  • Posts: 3
Re: Failed to read the file
« Reply #4 on: 12.12.2018 12:25:23 »
Hi,
The layout broke every time i return in control panel of jdownload with the same message Failed to read the file.
Option to delete picture and prev is enable in "Téléchargements" tab.
I don't understand. :/
I have test to drop a new file on ftp for relauch monitoring, it have succesful generate thumbnail but the summary is carry broken.
The last test i can do is apply update in pre-production..
wait and see :)

Thanks

Offline ColinM

  • Moderator
  • *
  • Posts: 3.704
Re: Failed to read the file
« Reply #5 on: 12.12.2018 14:07:12 »
OK will await developments!!
But unclear to me if Summary is faulty on ALL Downloads or just the 'troublesome' one
Colin

Offline Arno

  • Administrator
  • ***
  • Posts: 12.319
    • jDownloads.com
Re: Failed to read the file
« Reply #6 on: 13.12.2018 13:34:12 »
When you know which file caused the problem you should delete it manually via ftp. You could also deactivate the auto monitoring so that the page is not more broken.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!