Forum topic: Error: Video upload failed. Invalid credentials

I'm getting the following error when my cron.php runs:

Video upload failed. Invalid credentials. video_id: 1

I created an account here on OpenPackage Media, bought $5 of credit, and have double checked my username / password a few times.

Any ideas?

Thanks,
Chuck

Hi Chuck

This is very weird. Your site is trying to authenticate with an unhashed password. op_video hashes your openpackage.biz password before storing it.

Did you manually set the 'op_video_openpackage_hash' variable to be your unhashed password?

Actually, after snooping around in the code it seems like the entire _op_video_admin_settings_submit() function is not being recognized by Drupal. It seems that system_settings_form($form) is actually defining the submit path as the default and ignoring the custom submit form.

When I change:
return system_settings_form($form)

To:

$form['submit'] = array('#type' => 'submit', '#value' => 'Save configuration');
return $form;

That seems to work for me. Any ideas?

Thanks,
Chuck

P.S. - I'm using Drupal 5.7.

This is most irregular!

Can you produce this on a clean Drupal install with no other modules?

Unfortunately, I am not able to spend any more time on this. I took over this project after an unexperienced Drupal developer had hacked at Drupal for a while, so I have no idea if he had messed anything up. If you aren't seeing this on other sites I would assume that my error was specific to my site.

Thanks,
Chuck

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <b>
  • Lines and paragraphs break automatically.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options