APPPATH/classes/Controller/Index/Download.php [ 263 ]
258 if(self::$debug && Mystring::is_me()){
259 var_dump($r);
260 die();
261 }
262 //Mylog::write('dump_parse.txt', $url);
263 Mylog::write('debug_download.txt', 'Update url = ' . $r['response'][0]['url']);
264
265 $mp3->url = $r['response'][0]['url'];//Vkapi::get_url_mp3($mp3->oid, $mp3->aid);
266 $mp3->url_time = time();
267 $mp3->save();
268 }
-
APPPATH/classes/Controller/Index/Download.php [ 263 ] » Kohana_Core::error_handler(arguments)
0
integer 8
1
string(25) "Undefined index: response"
2
string(91) "/home/admin/web/dl3.vkmp3.org/public_html/application/classes/Controller/Index/Download.php"
3
integer 263
4
array(8) ( "rand" => integer 76 "work_percent" => string(3) "100" "oid_aid" => string(19) "157087877_456241136" "parts" => array(2) ( 0 => string(9) "157087877" 1 => string(9) "456241136" ) "oid" => integer 157087877 "aid" => integer 456241136 "mp3" => object Model_Mp3(34)
{ protected _reload_on_wakeup => bool FALSE protected _has_one => array(0) protected _belongs_to => array(0) protected _has_many => array(0) protected _load_with => array(0) protected _validation => NULL protected _object => array(16) ( "id" => string(7) "1869695" "url" => string(207) "https://psv4.vkuseraudio.net/s/v1/amp2/LeBxUcc6c1X95FbyoFawpY0bmvEHFVIDT6bXkNeB6c7KbU879pSuNuvy81ktmxkDDo4vOm-WeqMkNTQTSRG3bu7iG …" "artist" => string(28) "SAMMY FLASH ft. HAYKO & DAVO" "owner_id" => string(1) "0" "oid" => string(9) "157087877" "aid" => string(9) "456241136" "lid" => string(1) "0" "song" => string(55) "NAZANI (Extended Remix) (www.BlackMusic.do.am) New 2017" "duration" => string(3) "231" "show_artist_url" => string(1) "0" "show_song_url" => string(1) "0" "url_time" => string(10) "1671663143" "size" => NULL "bitrate" => NULL "artist_id" => string(6) "704682" "song_id" => NULL ) protected _changed => array(0) protected _original_values => array(16) ( "id" => string(7) "1869695" "url" => string(207) "https://psv4.vkuseraudio.net/s/v1/amp2/LeBxUcc6c1X95FbyoFawpY0bmvEHFVIDT6bXkNeB6c7KbU879pSuNuvy81ktmxkDDo4vOm-WeqMkNTQTSRG3bu7iG …" "artist" => string(28) "SAMMY FLASH ft. HAYKO & DAVO" "owner_id" => string(1) "0" "oid" => string(9) "157087877" "aid" => string(9) "456241136" "lid" => string(1) "0" "song" => string(55) "NAZANI (Extended Remix) (www.BlackMusic.do.am) New 2017" "duration" => string(3) "231" "show_artist_url" => string(1) "0" "show_song_url" => string(1) "0" "url_time" => string(10) "1671663143" "size" => NULL "bitrate" => NULL "artist_id" => string(6) "704682" "song_id" => NULL ) protected _related => array(0) protected _valid => bool TRUE protected _loaded => bool TRUE protected _saved => bool FALSE protected _sorting => NULL protected _foreign_key_suffix => string(3) "_id" protected _object_name => string(3) "mp3" protected _object_plural => string(4) "mp3s" protected _table_name => string(4) "mp3s" protected _table_columns => array(16) ( "id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(2) "id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 1 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(14) "auto_increment" "key" => string(3) "PRI" "privileges" => string(31) "select,insert,update,references" ) "url" => array(12) ( "type" => string(6) "string" "column_name" => string(3) "url" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 2 "character_maximum_length" => string(3) "511" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "artist" => array(12) ( "type" => string(6) "string" "column_name" => string(6) "artist" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 3 "character_maximum_length" => string(3) "511" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "owner_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(8) "owner_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 4 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "oid" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(3) "oid" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 5 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(3) "MUL" "privileges" => string(31) "select,insert,update,references" ) "aid" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(3) "aid" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 6 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "lid" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(3) "lid" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 7 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "song" => array(12) ( "type" => string(6) "string" "column_name" => string(4) "song" "column_default" => NULL "data_type" => string(7) "varchar" "is_nullable" => bool FALSE "ordinal_position" => integer 8 "character_maximum_length" => string(3) "511" "collation_name" => string(15) "utf8_unicode_ci" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "duration" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(8) "duration" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 9 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "show_artist_url" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(15) "show_artist_url" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 10 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "show_song_url" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(13) "show_song_url" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool FALSE "ordinal_position" => integer 11 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "url_time" => array(13) ( "type" => string(3) "int" "min" => string(20) "-9223372036854775808" "max" => string(19) "9223372036854775807" "column_name" => string(8) "url_time" "column_default" => NULL "data_type" => string(6) "bigint" "is_nullable" => bool FALSE "ordinal_position" => integer 12 "display" => string(2) "20" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "size" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(4) "size" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 13 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "bitrate" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(7) "bitrate" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 14 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "artist_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(9) "artist_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 15 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) "song_id" => array(13) ( "type" => string(3) "int" "min" => string(11) "-2147483648" "max" => string(10) "2147483647" "column_name" => string(7) "song_id" "column_default" => NULL "data_type" => string(3) "int" "is_nullable" => bool TRUE "ordinal_position" => integer 16 "display" => string(2) "11" "comment" => string(0) "" "extra" => string(0) "" "key" => string(0) "" "privileges" => string(31) "select,insert,update,references" ) ) protected _updated_column => NULL protected _created_column => NULL protected _serialize_columns => array(0) protected _primary_key => string(2) "id" protected _primary_key_value => string(7) "1869695" protected _table_names_plural => bool TRUE protected _db => object Database_MySQLi(6)
"r" => array(1) ( "error" => array(3) ( "error_code" => integer 100 "error_msg" => string(73) "One of the parameters specified was missing or invalid: audios is invalid" "request_params" => array(4) ( 0 => array(2) ( "key" => string(6) "audios" "value" => string(19) "157087877_456241136" ) 1 => array(2) ( "key" => string(1) "v" "value" => string(4) "5.90" ) 2 => array(2) ( "key" => string(6) "method" "value" => string(13) "audio.getById" ) 3 => array(2) ( "key" => string(5) "oauth" "value" => string(1) "1" ) ) ) ) ){ protected _connection_id => string(40) "fab1144e53f3732d7c2f511786db0faeed0bec7e" protected _identifier => string(1) "`" public last_query => string(66) "DELETE FROM `logaidsoids` WHERE `datetime` < '2024-04-18 19:42:43'" protected _instance => string(7) "default" protected _connection => object mysqli(19)
protected _db_group => NULL protected _db_applied => array(0) protected _db_pending => array(0) protected _db_reset => bool TRUE protected _db_builder => NULL protected _with_applied => array(0) protected _cast_data => array(0) protected _errors_filename => string(3) "mp3" }{ public affected_rows => NULL public client_info => NULL public client_version => NULL public connect_errno => NULL public connect_error => NULL public errno => NULL public error => NULL public error_list => NULL public field_count => NULL public host_info => NULL public info => NULL public insert_id => NULL public server_info => NULL public server_version => NULL public stat => NULL public sqlstate => NULL public protocol_version => NULL public thread_id => NULL public warning_count => NULL }
protected _config => array(5) ( "type" => string(6) "MySQLi" "connection" => array(3) ( "hostname" => string(9) "localhost" "database" => string(9) "vkmp3test" "persistent" => bool FALSE ) "table_prefix" => string(0) "" "charset" => string(4) "utf8" "caching" => bool FALSE ) }258 if(self::$debug && Mystring::is_me()){ 259 var_dump($r); 260 die(); 261 } 262 //Mylog::write('dump_parse.txt', $url); 263 Mylog::write('debug_download.txt', 'Update url = ' . $r['response'][0]['url']); 264 265 $mp3->url = $r['response'][0]['url'];//Vkapi::get_url_mp3($mp3->oid, $mp3->aid); 266 $mp3->url_time = time(); 267 $mp3->save(); 268 }
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Index_Download->action_start()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Index_Download(2)
{ public request => object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => string(59) "http://vkmp3.org/download/start/157087877_456241136/NEW.mp3" protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(39) "download/start/<oid_aid>/<name_mp3>.mp3" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(5) "Index" "controller" => string(8) "Download" "action" => string(5) "start" ) protected _route_regex => string(78) "#^download/start/(?P<oid_aid>[^/.,;?\n]++)/(?P<name_mp3>[^/.,;?\n]++)\.mp3$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(5) "Index" protected _controller => string(8) "Download" protected _action => string(5) "start" protected _uri => string(42) "download/start/157087877_456241136/NEW.mp3" protected _external => bool FALSE protected _params => array(2) ( "oid_aid" => string(19) "157087877_456241136" "name_mp3" => string(3) "NEW" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => string(59) "http://vkmp3.org/download/start/157087877_456241136/NEW.mp3" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(39) "download/start/<oid_aid>/<name_mp3>.mp3" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(5) "Index" "controller" => string(8) "Download" "action" => string(5) "start" ) protected _route_regex => string(78) "#^download/start/(?P<oid_aid>[^/.,;?\n]++)/(?P<name_mp3>[^/.,;?\n]++)\.mp3$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(5) "Index" protected _controller => string(8) "Download" protected _action => string(5) "start" protected _uri => string(42) "download/start/157087877_456241136/NEW.mp3" protected _external => bool FALSE protected _params => array(2) ( "oid_aid" => string(19) "157087877_456241136" "name_mp3" => string(3) "NEW" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol())); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 997 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool FALSE protected _referrer => string(59) "http://vkmp3.org/download/start/157087877_456241136/NEW.mp3" protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(39) "download/start/<oid_aid>/<name_mp3>.mp3" protected _regex => array(0) protected _defaults => array(3) ( "directory" => string(5) "Index" "controller" => string(8) "Download" "action" => string(5) "start" ) protected _route_regex => string(78) "#^download/start/(?P<oid_aid>[^/.,;?\n]++)/(?P<name_mp3>[^/.,;?\n]++)\.mp3$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(5) "Index" protected _controller => string(8) "Download" protected _action => string(5) "start" protected _uri => string(42) "download/start/157087877_456241136/NEW.mp3" protected _external => bool FALSE protected _params => array(2) ( "oid_aid" => string(19) "157087877_456241136" "name_mp3" => string(3) "NEW" ) protected _get => array(0) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}992 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 993 ':uri' => $this->_uri, 994 )); 995 } 996 997 return $this->_client->execute($this); 998 } 999 1000 /** 1001 * Returns whether this request is the initial request Kohana received. 1002 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 138 ] » Kohana_Request->execute()
133 /** 134 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 135 * If no source is specified, the URI will be automatically detected. 136 */ 137 echo Request::factory(TRUE, array(), FALSE) 138 ->execute() 139 ->send_headers(TRUE) 140 ->body(); 141 }