Import not working

bendodd - February 6, 2009 - 18:56
Project:Media Mover
Version:6.x-1.0-beta2
Component:User interface
Category:bug report
Priority:normal
Assigned:arthurf
Status:reviewed & tested by the community
Description

It seems the import functionality is not working. It says it's imported, although the configuration is not listed and the database table is empty.

The import then returns you to a normal configuration create page which is blank. Export values below:

Thanks, Ben

$configuration->harvest->module = 'mm_cck';
$configuration->harvest->action = '1';
$configuration->harvest->configuration = array(
'mm_config_harvest_field' => array(
'field_schools_showcase_movie' => 'field_schools_showcase_movie'
),
'file_types' => 'avi mov wmv mpeg mp4 mpeg2 dv 3gp 3g2 mpeg4',
'cid' => '1',
'module' => 'mm_cck',
'action' => '1',
'verb' => 'harvest',
);
$configuration->process->module = 'mm_ffmpeg';
$configuration->process->action = '1';
$configuration->process->configuration = array(
'ffmpeg_output_type' => 'flv',
'ffmpeg_audio_advanced' => '1',
'ffmpeg_audio_ab' => '64k',
'ffmpeg_audio_ar' => '22050',
'ffmpeg_audio_acodec' => 'libmp3lame',
'ffmpeg_video_advanced' => '1',
'ffmpeg_video_size' => '0',
'ffmpeg_video_size_other' => '',
'ffmpeg_video_fps' => '25',
'ffmpeg_video_br' => '250k',
'ffmpeg_video_vcodec' => 'flv',
'ffmpeg_time_advanced' => '0',
'ffmpeg_time' => '30',
'ffmpeg_video_custom' => '0',
'ffmpeg_video_custom_command' => '-i %in_file %out_file',
'ffmpeg_output_perms' => '0644',
'cid' => '1',
'module' => 'mm_ffmpeg',
'action' => '1',
'verb' => 'process',
);
$configuration->storage->module = 'mm_s3';
$configuration->storage->action = '1';
$configuration->storage->configuration = array(
'mm_s3_bucket' => 'rnd09-mm',
'cid' => '1',
'module' => 'mm_s3',
'action' => '1',
'verb' => 'storage',
);
$configuration->complete->module = 'mm_cck';
$configuration->complete->action = '3';
$configuration->complete->configuration = array(
'mm_cck_field_save_3' => 'field_schools_showcase_movie_s3',
'cid' => '1',
'module' => 'mm_cck',
'action' => '3',
'verb' => 'complete',
);
$configuration->required = array('mm_cck','mm_ffmpeg','mm_s3','mm_cck');
$configuration->name = 'Schools Showcase Movies';
$configuration->description = 'Schools Showcase Movies';
$configuration->start_time = '1233226146';
$configuration->last_start_time = '1233180108';
$configuration->status = 'stopped';
$configuration->settings = '';
$configuration->hierarchy->parent = '0';

#1

arthurf - February 8, 2009 - 23:41
Assigned to:Anonymous» arthurf
Status:active» patch (to be ported)

This was the result of the export function not working as expected. I've cleaned up the export routine and things seem to be right now. This still needs to be ported up to D6

#2

arthurf - February 9, 2009 - 00:03
Status:patch (to be ported)» fixed

Ported up to D6

#3

System Message - February 23, 2009 - 00:10
Status:fixed» closed

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

#4

mfb - May 12, 2009 - 21:01
Status:closed» active

I cannot import these configurations on Drupal 6 version, any idea what the problem might be?

<?php
$configuration
= new stdClass;
$configuration->required = array('mm_node', 'mm_ffmpeg', 'media_mover_api', 'media_mover_api');
$configuration->name = 'ffmpeg wav to mp3 conversion';
$configuration->cid = '4';
$configuration->description = 'will convert uploaded wav files to mp3s';
$configuration->start_time = '1241819107';
$configuration->last_start_time = '1241818810';
$configuration->status = 'stopped';
$configuration->complete->module = 'media_mover_api';
$configuration->complete->action = '1';
$configuration->complete->configuration =  array(
 
'cid' => '4',
 
'module' => 'media_mover_api',
 
'action' => '1',
 
'verb' => 'complete'
);
$configuration->complete->cid = '4';
$configuration->harvest->module = 'mm_node';
$configuration->harvest->action = '2';
$configuration->harvest->configuration =  array(
 
'cid' => '4',
 
'module' => 'mm_node',
 
'action' => '2',
 
'verb' => 'harvest'
);
$configuration->harvest->cid = '4';
$configuration->process->module = 'mm_ffmpeg';
$configuration->process->action = '1';
$configuration->process->configuration =  array(
 
'ffmpeg_output_type' => 'mp3',
 
'ffmpeg_audio_advanced' => '1',
 
'ffmpeg_audio_ab' => '64',
 
'ffmpeg_audio_ar' => '44100',
 
'ffmpeg_acodec' => 'libmp3lame',
 
'ffmpeg_video_advanced' => '0',
 
'ffmpeg_video_size' => '128x96',
 
'ffmpeg_video_fps' => '25',
 
'ffmpeg_video_br' => '50k',
 
'ffmpeg_vcodec' => 'asv1            ASUS V1',
 
'ffmpeg_time_advanced' => '0',
 
'ffmpeg_time' => '30',
 
'ffmpeg_video_wm' => '0',
 
'ffmpeg_video_wm_file' => '',
 
'ffmpeg_output_perms' => '0644',
 
'ffmpeg_audio_acodec' => 'libmp3lame',
 
'ffmpeg_video_vcodec' => 'asv1            ASUS V1',
 
'cid' => '4',
 
'module' => 'mm_ffmpeg',
 
'action' => '1',
 
'verb' => 'process'
);
$configuration->process->cid = '4';
$configuration->storage->module = 'media_mover_api';
$configuration->storage->action = '1';
$configuration->storage->configuration =  array(
 
'cid' => '4',
 
'module' => 'media_mover_api',
 
'action' => '1',
 
'verb' => 'storage'
);
$configuration->storage->cid = '4';

$configuration = new stdClass;
$configuration->required = array('mm_node', 'mm_ffmpeg', 'media_mover_api', 'media_mover_api');
$configuration->name = 'ffmpeg video to flv conversion';
$configuration->cid = '5';
$configuration->description = 'ffmpeg video to flv conversion';
$configuration->start_time = '1241819107';
$configuration->last_start_time = '1241818810';
$configuration->status = 'stopped';
$configuration->complete->module = 'media_mover_api';
$configuration->complete->action = '1';
$configuration->complete->configuration =  array(
 
'cid' => '5',
 
'module' => 'media_mover_api',
 
'action' => '1',
 
'verb' => 'complete'
);
$configuration->complete->cid = '5';
$configuration->harvest->module = 'mm_node';
$configuration->harvest->action = '2';
$configuration->harvest->configuration =  array(
 
'cid' => '5',
 
'module' => 'mm_node',
 
'action' => '2',
 
'verb' => 'harvest'
);
$configuration->harvest->cid = '5';
$configuration->process->module = 'mm_ffmpeg';
$configuration->process->action = '1';
$configuration->process->configuration =  array(
 
'ffmpeg_output_type' => 'flv',
 
'ffmpeg_audio_advanced' => '1',
 
'ffmpeg_audio_ab' => '64',
 
'ffmpeg_audio_ar' => '44100',
 
'ffmpeg_acodec' => 'mp3',
 
'ffmpeg_video_advanced' => '1',
 
'ffmpeg_video_size' => '128x96',
 
'ffmpeg_video_fps' => '25',
 
'ffmpeg_video_br' => '50k',
 
'ffmpeg_vcodec' => 'flv             Flash Video',
 
'ffmpeg_time_advanced' => '0',
 
'ffmpeg_time' => '30',
 
'ffmpeg_video_wm' => '0',
 
'ffmpeg_video_wm_file' => '',
 
'ffmpeg_output_perms' => '0644',
 
'ffmpeg_audio_acodec' => 'mp3',
 
'ffmpeg_video_vcodec' => 'flv             Flash Video',
 
'cid' => '5',
 
'module' => 'mm_ffmpeg',
 
'action' => '1',
 
'verb' => 'process'
);
$configuration->process->cid = '5';
$configuration->storage->module = 'media_mover_api';
$configuration->storage->action = '1';
$configuration->storage->configuration =  array(
 
'cid' => '5',
 
'module' => 'media_mover_api',
 
'action' => '1',
 
'verb' => 'storage'
);
$configuration->storage->cid = '5';
?>

#5

mfb - May 22, 2009 - 21:09
Status:active» closed

Well, I gave up on this and recreated my configurations from scratch after upgrading to the latest Drupal 6 version. Haven't yet tested if export/import are working.

#6

arthurf - May 28, 2009 - 12:06

This is now fixed in 6.x It was looking for the wrong cache table.

#7

mihha - August 7, 2009 - 16:44
Version:5.x-5.1» 6.x-1.0-beta2
Status:closed» active

Seams that import is not working (again?)

For example I am trying to import this:

$configuration = new stdClass;
$configuration->required = array('media_mover_ftp', 'media_mover_api', 'mm_node', 'mm_s3');
$configuration->name = 'ftp to node and s3';
$configuration->cid = '3';
$configuration->description = '<p>get from ftp (mp3 wav wma m4a)  save to new node (audio product)  save to s3</p>';
$configuration->start_time = '1246268504';
$configuration->last_start_time = '1246231666';
$configuration->status = 'stopped';
$configuration->settings->mma_file_perm = '0';
$configuration->settings->mma_file_mask = '0644';
$configuration->settings->mma_node_edit_item_show = '0';
$configuration->settings->mma_node_item_delete = '1';
$configuration->settings->mma_node_config_rss = '0';
$configuration->settings->mma_cron_notify = '0';
$configuration->settings->mma_cron_notify_email = '';
$configuration->settings->mma_cron_notify_time = '10';
$configuration->settings->mma_process_num = '0';
$configuration->settings->mma_storage_num = '0';
$configuration->settings->mma_complete_num = '0';
$configuration->complete->module = 'mm_s3';
$configuration->complete->action = '2';
$configuration->complete->configuration =  array(
  'mm_s3_bucket' => 'my.defined.bucket',
  'mm_s3_perm' => 'private',
  'mm_s3_delete_source' => '0',
  'cid' => '3',
  'module' => 'mm_s3',
  'action' => '2',
  'verb' => 'complete'
);
$configuration->complete->cid = '3';
$configuration->storage->module = 'mm_node';
$configuration->storage->action = '4';
$configuration->storage->configuration =  array(
  'node_save_type' => 'audio_product',
  'node_save_files' => '1',
  'node_save_override' => '0',
  'node_save_options' =>  array(
    'comment' => '0',
    'status' => '0',
    'promoted' => '0',
    'sticky' => '0'
  ),
  'node_save_name' => '',
  'node_title_default' => 'File harvested from ftp',
  'node_body_default' => '<p>This was created without any additional information</p>',
  'cid' => '3',
  'module' => 'mm_node',
  'action' => '4',
  'verb' => 'storage'
);
$configuration->storage->cid = '3';
$configuration->process->module = 'media_mover_api';
$configuration->process->action = '1';
$configuration->process->configuration =  array(
  'cid' => '3',
  'module' => 'media_mover_api',
  'action' => '1',
  'verb' => 'process'
);
$configuration->process->cid = '3';
$configuration->harvest->module = 'media_mover_ftp';
$configuration->harvest->action = '1';
$configuration->harvest->configuration =  array(
  'mm_ftp_user' => 'ftp_user',
  'mm_ftp_pass' => 'ftp_pass',
  'mm_ftp_host' => 'ftp.domain.tld',
  'mm_ftp_dir' => '.',
  'mm_ftp_allowed_files' => 'mp3 wav wma m4a',
  'mm_ftp_harvest_without_tokens' => '0',
  'mm_ftp_delete_files' => '0',
  'mm_ftp_delete_files_no_token' => '0',
  'cid' => '3',
  'module' => 'media_mover_ftp',
  'action' => '1',
  'verb' => 'harvest'
);
$configuration->harvest->cid = '3';
$configuration->hierarchy->parent = '0';

#8

arthurf - September 15, 2009 - 05:16

This import works for me under 6.1x - maybe it's time to make a new release?

#9

szczym - September 17, 2009 - 03:00
Status:active» reviewed & tested by the community

i just tested on 2 fresh drupal installs with mm-dev from 2009-Sep-17

it was possible to export and than import the confing from one to other one.

:))))

#10

arthurf - September 17, 2009 - 03:11

Great! Progress!

 
 

Drupal is a registered trademark of Dries Buytaert.