or try searching the error message in google “Fatal error: Call to a member function parseAccept() on a non-object” for more results
Andras
On Aug 25, 2014, at 5:39 PM, 'Dallas' via CakePHP <cake-php@googlegroups.com> wrote:
Thank you Andras,I have now gotten rid of those errors and now only have one that comes up on every page. I am new to cake, someone else created this site, which I am now attempting to get back up and maintain. The error I now get on all pages refers to the RequestHandler in cake library - here is the error it is this line for all the different pages. Please let me know if you know how to fix. Thanks again for all the help!!!!!!Fatal error: Call to a member function parseAccept() on a non-object in/home/dallasrosie/public_html/musicthatjumpedtheshark.com/lib/Cake/Controller/Component/RequestHandlerComponent.php on line 157line 157 from the RequestHandler is:protected function _setExtension() {$accept = $this->request->parseAccept();if (empty($accept)) {return;}Here is a basic page of code from one of the controllers, however I am getting this error on the index page as wellOn Saturday, August 23, 2014 5:47:08 PM UTC-4, Dallas wrote:<?phpinclude 'includes/defines.php';include 'includes/base_app_controller.php';class CommentsController extends BaseAppController{public $name = 'Comments';public $helpers = array('Html', 'Form', 'Session' );public $components = array('Session', 'RequestHandler');// Pass through the request and response objects// AND declare the visibility of the methodpublic function __construct($request = null, $response = null){parent::__construct($request, $response);}public function beforeFilter() {parent::beforeFilter();$this->layout = 'home';$this->pageTitle = 'Music That Jumped the Shark ~ admin';}}function index(){// login validationif(!$this->session_login_check()){$this->redirect(array('controller' => 'admins', 'action' => 'login'));}}?>does anyone know how this should be<?php e($html->image('index_01.jpg'));?></td> and<?php e($html->css('shark')); ?>shark being my stylesheet. when I removed the above css line, my background came up. So I do not know if I no longer need these lines or if the language has changed. They were calling for undefined functions in the error messages.Thanks for any help--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment