Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2015-02-20 11:59:33

discuss4u
Member
Registered: 2013-03-06
Posts: 163

[FIXED IN 2.0.1] MultiServer not working

Just upgraded to 1.2.3

After upgrading, Multiserver is not working, after converting videos, they are kept in main server and it is in the "converting" process forever.

I have test the video server from admin panel and it can successfully upload file.flv and delete file.flv.

I have two servers running two ASPRO and both have the same problem. So I think it is not the problem of server.

The following is copied from debug mode:

VException [ 0 ]: VException [ 0 ]: exception 'ErrorException' with message 'Undefined variable: db' in /home/public_html/modules/video/helpers/server.php:238 Stack trace: #0 /home/public_html/modules/video/helpers/server.php(238): VError::error_handler(8, 'Undefined varia...', '/home/...', 238, Array) #1 /home/public_html/modules/video/helpers/server.php(213): VHelper_video_server::update('1') #2 /home/public_html/modules/video/helpers/conv.php(132): VHelper_video_server::process_upload(Array, 11, false, true, false, true, Object(VVideo)) #3 /home/public_html/admin/modules/video/components/upload_ftp.php(274): VHelper_video_conv::process(11, '/home/...', Object(VVideo), true) #4 /home/public_html/admin/modules/video/components/upload_ftp.php(184): VComponent_Admin_video_upload_ftp->process_video(Array, 1, Array, 'public', 0, 1, 0) #5 /home/public_html/admin/modules/video/video.php(51): VComponent_Admin_video_upload_ftp->render() #6 /home/public_html/admin/index.php(25): VModule_Admin_video->render() #7 {main} ~ /home/public_html/admin/modules/video/video.php [ 53 ]
/home/public_html/admin/index.php [ 27 ]
22     try {
23         require $module_path;
24         $obj = new $module_class();
25         $obj->render();
26     } catch (Exception $e) {
27         throw new VException($e);
28     }
29 } else {
30     throw new VException('Invalid admin module format! Aborting!');
31 }
32
Environment

Last edited by discuss4u (2015-02-20 13:43:50)

Offline

#2 2015-02-20 15:33:00

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: [FIXED IN 2.0.1] MultiServer not working

Pff...thats a stupid bug. Please edit modules/video/helpers/server.php and find:

        VF::factory('database')->query(
            "UPDATE #__server
             SET last_used = '".$db->escape(date('Y-m-d h:i:s'))."',
                 total_videos = total_videos+1
             WHERE server_id = ".$server_id."
            LIMIT 1");

replace with:

        VF::factory('database')->query(
            "UPDATE #__server
             SET last_used = '".date('Y-m-d h:i:s')."',
                 total_videos = total_videos+1
             WHERE server_id = ".$server_id."
            LIMIT 1");

Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2015-02-20 18:31:15

discuss4u
Member
Registered: 2013-03-06
Posts: 163

Re: [FIXED IN 2.0.1] MultiServer not working

It works now. Thanks!

Offline

Board footer

Powered by FluxBB