mysql_real_escape_string() expects parameter 1 to be string, array given in /home/www/corpfarm.com/includes/database.mysql.inc on line 402.

Lack of good documentation
I applaud the effort in building that module but dam bro a good doc for S3, Blip is really welcome
and how do i ficx the erro above?

Comments

wallbay1’s picture

Other warning errors

* warning: array_shift() [function.array-shift]: The argument should be an array in /home/www/corpfarm.com/sites/all/modules/media_mover/media_mover_api.module on line 3135.
* warning: array_shift() [function.array-shift]: The argument should be an array in /home/www/corpfarm.com/sites/all/modules/media_mover/media_mover_api.module on line 3135.

arthurf’s picture

Status: Active » Postponed (maintainer needs more info)

Hi-

Could you confirm what version you are using? Your report says 5.1 which was mistakenly tagged version from months ago- latest stable is 1-0-BETA14, and there will be an RC1 sometime this week.

Can you give me the url that is generating this error? It would be helpful for tracking down where it is, since your report just gives the database.mysql, and there are a large number of db_query()s in the module

As per the documentation- yes you are right. It needs it. I need help building it. There is a handbook page started, I'd love contributions to it.

Thanks.

arthurf’s picture

Title: This module give me headache, I am gettin errors after errors after error, S3 doesn't seem to work » mysql_real_escape_string() expects parameter 1 to be string

Changing title to be specific to the bug report

ebeyrent’s picture

I am getting the same error warnings with version 5.x-1.x-dev. Here is an export of my configuration:

$configuration->harvest->module = 'mm_node';
$configuration->harvest->action = '2';
$configuration->harvest->configuration = array(
    'mm_node_types' => array(
'music_video' => 'music_video'
),
    'file_types' => 'avi mov wmv mpeg mp4 mpeg2 dv 3gp 3g2 mpeg4 mpg',
    'cid' => '3',
    'module' => 'mm_node',
    'action' => '2',
    'verb' => 'harvest',
 );
$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->storage->module = 'mm_brightcove';
$configuration->storage->action = '2';
$configuration->storage->configuration = array(
    'cid' => '3',
    'module' => 'mm_brightcove',
    'action' => '2',
    'verb' => 'storage',
 );
$configuration->complete->module = 'mm_cck';
$configuration->complete->action = '3';
$configuration->complete->configuration = array(
    'mm_cck_field_save_3' => 'field_media_file',
    'cid' => '3',
    'module' => 'mm_cck',
    'action' => '3',
    'verb' => 'complete',
 );
$configuration->required = array('mm_node','media_mover_api','mm_brightcove','mm_cck');
$configuration->name = 'Send video file to Brightcove';
$configuration->description = 'Send video file to Brightcove';
$configuration->start_time = '1233069701';
$configuration->last_start_time = '1233069566';
$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 = 1;
$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->hierarchy->parent = '0';'

Note that the storage module is mm_brightcove, which is largely copied from mm_bliptv.

ebeyrent’s picture

I looked at what the S3 module is doing in the send function and that's returning a string for $file. The bliptv module is returning an array, which seems to be what's causing the error.