Closed (fixed)
Project:
iPaper
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2009 at 17:47 UTC
Updated:
1 Jun 2010 at 18:10 UTC
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
Comment #1
rares commentedThis 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?
Comment #2
fang27 commentedNo, 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?
Comment #3
rares commentedWhat about the 5.x-1.0 release?
Comment #4
fang27 commentedSorry, 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!
Comment #5
rares commentedhave you tried reinstalling the module?
Comment #6
scott m. sanders commentedSubscribing: This is kinda make-or-break for our site.
Comment #7
scott m. sanders commentedOK, it works after saving the node.
It does not work while previewing the node before saving.
Comment #8
rares commentedI will mark this as fixed and people can reopen it if the problem persists.