Monday, August 25, 2014

Re: migration issue

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 157
line 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 well
<?php

 
include '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 method
public 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 validation
        if(!$this->session_login_check()){$this->redirect(array('controller' => 'admins', 'action' => 'login'));}
    }
    


?>
On Saturday, August 23, 2014 5:47:08 PM UTC-4, Dallas wrote:
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: