JPane error in template after upgrade J2.5 -> J3.1

More
11 years 3 weeks ago #40958 by mtgt
Hi,
I just migrate from 2.5 to 3.1 and I my pages are not display at all.

I got this error Fatal error: Class 'JPane' not found in /home3/mtgt69/public_html/nomadsroad/components/com_flexicontent/templates/pays/item.php on line 24

Something with Class 'JPane' in my own template probably but I don't know what.

I use JPane for my tab, here is the line 24:
$myTabs = & JPane::getInstance ( 'tabs',array('startOffset'=>0) );

An help will be nice
Thanks in advance
Greg

Greg
"La vie n'est qu'opportunité !" ;-)

www.nomadsroad.com Nomads Road - Une aventure interactive autour du monde
www.voyage-australie-nz.com Infos pour préparer son voyage en Australie et en Nouvelle-Zélande

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

More
11 years 3 weeks ago #40961 by ggppdk
Hello

this an issue with your template you are using JPane which is removed in J3.1

you need to use: JHtml::_('tabs...');

e.g. see an example below (it has an if to check joomla version)
Code:
<?php if (!FLEXI_J16GE) { // Joomla 1.5 $myTabs = JPane::getInstance ( 'tabs',array('startOffset'=>0) ); } echo FLEXI_J16GE ? // START the -SET- of TABs JHtml::_('tabs.start') : // J1.5 $myTabs ->startPane( 'stat-pane' ); // J2.5 / J3.1 echo FLEXI_J16GE ? // START a TAB JHtml::_('tabs.panel', 'General Title', 'general' ) : $myTabs->startPanel( 'General Title', 'general' ) ; ... ... // TAB contents (single tab) ... echo FLEXI_J16GE ? '' : // end of TAB J1.5 $myTabs->endPanel(); // end of TAB J2.5 / J3.1 echo FLEXI_J16GE ? // start of next TAB ... JHtml::_('tabs.panel', 'Ratings Title', 'ratings' ) : $myTabs->startPanel( 'Ratings Title', 'ratings' ) ; ?>


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 2 weeks ago #41060 by mtgt
Hi,

It's working but I can't get my language back, I put
Code:
echo FLEXI_J16GE ? // START a TAB JHtml::_('tabs.panel', 'FLEXI_FIRST_TAB', 'A Propos' ) : $myTabs->startPanel( 'FLEXI_FIRST_TAB', 'A Propos' ) ;

But that display FLEXI_FIRST_TAB in the TAB in place of A Propos which is in fr-FR.com_flexicontent.ini
FLEXI_FIRST_TAB="A Propos"

I've tried different way but I was not able to display the language variable

How do I have to enter the variable to display it?

Thanks in advance for your help

Greg
"La vie n'est qu'opportunité !" ;-)

www.nomadsroad.com Nomads Road - Une aventure interactive autour du monde
www.voyage-australie-nz.com Infos pour préparer son voyage en Australie et en Nouvelle-Zélande

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

More
11 years 2 weeks ago #41061 by ggppdk
Hello

if 'FLEXI_FIRST_TAB' is a language string the use:
Code:
JText::_('FLEXI_FIRST_TAB')

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 2 weeks ago #41065 by mtgt
Thank you very much

it work now :D

Greg
"La vie n'est qu'opportunité !" ;-)

www.nomadsroad.com Nomads Road - Une aventure interactive autour du monde
www.voyage-australie-nz.com Infos pour préparer son voyage en Australie et en Nouvelle-Zélande

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.302 seconds
Save
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