Closed (duplicate)
Project:
Feeds
Version:
7.x-2.0-alpha8
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2015 at 10:29 UTC
Updated:
9 Dec 2016 at 09:19 UTC
Jump to comment: Most recent
Comments
Comment #1
theroyal commentedI solved the problem by executing this query from phpMyadmin :
====
UPDATE `file_managed` SET status=1
====
where I found that all imported images are set to status=0, and this means it is temporary file, and cron will delete any file with status = 0 , and that what was happening silently in my website,
but in my case the new imported images should be permanent and needs to be modified to status = 1 .
and this what I did.
my problem was solved but the Qs is, why it was set to Zero ? this might help others in the future.
Comment #2
theroyal commentedComment #3
megachrizI also see this message tons of time in the log (using Feeds 7.x-2.0-alpha8+41-dev, so I need to recheck with the latest dev). Not yet sure what's causing it, though. Could it had something to do with the File (Field) Paths module? Are you using that module too, @theroyal?
Comment #4
woodbutcher commentedI have this problem, and am using File (field) paths. After importing a few hundred jpegs, they show up on every cron run. This issue and one here https://www.drupal.org/node/1468324 are the only really relevant clues I could find, along with a couple that seemed to have the same cause, i.e. the status is set to 0. I'll try the @theroyal's solution
Comment #5
woodbutcher commentedThanks a million @theroyal, that worked a treat.
Comment #6
twistor commentedI think this is a duplicate of #2512824: Set file status to permanent..
That issue is newer, but it has a patch.
Comment #7
amkloseWhat does it mean if the status of the file is 2? I had a bunch of errors deleting files in the log and all of those files had status=2 in the database.
Comment #8
theroyal commentedSorry, after 2 years I just noticed that my issue had some comments.
and, yes, I am using File (field) paths.
@amklose, actually, am sorry, I barely remember this issue, so am not sure, with that you get the answer from others.
Comment #9
kumkum29 commentedHello,
I'm using File Field paths and I'm getting the same warnings in the logs...
After a little verification, I see in the file_managed table of the db that all the imported images have 0 for the status.
I have this problem on several sites. Can we force the status of the images during the feeds importation? With a hook? With feeds tamper?
Thanks for your help.
Comment #10
megachriz@kumkum29
I have this issue too on a site, but I still haven't found what is causing it. I wasn't able to reproduce it yet on a minimal install. In #2512824-9: Set file status to permanent. I proposed a strategy for finding the cause of the issue.
Comment #11
kumkum29 commented@MegaChriz
I will try to find out where the problem comes from by following the steps in your post.
(https://www.drupal.org/node/2512824#comment-10352247).
During the importation, I uses Feeds Tamper to modify the path of the image...Maybe that is the problem...