dreamingmind / bindery

CakePHP 1.3 Based Dreaming Mind Bindery Site
2 stars 2 forks source link

List option on workshops throws errors #249

Open curlyjason opened 9 years ago

curlyjason commented 9 years ago

Notice (8): Undefined offset: 0 [APP/Controller/WorkshopsController.php, line 137] Code Context

// debug($this->Workshop->workshops_all); // debug($article); $this->set('feature', $this->Workshop->workshops_all[$article[0]['Workshop']['id']]);

$collection = array() $article = array()

WorkshopsController::detail() - APP/Controller/WorkshopsController.php, line 137 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 111

Notice (8): Undefined index: [APP/Controller/WorkshopsController.php, line 137] Code Context

// debug($this->Workshop->workshops_all); // debug($article); $this->set('feature', $this->Workshop->workshops_all[$article[0]['Workshop']['id']]);

$collection = array() $article = array()

WorkshopsController::detail() - APP/Controller/WorkshopsController.php, line 137 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 111

Warning (2): Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/bindery/lib/Cake/Utility/Debugger.php:806) [CORE/Cake/Network/CakeResponse.php, line 435] Code Context

            $name, $c['value'], $c['expire'], $c['path'],
            $c['domain'], $c['secure'], $c['httpOnly']
        );

$name = 'dreamingmind[tag]' $c = array( 'name' => 'dreamingmind[tag]', 'value' => 'Q2FrZQ==.LUv5he7od/NJChC9NBO/mfzBhL9AO40mlhjWgCblK6YkJEYzVqrwdefVqxaZI4TGYd1qd4DtXKz09Ao/Aqqb5sbE', 'expire' => (int) 0, 'path' => '/', 'domain' => 'localhost', 'secure' => false, 'httpOnly' => true )

setcookie - [internal], line ?? CakeResponse::_setCookies() - CORE/Cake/Network/CakeResponse.php, line 435 CakeResponse::send() - CORE/Cake/Network/CakeResponse.php, line 407 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 169 [main] - APP/webroot/index.php, line 111

Warning (2): Invalid argument supplied for foreach() [APP/View/Elements/workshopFeature.ctp, line 29] Code Context

$accum = $costaccum = array(); // Button loop foreach ($feature['Session'] as $wksession) {

$viewFile = '/Library/WebServer/Documents/bindery/app/View/Elements/workshopFeature.ctp'

curlyjason commented 9 years ago

This is the same for the category buttons, too