Hey everybody.

I love this module but I've been struggling with it.

I've been making some experiments with the "Additional document properties:". E really need to get the "disable_print=1" and "disable_select_text=1" working automatically on every upload.

I tought my experiments have damaged the database so I started all over again after the first appearance of the 650 error but even on a fresh install the error remains.

I can disable print and select one time only by the "Assign these parameters to all existing nodes" button. I can't do it again. Every other upload I do remains the same and does't not accept the parameters even using the button.

This is the last log entrie before the error:

Type ipaper
Date Sunday, March 7, 2010 - 13:50
User njjl
Location http://xx.net
Referrer http://xx.net/xx/?q=ipaper_transfer/5
Message Action: docs.changeSettings, Document ID: 27964195 URL: http://api.scribd.com/api?&title=fdg+fd+s&access=private&license=ns&link...
Severity notice
Hostname xx.xxx.xxx.xxx
Operations

Could this be related with the update of drupal core from 6.5 to 6.6?

Comments

njjl’s picture

I found out the problem but I don't know how to solve it.
On "Licensing on scribd.com:" you can't select "Unspecified - No licensing information shown" or you will get the error.

I tried to search but I have no idea where these lines of code are.

Can someone give me a hint?

yngvewb’s picture

I'm getting the same error "Scribd error #650: Invalid parameter value". I'll look into this more

njjl’s picture

Did you selected "Unspecified - No licensing information shown" option?

yngvewb’s picture

Njjl, you are right, I did have the "Unspecified - No licensing information shown" option. I changed it and don't see the error anymore :-) Thanks!

POVYLAZZZ’s picture

But what if what if I what unspecified licence? xD

mrP’s picture

Version: 6.x-1.1 » 6.x-1.x-dev

We just need to pull out he 'ns' licensing option from function ipaper_license_options() in ipaper.module.

references to 'ns' are:
1. ipaper.module

function ipaper_license_options() {
  return array(
    'ns' => t('Unspecified - no licensing information shown'),
...
}

2. ipaper.module

function theme_ipaper_license($node) {
if ($node->license == 'ns' || $node->license == '' || $node->license == NULL)
...
}

3. ipaper.upload.inc

function ipaper_saveAPIparams($node){
...
    //if license is unspecified, don't send anything to scribd
    $params['license'] = ($node->license=='ns') ? $node->license : NULL;
...
}