Forum Activity for @nate

nate
@nate
03/19/15 02:43:09PM
917 posts

jrCore_confirm_media_file_is_local returns array


Jamroom Developers

We updated the S3 Modules last night and now the below function returns an array. Is this how it should work? Or is the code written wrong?

$input_file = jrCore_confirm_media_file_is_local($_queue['profile_id'], basename($input_file), $_it);

updated by @nate: 04/20/15 03:23:19PM
nate
@nate
03/19/15 01:15:23PM
917 posts

unable to confirm local audio file for conversion3


Jamroom Developers

This is now returning an array

Quote:
Array ( [_created] => 1426795788 [_updated] => 1426795789 [_user_id] => 90 [audio_bpm] => 22 [audio_key] => A-sharp minor [audio_isrc] => [audio_text] => 22 [_profile_id] => 106 [audio_album] => Demos [audio_genre] => Breaks-Big Beat [audio_split] => {"106":"100"} [audio_title] => N8 S2 [audio_active] => on [audio_lyrics] => 22 [audio_pending] => 0 [audio_remixer] => [audio_explicit] => off [audio_agreement] => agree [audio_album_url] => demos [audio_file_name] => Demo_Track_Three.mp3 [audio_file_size] => 1424716 [audio_file_time] => 1426795789 [audio_file_type] => audio/mpeg [audio_genre_url] => breaks-big-beat [audio_title_url] => n8-s2 [audio_file_title] => Track 03 [audio_file_track] => 1 [audio_image_name] => bxp70277h.jpg [audio_image_size] => 1241030 [audio_image_time] => 1426795789 [audio_image_type] => image/jpeg [audio_remix_type] => {"106":"mechanical"} [audio_file_length] => 00:01:29 [audio_file_bitrate] => 128 [audio_file_smprate] => 44100 [audio_max_end_date] => [audio_release_date] => 1426737600 [audio_advance_price] => 0.00 [audio_display_order] => 0 [audio_min_lic_price] => 0.00 [audio_advance_status] => 0 [audio_catalog_number] => [audio_file_extension] => mp3 [audio_min_start_date] => [audio_image_extension] => jpg [audio_distrib_lic_count] => 0 [audio_territories_covered] => WW [_item_id] => 192 )

Causing conversion to fail and reporting this
Quote: [Artist N8] : invalid file type received for conversion: - type is not supported

updated by @nate: 03/19/15 01:16:52PM
nate
@nate
03/19/15 08:53:47AM
917 posts

unable to confirm local audio file for conversion3


Jamroom Developers

This is the code that fails
$input_file = jrCore_confirm_media_file_is_local($_args['profile_id'], basename($input_file),$_args);
	//return false;
    if (!$input_file) {
        jrCore_logger('CRI', "Unable to create waveform image. Audio file not found");
        return true;
    }

What we're after is a workaround to avoid failure. We need to create a waveform image from the audio file.



updated by @nate: 03/19/15 08:58:39AM
nate
@nate
03/18/15 01:22:54PM
917 posts

Queue error logging


Jamroom Developers

 if (isset($_conf['jrAudio_conversion_format']) && strpos($_conf['jrAudio_conversion_format'], 'ogg')) {
        // Convert OGG sample file
        $nam = str_replace('.mp3', 'ogg', basename("xtDistribLicense_{$bid}_distriblicense_sample_file.mp3"));
        ob_start();
        system("{$sox} {$input_file} {$dir}/{$nam} trim {$start} {$sample_length} fade t 00:00:0{$fade}.0 00:00:{$sample_length}.0 00:00:0{$fade}.0 >/dev/null 2>{$tmp}", $ret);
        ob_end_clean();
        // See if we had errors
        if (is_file($tmp) && filesize($tmp) > 0) {
            $tmp = file_get_contents($tmp);
            if (stristr($tmp, 'FAIL')) {
                jrCore_logger('MAJ', "errors encountered creating OGG audio sample__2", $tmp);
                @unlink("{$input_file}.sample.ogg");
                @unlink($tmp);
                return false;
            }
        }
        if (is_file("{$dir}/{$nam}") && filesize("{$dir}/{$nam}") > 200) {
            jrCore_write_media_file($profile_id, $nam, "{$dir}/{$nam}");
        }
        @unlink($tmp);
        @unlink("{$dir}/{$nam}");
    }
nate
@nate
03/18/15 01:18:57PM
917 posts

Queue error logging


Jamroom Developers

Now that I look there is error checking already written. So they aren't the problem.
nate
@nate
03/18/15 01:16:47PM
917 posts

Queue error logging


Jamroom Developers

I understand I can log an error inside my queue functions. What his complaint is, is that the queue just hangs and we have to manually delete it. It reports nothing and if we don't check it, we won't even know something was stuck in the queue.

I'll add some error checking.
nate
@nate
03/01/15 03:53:32PM
917 posts

Admin Tools Image Upload


Jamroom Developers

This is resolved. Dumped the DB and did a fresh Install.
nate
@nate
02/18/15 04:36:01PM
917 posts

Admin Tools Image Upload


Jamroom Developers

Something is definitely broken. Even if I remove the image from the form completely, I still get the error.
nate
@nate
02/18/15 01:17:53PM
917 posts

Existing users.


Proxima

I had to reinstall my site. When I did, this stopped working. I'm using the latest version.
nate
@nate
02/17/15 09:10:02PM
917 posts

Admin Tools Image Upload


Jamroom Developers

I updated the form and got the form session to show
Quote: {"name":"advert_image","label":28,"help":29,"text":28,"validate":false,"form_designer":false,"required":0,"type":"image","module":"jrImage"}

But I still get the error from the ajax validation.
updated by @nate: 02/17/15 09:16:00PM
  63