If PHP is configured to access files only within web directory, Feeds module cannot find its parser library and throws message:
Warning: file_exists(): open_basedir restriction in effect. File(/ParserCSV.inc) is not within the allowed path(s): ([...]\htdocs) in feeds_include_library() (line 984 of [...]\Htdocs\drupal\sites\all\modules\feeds\feeds.module).
As a consequence, after that not found library, system "imports" 1 totally empty node, and throws error
"PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ..." - obviously, it is dublicate entry for next empty node(s).
configuration in php.ini about restricted filesystem access:
open_basedir = [directory]
; http://php.net/open-basedir
Windows Server. On test system, Windows too, but without setting open_basedir in php, importing works.
Comment | File | Size | Author |
---|---|---|---|
#19 | feeds_module_cannot-2509464-19.patch | 881 bytes | joelpittet |
#12 | feeds-libraries-include-2509464-13.patch | 2.78 KB | twistor |
Comments
Comment #1
twistor CreditAttribution: twistor as a volunteer commentedIt looks like the libraries module is not configured correctly. We should check for that and also support sites/all/libraries.
Comment #3
twistor CreditAttribution: twistor as a volunteer commentedComment #6
Max1 CreditAttribution: Max1 commentedWow, feeds-libraries-include-2509464-3.patch works like a charm!
Thank you
Comment #7
Max1 CreditAttribution: Max1 commentedComment #8
Max1 CreditAttribution: Max1 commentedComment #9
Max1 CreditAttribution: Max1 commentedI am the community :-)
Please integrate the patch to module for all.
Comment #10
twistor CreditAttribution: twistor as a volunteer commentedGlad to hear it helps.
There's another place this has to be fixed.
Comment #12
twistor CreditAttribution: twistor as a volunteer commentedoops.
Comment #13
twistor CreditAttribution: twistor as a volunteer commentedComment #15
twistor CreditAttribution: twistor as a volunteer commentedComment #16
joelpittet@twistor This seemed to throw some new errors after it was upgraded to latest dev this morning.
Comment #17
joelpittetUnfortunately as much as we both would like assignment inside a condition to be in scope and early shortcut, this doesn't seem to work:
Here's sample to see:
http://3v4l.org/BHISv
Comment #18
joelpittetThis may be a better fix with no performance hit perse
http://3v4l.org/FjC7i
Comment #19
joelpittetTry this.
Comment #21
twistor CreditAttribution: twistor as a volunteer commentedOy, missing some parens I suppose. We should have libraries enabled on testbot.
fixed feeds_include_library() as well.
Comment #22
Max1 CreditAttribution: Max1 commentedI have updated Feeds module to last dev version (just to be accurate, last hour version - what a speed!). It works great on restricted php, and imports nodes from csv without errors.