Page 1 of 1

Call to member function getFile() on a non-object Front.php

Posted: Wed Jul 27, 2011 9:08 pm
by ckonig
Hello
When trying to add my own AJAX callback function to the catalog/product/product controller, I get the following error:

Code: Select all

atal error: Call to a member function getFile() on a non-object in /home/xxx/domains/xxx/public_html/system/engine/front.php on line 34
I am seriously confused because it worked before several times.
when i enter the url to the product controller manually, I also get this error.
But for all other public functions it works fine!
What am I missing?
This is the function I added to the controller (prototype of course)

Code: Select all

 public function shipping(){
        return 'test';
    }

Re: Call to member function getFile() on a non-object Front.

Posted: Wed Jul 27, 2011 9:14 pm
by ckonig
stupid me....
replace

Code: Select all

return 'test';
with

Code: Select all

echo 'test';
and everything is fine