Fatal Error using Joomla 1.6


Author Message
jc

Posted: 2/25/2011
Quote message 

I receive the following error when making a template built in Artisteer 3.0 the default template in Joomla 1.6:

Fatal error: Cannot access protected property ContentViewArticle::$user in C:\xampp\htdocs\joomla16\templates\test_template\functions.php on line 168

I can't seem to figure out why this is happening. During my own troubleshooting I uploaded the same template to a live Joomla 1.5 site and made it the default template. Everything works fine.

The following is the string located on line 168 of the template's functions.php:

$this->canEdit = $document->user->authorise('core.edit', 'com_content.frontpage.' . $this->item->id);


Any thoughts?


Please advise.

-jc
 
Krish

Posted: 2/27/2011
Quote message 

I am also facing the same problem. Please help.
 
Mostschädl

Posted: 2/28/2011
Quote message 

Artisteer did not support templates for Joomla 1.6 :-D :-D :-D

You must change some lines of html code by hand..... :-P
 
jrgweb.net

Posted: 2/28/2011
Quote message 

WOW!! What did artisteer do to you. LOL

That said, there are 100's of web design utilities to design web-sites. All have their place in the market. I've chosen artisteer as one of many tools that I use. I don't know any web-designer that only has 1 tool whether
on-line or software package.

I would recommend artisteer!!!!!

jrgweb
 
jc

Posted: 2/28/2011
Quote message 

I picked up this quick solution reading another thread:

Make a change in Line 168 of functions.php to:


$this->canEdit = false;


Seemed to do the trick for me. Ghey, but it works.
 
jmaz24

Posted: 3/2/2011
Quote message 

I get a fatal error but mine is on line 11:

$messages = $mainframe->getMessageQueue();

Anyone else run into this?

 
mario

Posted: 3/3/2011
Quote message 

I have identical trouble,
Fatal error: Call to a member function getMessageQueue() on a non-object in /home/m/a/mariohrubysk/public_html/templates/mariohruby/functions.php on line 17

Installed Joomla 1.6.0, version of used Artisteer SW - 2.6.0.36391 Standard Edition

What with this? According to my information template created in 2.6.0 must work in Joomla 1.6.0
Thx for answer
 
Garry

Posted: 3/9/2011
Quote message 

Upgrading to PHP 5 may also be helpful.
 
jennifer

Posted: 3/9/2011
Quote message 

change
$messages = $mainframe->getMessageQueue(); 

into
$app =&JFactory::getApplication(); $messages = $app->getMessageQueue();
Joomla 1.6 doesn't use $mainframe anymore
 
Rookie

Posted: 3/9/2011
Quote message 

Quote jennifer:

change
$messages = $mainframe->getMessageQueue(); 

into
$app =&JFactory::getApplication(); $messages = $app->getMessageQueue();
Joomla 1.6 doesn't use $mainframe anymore


Thanks for the info, but what file do i change?

 
jennifer

Posted: 3/10/2011
Quote message 

It's in the /templates/<your-artisteer-template>/functions.php file
 
TK421

Posted: 3/11/2011
Quote message 

Jennifer:

Thank you for the info. I made the change and am now faced with this:

Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\Joomla\templates\absolute\functions.php on line 17

:-O
 
jennifer

Posted: 3/14/2011
Quote message 

what line of code is on line 17?
 
TK421

Posted: 3/17/2011
Quote message 

Jennifer, thanks for responding. I did some searching and found this solution:

edit the php.ini file.

set error_reporting to E_ALL & ~E_NOTICE
display_errors = Off

found here:

http://forum.joomla.org/viewtopic.php?p=2408917#p2408917
 
zafar Imam

Posted: 3/18/2011
Quote message 

Quote jc:

I picked up this quick solution reading another thread:

Make a change in Line 168 of functions.php to:


$this->canEdit = false;


Seemed to do the trick for me. Ghey, but it works.

Wow JC, those facing Line 168 problem should do this trick.
Thanks JC for your support. Off course, tricks matter ;-)
 
Gryff

Posted: 11/5/2011
Quote message 

same error, but when I try to change from... $this-> to false; I get a syntax error and it doesn't work :(
 
Léo Muniz

Posted: 11/6/2011
Quote message 

Experimente ver se há outros templates instalados para o site. Se houver, selecione-o e vá em editar. Desmarque todas as opções que estiverem marcadas. Pronto. isso funcionou comigo. E recebia a mesma mensagem que o mario. Boa sorte a todos. Grande abraço...
 
Léo Muniz

Posted: 11/6/2011
Quote message 

(translated google translator) - Try to see yourself there other paragraph of site templates installed o. There yourself, select it and go edit them. Uncheck any that are marked as optional. Pronto. This to me worked. And got the same message that Mario. All of a good fortune. Big hug ...