[solved] Fatal error: Call to a member function redirect()

More
15 years 4 months ago #1697 by gymrat
I have installed Joomla 1.5.14 on my local server using Mamp and have downloaded Flexicontent Beta 5a.

I created a menu item with a single content item type. I get an error message after clicking on the menu item in the front end:

Notice: Undefined variable: mainframe in /Volumes/Websites/htdocs/xxxx/site/components/com_flexicontent/models/items.php on line 160

Fatal error: Call to a member function redirect() on a non-object in /Volumes/Websites/htdocs/xxxx/site/components/com_flexicontent/models/items.php on line 160


But when I set the menu item to category type, it worked. Haven't tested it for tags or favorites types yet.

This looks like a great component and look forward to using it. Hope I can resolve this problem. Thank you.

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #1698 by vistamedia
Hi and welcome on our forum,
Open components/com_flexicontent/models/items.php
Line 128 add:
Code:
global $mainframe;
And it should be better.
Cheers,
Emmanuel.

FLEXIcontent lead developer.
www.vistamedia.fr web agency and custom development.
www.joomla.fr co-administrator.
Please no PM for support request, use the forum for that!!!

Please Log in or Create an account to join the conversation.

More
15 years 3 months ago #1759 by gymrat
Thank you very much for the quick reply! The component and support level has been superb! I will try out the solution and will let you know. Am enjoying the use of this component. Lots of "pre-work" need to be done but in the long run this component will shorten content creation time! Thank you for the wonderful work!!

Please Log in or Create an account to join the conversation.

More
15 years 3 months ago #1777 by gymrat
the solution did the trick. here is what i did in the items.php file

Found this code:
Code:
line 128 /* * Load the Item data */ line 131 if ($this->_loadItem())

Changed to:
Code:
line 128 global $mainframe; /* * Load the Item data */ line 132 if ($this->_loadItem())

The layout looks really nice as is, really no need to create own template. Again, thanks for a terrific component and for the help!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.318 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save