I have configured i paper with scribd API .After the document is uploaded the result is

The previous attempt to convert this document to an iPaper failed. Click here to retry.

And when i click on it these errors are being shown

warning: Missing argument 1 for ipaper_transfer() in C:\wamp\www\Drupal 6ix\sites\all\modules\ipaper\ipaper.module on line 289.
# warning: Invalid argument supplied for foreach() in C:\wamp\www\Drupal 6ix\sites\all\modules\cck\content.module on line 1096.
# warning: Invalid argument supplied for foreach() in C:\wamp\www\Drupal 6ix\sites\all\modules\cck\content.module on line 1136.
# warning: Invalid argument supplied for foreach() in C:\wamp\www\Drupal 6ix\sites\all\modules\cck\content.module on line 353.
# warning: Invalid argument supplied for foreach() in C:\wamp\www\Drupal 6ix\sites\all\modules\cck\modules\content_permissions\content_permissions.module on line 34.
# warning: Invalid argument supplied for foreach() in C:\wamp\www\Drupal 6ix\sites\all\modules\cck\content.module on line 1136.

Comments

rares’s picture

Priority: Normal » Critical

Hi,
The missing argument for ipaper_transfer means that there is a problem with the menu callback. I am suspecting that this might have to do with your Windows webserver. Can you please tell me what version of HTTP+PHP+MySQL you are using. Also, can you try manually typing the URL "http://YOURSITE/ipaper_transfer/NODE_ID" (replacing the two parameters in CAPS as appropriate) and tell me what you get?

Rareş

nirvanajyothi’s picture

Priority: Critical » Normal

was using a custom made block with quickswitch script which was the cause of error...
Now the iiPaper window is visible ....but it shows Unable to load document...document failed to convert

rares’s picture

Hmm, the QuickSwitch shouldn't have caused that. I am able to create iPaper nodes even with a block that has QS code.
I assume you are having the document failed to convert error because 1. you are using Quickswitch and have private file storage (system/files) or 2. because you have a document format that is unsupported.
Do other document types work?
Rares

nirvanajyothi’s picture

is it because i am using it on the local host?

also is there any way to add the iPaper functionality to chosen content types instaed of creating a new content type 'iPaper'?And let the users upload files and display the files using the webmaters API key so that the non scribd user can upload and view powerpoints.

what ii used to do before the module came was

..1.2.3......
4.Copy the code generated

5.return to your website admin account and under Blocks add a new block
Name it as you wish and add the copied code to content.(You may disable any wyswig editor on the page)

6.select Input format as PHP code (YOu may Try if it works on other 2 formats later)

7.Publishing options -Display on all pages

8.Return to blocks and place the new block in content.

9.And now you are ready to go!Upload the ppt or doc and you will see it in iPaper window embedded on the page.
And with this method it was possible.I think it will be better to incorporate Ipaper into content types than making a new content type...

rares’s picture

If you are trying to use Quickswitch it will certainly not work on localhost. If you are creating iPaper nodes, I think it should work, although you need to make sure that your PHP supports either CURL or has allow_url_fopen set to true.
Quickswitch is the only way to add iPaper functionality to existing content types.

nirvanajyothi’s picture

ok.Thanks a lot.

rares’s picture

Title: Am trapped...The previous attempt to convert this document to an iPaper failed. Click here... » Localhost
Status: Active » Closed (fixed)

Hi,
I should point out that the method you described in #4 above is now offered through the module - you can add the Quickswitch code through the module configuration page. This will have the same effect with your block, but will also re-theme the node attachments display to show the iPaper swf objects well (if you don't use node attachments to upload and show documents, then never mind.
I am closing this because it seems that your problems were due to use of localhost, which cannot possibly work with Quickswitch, and your configuration probably didn't support fopen/cURL either. If you have more problems on this, do update this thread or create a new one.
Rares

nirvanajyothi’s picture

will chk it.thank you

DZforum’s picture

Version: 6.x-1.0-beta » 5.x-1.0-rc2
Status: Closed (fixed) » Postponed (maintainer needs more info)

Hey folks, I have a very similar problem with ipaper. I am using drupal 5, no localhost, and I am using quickswitch. When I use the ipaper content to create a new post I get these errors:

warning: Missing argument 1 for ipaper_transfer() in /export/web/research03/drupal-5.7/sites/research.
cs.umn.edu.nsfrobotics/modules/ipaper/ipaper.module on line 299.

warning: Invalid argument supplied for foreach() in /export/web/research03/drupal-5.7/modules/
node/node.module on line 561.

warning: implode() [function.implode]: Invalid arguments passed in /export/web/research03/drupal-5.7/
modules/node/node.module on line 565.

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
/export/web/research03/drupal-5.7/includes/database.mysql.inc on line 174.

And the scribd interface never comes up, but if I use the page content to create iPaper I do get the scribd interface and it has only been successful with some pdf and doc files. In the other (fail) case, I get a message "fail to convert." Also I'm wondering, does iPaper support docx or pptx files (fail to open iPaper, only attaches files).

Thanks for any help.

DZforum’s picture

I found out that ipaper must of not support pptx and docx. Very unfortunate.

rares’s picture

Someone else is also having trouble with docx in #360994: Problems with Upload (ODT-Files, DOCX-Files), perhaps Tebser will find a solution there. If you go to Scribd online they will tell you they accept docx.
@DZForum, can you try to see if the problem is solved in rc4?
Also, can you explain if you are having this problem when you create an ipaper node in any circumstances, or just when you (don't) use quickswitch?

DZforum’s picture

The problem is present with docx and pptx every time when I upload the files. It just treats it as a upload module and gives a link. I don't know what you mean by rc4.

rares’s picture

rc4 is the latest version of the module. try installing it, maybe the problem will disappear. do uploads of other file types work?

rares’s picture

Status: Postponed (maintainer needs more info) » Fixed

@DZForum, The error you described is not related to the iPaper module. See, for instance #283805: error message in node.module on line 561.. This issue might have been caused by other modules, or if this was caused by iPaper, it should have been fixed. If you still have problems with iPaper please mark this active again or create a new issue.

rares’s picture

Version: 5.x-1.0-rc2 » 5.x-1.0-rc5

Status: Fixed » Closed (fixed)

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