After uploading a PDF, everything seems fine, but the link at the bottom of the page, below the scribd window, does not work for downloading the PDF (i.e. "Click here to download this document as a PDF". I get this error when clicking on the link:

* warning: Missing argument 1 for ipaper_download() in /home/dirname/public_html/modules/ipaper/ipaper.module on line 439.
* Not an iPaper or the download link is not available

I am using Drupal 5 and RC8 for the ipaper module.

Comments

rares’s picture

This is a strange error. Can you try to see what happens if you build the download URL manually? Click on one of the download links, and you will be taken to a page like yoursite.com/ipaper_download. Make sure the node ID of the document you are viewing is in the path. If not, add it, like yoursite.com/ipaper_download/23. Does that link work?

fang27’s picture

No, it doesn't - it just takes me to

nameofthewebsite.com/node/ (essentially, the frontpage of the site)

And gives the error:

"Not an iPaper or the download link is not available"

I should also mention that the link you list as an example stops at the "/ipaper_download/" with nothing after that portion.

Any ideas?

rares’s picture

Version: 5.x-1.0-rc8 » 5.x-1.0

What about the 5.x-1.0 release?

fang27’s picture

Sorry, that doesn't really change anything but the error messages a bit (tried it on both current documents and a new document uploaded after making the updates):

* warning: Missing argument 1 for ipaper_download() in /home/thisname/public_html/modules/ipaper/ipaper.module on line 525.
* warning: Invalid argument supplied for foreach() in /home/thisname/public_html/modules/node/node.module on line 521.
* warning: implode() [function.implode]: Invalid arguments passed in /home/thisname/public_html/modules/node/node.module on line 525.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /home/partsdepot/public_html/includes/database.mysql.inc on line 172.
* Not an iPaper or the download link is not available

Any other suggestions? Thanks!

rares’s picture

have you tried reinstalling the module?

scott m. sanders’s picture

Subscribing: This is kinda make-or-break for our site.

scott m. sanders’s picture

OK, it works after saving the node.

It does not work while previewing the node before saving.

rares’s picture

Status: Active » Fixed

I will mark this as fixed and people can reopen it if the problem persists.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.