Forum Activity for @nate

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.


Installation and Configuration

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
nate
@nate
02/17/15 09:00:34PM
917 posts

Admin Tools Image Upload


Jamroom Developers

I see this is the form session, form fields column.
Quote:{"name":"advert_image","label":28,"help":29,"text":28,"type":"image","required":0,"module":"jrImage"}
No mention of validate. And I see this for other fields.
Quote:{"name":"advert_title_id","label":30,"help":31,"sublabel":171,"type":"live_search","target":"https:\/\/n8flex.com\/px_msone\/live_titles","validate":false,"form_designer":false,"required":0,"module":"jrCore"},

I've deleted in many times and it just comes back the same way.
updated by @nate: 02/17/15 09:05:45PM
nate
@nate
02/17/15 06:11:08AM
917 posts

PhpStorm


Off Topic

Just create a project from exiting files with jamroom as the root directory.
  63