Invalid argument supplied for foreach()

padprint - August 3, 2009 - 21:43
Project:Fill PDF
Version:6.x-1.2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,
when trying to use the "generate fields from PDF" i get the following error:

warning: Invalid argument supplied for foreach() in /path/to/site/sites/default/modules/fillpdf/fillpdf.module on line 515.

anyone come across this? My form has 140 fields, and i'd really prefer to not have to do this by hand.

thanks!

Server: FreeBSD 7.1
Drupal 6.13
fillpdf-6.x-1.2.tar.gz

#1

mrshark - August 30, 2009 - 15:31

same here, but line is 514...

also, uploading a pdf put it in the right dir: sites\default\files\fillpdf
but in my case the site is not at the root, but in a subdirectory...
after uploading, the URL field reported does NOT contain the subdirectory... i have:
http://localhost/sites/default/files/fillpdf/richiesta.pdf
but it really must be:
http://localhost/drupal/sites/default/files/fillpdf/richiesta.pdf
as said, in the filesystem it's ok, it's only the reported url to be wrong...

#2

lefnire - August 30, 2009 - 16:55

it's because the fillpdf servlet is offline for now, see http://drupal.org/node/545798

 
 

Drupal is a registered trademark of Dries Buytaert.