careyhuang in #264976: Can install it on Drupal 6.2

in drupal 5.7 version, I'll have to click on "convert to iPaper" to be able to show iPaper document, can it be done in a auto way while the content is posted, the iPaper itself will convert the uploaded doc in to iPaper and display??

CommentFileSizeAuthor
#3 ipaper.module.patch1.29 KBrares

Comments

rares’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)

Hi,

On my installations I don't have this behavior, so there is a slight chance that this is due to the configuration on the server. You should normally be taken directly to /ipaper_transfer/node_id after you create or save a document. Do you have any modules that could be redirecting to another page when you save a node?

Also, perhaps you are being redirected but the document doesn't transfer, and thus you return to the node page because you don't. Are you receiving any other errors? If you enable logging on the module, do you see any requests to scribd.com being logged in watchdog when you create a node?

Finally, what version of php do you use with your 5.x Drupal?

--Rareş
www.calumea.ro

careyhung’s picture

hi Rares,

i'm testing iPaper on my local server
so the url is like "http://HostIp/drupal6/"

once I posted iPaper content, it'll direct me to:

"http://HostIp/drupal6//drupal6/ipaper_transfer/9"

which is a "page not found" page, the url is not point to the right place
maybe that's why I need to click it manually

rares’s picture

Status: Postponed (maintainer needs more info) » Fixed
StatusFileSize
new1.29 KB

I've attached a patch that fixes the issue and redirect to ipaper_transfer correctly (the patch works for both 5.x and 6.x)
Basically you need to get rid of the url() function where ipaper.module sets $_REQUEST['destination'] = url("ipaper_transfer/$node->nid");
This bug was only affecting installations that had the drupal main path under a subdirectory.

You can get the updated code at cvs.drupal.org
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/ipaper/ipap...

Anonymous’s picture

Status: Fixed » Closed (fixed)

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