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 shownwarning: 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
Comment #1
rares commentedHi,
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ş
Comment #2
nirvanajyothi commentedwas 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
Comment #3
rares commentedHmm, 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
Comment #4
nirvanajyothi commentedis 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...
Comment #5
rares commentedIf 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.
Comment #6
nirvanajyothi commentedok.Thanks a lot.
Comment #7
rares commentedHi,
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
Comment #8
nirvanajyothi commentedwill chk it.thank you
Comment #9
DZforum commentedHey 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:
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.
Comment #10
DZforum commentedI found out that ipaper must of not support pptx and docx. Very unfortunate.
Comment #11
rares commentedSomeone 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?
Comment #12
DZforum commentedThe 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.
Comment #13
rares commentedrc4 is the latest version of the module. try installing it, maybe the problem will disappear. do uploads of other file types work?
Comment #14
rares commented@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.
Comment #15
rares commented