Warning (2): Missing argument 4 for ChartsController::view() [APP/Controller/ChartsController.php, line 17]Code Context
// album, genre, blues, weekly
public function view($type, $category, $chart_slug, $term, $start = '', $finish = '') {
$type = 'song'
$category = 'sub_genre'
$chart_slug = 'weekly'
ChartsController::view() - APP/Controller/ChartsController.php, line 17
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 123
Notice (8): Undefined variable: term [APP/Controller/ChartsController.php, line 20]Code Context $this->set('styles', array('index', 'soundmanager2/360player', 'soundmanager2/360player-visualization', 'tables', 'chart_element', 'remodal', 'remodal-default-theme'));
$this->set('scripts', array('soundmanager2/soundmanager2', 'remodal.min.js')); //, 'soundmanager2/berniecode-animator','soundmanager2/360player'
if (strtolower($term) == 'yearly') {
$type = 'song'
$category = 'sub_genre'
$chart_slug = 'weekly'
$start = ''
$finish = ''
ChartsController::view() - APP/Controller/ChartsController.php, line 20
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 123
Notice (8): Undefined variable: term [APP/Controller/ChartsController.php, line 24]Code Context // $this->render('/Charts/view-yearly');
} else {
$chart = $this->Chart->getChart($type, $category, $chart_slug, $term, $this->chartLength, $start, $finish);
$type = 'song'
$category = 'sub_genre'
$chart_slug = 'weekly'
$start = ''
$finish = ''
ChartsController::view() - APP/Controller/ChartsController.php, line 24
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 123
Notice (8): Undefined index: SubGenre [APP/Model/Chart.php, line 96]Code Context $model->recursive = -1;
$name = $model->findBySlug($chart_slug);
return $name['SubGenre']['name'];
$category = 'sub_genre'
$chart_slug = 'weekly'
$model = object(SubGenre) {
name => 'SubGenre'
displayField => 'name'
validate => array(
'genre_id' => array(
[maximum depth reached]
),
'name' => array(
[maximum depth reached]
)
)
belongsTo => array(
'Genre' => array(
[maximum depth reached]
)
)
hasMany => array(
'Article' => array(
[maximum depth reached]
),
'Review' => array(
[maximum depth reached]
),
'Song' => array(
[maximum depth reached]
),
'ChartsAs' => array(
[maximum depth reached]
)
)
hasAndBelongsToMany => array(
'Album' => array(
[maximum depth reached]
),
'Band' => array(
[maximum depth reached]
),
'RadioStation' => array(
[maximum depth reached]
),
'StaffMember' => array(
[maximum depth reached]
)
)
Echo => array(
'key' => 'B1IJ4UHC3UBZSCP63',
'consumer' => '75620342639f27690d058cce56d57281',
'secret' => 'FuYGgTH1Th2GD6Nzhjv9Nw'
)
seven => array(
'key' => '7dkka2tbdj9s',
'consumer' => 'dp7bb22weybw2v4d'
)
lastfm => array(
'key' => '110ab9e5abf91e571135c49da253f6ef',
'secret' => 'b8bbb71d672712ed290a5026c562cdab'
)
rovi => array(
'key' => 'neevbjpygqb7mjsvfy7thaea',
'secret' => 'P8D448VNZ4'
)
bitly => array(
'key' => '33e78a0ef19298099adcc167657ab96f2b81ee18'
)
useDbConfig => 'default'
useTable => 'sub_genres'
id => false
data => array()
schemaName => 'rootsmus_database'
table => 'sub_genres'
primaryKey => 'id'
validationErrors => array()
validationDomain => null
tablePrefix => ''
plugin => null
alias => 'SubGenre'
tableToModel => array(
'sub_genres' => 'SubGenre'
)
cacheQueries => false
hasOne => array()
actsAs => null
Behaviors => object(BehaviorCollection) {}
whitelist => array()
cacheSources => true
findQueryType => null
recursive => (int) -1
order => null
virtualFields => array()
__backAssociation => array()
__backInnerAssociation => array()
__backOriginalAssociation => array()
__backContainableAssociation => array()
findMethods => array(
'all' => true,
'first' => true,
'count' => true,
'neighbors' => true,
'list' => true,
'threaded' => true
)
[protected] _schema => array(
'id' => array(
[maximum depth reached]
),
'genre_id' => array(
[maximum depth reached]
),
'name' => array(
[maximum depth reached]
),
'slug' => array(
[maximum depth reached]
),
'chart' => array(
[maximum depth reached]
),
'default' => array(
[maximum depth reached]
),
'created' => array(
[maximum depth reached]
),
'modified' => array(
[maximum depth reached]
)
)
[protected] _associationKeys => array(
'belongsTo' => array(
[maximum depth reached]
),
'hasOne' => array(
[maximum depth reached]
),
'hasMany' => array(
[maximum depth reached]
),
'hasAndBelongsToMany' => array(
[maximum depth reached]
)
)
[protected] _associations => array(
(int) 0 => 'belongsTo',
(int) 1 => 'hasOne',
(int) 2 => 'hasMany',
(int) 3 => 'hasAndBelongsToMany'
)
[protected] _insertID => null
[protected] _sourceConfigured => true
[protected] _eventManager => object(CakeEventManager) {}
[protected] _validator => null
}
$name = array()
Chart::getChartName() - APP/Model/Chart.php, line 96
ChartsController::view() - APP/Controller/ChartsController.php, line 27
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 123
Notice (8): Undefined variable: term [APP/Controller/ChartsController.php, line 30]Code Context
$title = ' Top 50 ' . $chart_group . ' ' . ucfirst($type) . ' Chart'; //ucfirst($term).
if ($term == "weekly") {
$type = 'song'
$category = 'sub_genre'
$chart_slug = 'weekly'
$start = '2025-01-25'
$finish = ''
$chart = array()
$chart_group = null
$title = ' Top 50 Song Chart'
ChartsController::view() - APP/Controller/ChartsController.php, line 30
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 123
Notice (8): Undefined variable: term [APP/Controller/ChartsController.php, line 32]Code Context if ($term == "weekly") {
$subtitle = 'for the Week of ' . $this->Format->date($start, 'standard');
} elseif ($term == "monthly") {
$type = 'song'
$category = 'sub_genre'
$chart_slug = 'weekly'
$start = '2025-01-25'
$finish = ''
$chart = array()
$chart_group = null
$title = ' Top 50 Song Chart'
ChartsController::view() - APP/Controller/ChartsController.php, line 32
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 123
Notice (8): Undefined variable: term [APP/Controller/ChartsController.php, line 34]Code Context } elseif ($term == "monthly") {
$subtitle = 'for the Month of ' . date('F', strtotime($start));
} elseif ($term == 'quarterly') {
$type = 'song'
$category = 'sub_genre'
$chart_slug = 'weekly'
$start = '2025-01-25'
$finish = ''
$chart = array()
$chart_group = null
$title = ' Top 50 Song Chart'
ChartsController::view() - APP/Controller/ChartsController.php, line 34
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 123
Notice (8): Undefined variable: term [APP/Controller/ChartsController.php, line 36]Code Context } elseif ($term == 'quarterly') {
$subtitle = 'for the ' . $this->Format->ordinal($start) . ' Quarter of ' . date('Y', strtotime($finish));
} elseif ($term == 'yearly') {
$type = 'song'
$category = 'sub_genre'
$chart_slug = 'weekly'
$start = '2025-01-25'
$finish = ''
$chart = array()
$chart_group = null
$title = ' Top 50 Song Chart'
ChartsController::view() - APP/Controller/ChartsController.php, line 36
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 123
Notice (8): Undefined index: SubGenre [APP/Controller/ChartsController.php, line 62]Code Context
$sub_genre = $this->SubGenre->findBySlug($chart_slug);
if($sub_genre['SubGenre']['slug'] === $sub_genre['Genre']['slug']){
$type = 'song'
$category = 'sub_genre'
$chart_slug = 'weekly'
$start = '2025-01-25'
$finish = ''
$chart = array()
$chart_group = null
$title = ''
$subtitle = ''
$facebook = array(
'title' => 'Roots Music Report: ',
'image' => 'http://www.rootsmusicreport.com/img/rmr.icon.png',
'description' => ''
)
$conditions = array()
$sub_genre = array()
ChartsController::view() - APP/Controller/ChartsController.php, line 62
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 123
Notice (8): Undefined index: Genre [APP/Controller/ChartsController.php, line 62]Code Context
$sub_genre = $this->SubGenre->findBySlug($chart_slug);
if($sub_genre['SubGenre']['slug'] === $sub_genre['Genre']['slug']){
$type = 'song'
$category = 'sub_genre'
$chart_slug = 'weekly'
$start = '2025-01-25'
$finish = ''
$chart = array()
$chart_group = null
$title = ''
$subtitle = ''
$facebook = array(
'title' => 'Roots Music Report: ',
'image' => 'http://www.rootsmusicreport.com/img/rmr.icon.png',
'description' => ''
)
$conditions = array()
$sub_genre = array()
ChartsController::view() - APP/Controller/ChartsController.php, line 62
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 123
Notice (8): Undefined variable: term [APP/Controller/ChartsController.php, line 63]Code Context $sub_genre = $this->SubGenre->findBySlug($chart_slug);
if($sub_genre['SubGenre']['slug'] === $sub_genre['Genre']['slug']){
$redirect = Configure::read('Site.site') . 'charts/view/' . $type . DS . 'genre' . DS . $chart_slug . DS . $term . DS . $start . DS . $finish;
$type = 'song'
$category = 'sub_genre'
$chart_slug = 'weekly'
$start = '2025-01-25'
$finish = ''
$chart = array()
$chart_group = null
$title = ''
$subtitle = ''
$facebook = array(
'title' => 'Roots Music Report: ',
'image' => 'http://www.rootsmusicreport.com/img/rmr.icon.png',
'description' => ''
)
$conditions = array()
$sub_genre = array()
ChartsController::view() - APP/Controller/ChartsController.php, line 63
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 486
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 187
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162
[main] - APP/webroot/index.php, line 123