Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've updated from 7.x-1.0-beta3 to 7.x-1.0-beta4 over the past couple of days and noticed that when I now add a new document to a content type where I have added a file field type, on save, the following warning message is displayed:
Warning: Invalid argument supplied for foreach() in filefield_paths_entity_update() (line 248 of /drupal/sites/all/modules/filefield_paths/filefield_paths.module).
This is a cloned development site of a live site that works fine - the only difference I can find is the latest version of this module has changed.
Any ideas?
Comment | File | Size | Author |
---|---|---|---|
#7 | filefield_paths-invalid_foreach-1985280-7.patch | 874 bytes | drasgardian |
Comments
Comment #1
Deciphered CreditAttribution: Deciphered commentedCan you try changing 247 to:
Also, if you feel like doing some debugging for me, let me know, because I'm really curious on how this issue could be occurring.
Comment #2
Deciphered CreditAttribution: Deciphered commentedI have committed this, but I would still like to debug further if you are willing.
Comment #4
JeniferTucker CreditAttribution: JeniferTucker commentedSorry for lateness in reply.
I replaced the line and the warning error was not displayed when I created a new content type that I was using to upload a document to :-)
Comment #5
fugazi CreditAttribution: fugazi commentedacknowledge error is no longer displayed
Comment #6
genebobmiller CreditAttribution: genebobmiller commentedLooks like this was never actually committed?
Comment #7
drasgardian CreditAttribution: drasgardian commentedpatch attached, adds is_array check as per #1
Comment #8
Deciphered CreditAttribution: Deciphered commentedSomehow I managed to commit the changelog entry but not the fix itself.
Really committed this time, and added a simpletest for good measure.
Comment #10
Aurochs CreditAttribution: Aurochs as a volunteer commentedGreat now going to get it tested!
Edit: supreme, it works! thanks. Guess i was right to push the other thread. ;)