Mobile Theme not working

Permalink
Hi,

I'm really a newby in site building and I'm receiving an error messeage whenever I try to load my site on a mobile phone (iphone).

The error I get is:
"Fatal error: Call to a member function addHeaderItem() on a non-object in /home2/fnfpubic_html/fitup.pt/packages/mobile_theme/models/mobile_theme.php on line 41"

On line 41 of "mobile_theme.php" the code is:
$view->addHeaderItem(Loader::helper('html')->css('ccm.app.mobile.css','mobile_theme'));

What should I do to correct this error?

Thanks

 
JohntheFish replied on at Permalink Reply
JohntheFish
You are getting the error because the object '$view' does not exist within the context it is being called.

There are 2 alternate routes to solutions:
1. Create a view object
2. Look for an alternate object that is in context and supports the addheaderItem method.

If this is a marketplace theme, you need to contact the theme developer.

If this is your own development of a theme, then before anyone can help further we will need a bit more information about how it is structured and the code about the errant method call.