Home · Links · Contact Us
Home arrow Forums
Home
Features
FAQ
Screen Shots
Modules
Themes
Demos
Documentation
Forums
Contact Us
Download
Purchase
Quotes

" ... I want to tell you that your thyme product is functional and valuable beyond words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."

" ... Thanks for such a complete project, its making my job much easier. ..."

" ... I have now deployed 4 different calendars and our users love them ... "

" ... Easy to install and use and a great look/design. ..."

" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."


  FAQFAQ    SearchSearch  RegisterRegister   Log inLog in 
Problem inserting Category select widget

 
Post new topic   Reply to topic     Forum Index -> Joomla / Mambo Integration
View previous topic :: View next topic  
Author Message
Skruu



Joined: 21 Apr 2007
Posts: 17

PostPosted: Mon Apr 14, 2008 11:47 am    Post subject: Problem inserting Category select widget Reply with quote

I created a component "SelectCategory" in Joomla Studio.
Showing a preview of this component works fine.

Whenever I try to incorporate the component in a Joomla Studio page I get following error when saving the page.

Code:
Fatal error: Call to a member function get_categories() on a non-object in /var/www/html/thyme/modules/joomla15/projects/infonet/published/components/selectcategory.php on line 28


Other widgets like Calendar Select, and Date Select work fine.

How can I resolve this so I can use the Category select box?
Back to top
View user's profile Send private message
Skruu



Joined: 21 Apr 2007
Posts: 17

PostPosted: Tue Apr 22, 2008 6:55 am    Post subject: Reply with quote

Is there anybody who can point me in the right direction?
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5268

PostPosted: Tue Apr 22, 2008 2:12 pm    Post subject: Reply with quote

Hi,

Can you make sure you are up to date in Admin -> Installer -> Updates inside of Thyme please? Let me know if this doesn't resolve it.
Back to top
View user's profile Send private message Visit poster's website
Skruu



Joined: 21 Apr 2007
Posts: 17

PostPosted: Tue Apr 22, 2008 10:02 pm    Post subject: Reply with quote

Thyme is installed in a network which isn't connected to the internet. Using the Update Manager isn't an option. Can I manually update all newer files from a freshly downloaded trial install? What files must I not touch to keep my activation intact?
Back to top
View user's profile Send private message
Skruu



Joined: 21 Apr 2007
Posts: 17

PostPosted: Wed Apr 23, 2008 9:26 am    Post subject: Reply with quote

I have resolved the issue.

The standard generated code for a Category Select widget didn't globally define the cal-object globally.

Inserting
Code:
global $cal;
in my selectcategory.php component did the trick.
Back to top
View user's profile Send private message
xmvaldez



Joined: 01 May 2008
Posts: 11

PostPosted: Tue May 13, 2008 8:29 pm    Post subject: Reply with quote

I am having the same problem and I am up to date with the the software. I don't see where exactly you enter this code. When I go into the component, there is no option to alter the code. I tried inserting the code in the page I created, but that did not help.
Thanks
Back to top
View user's profile Send private message
Skruu



Joined: 21 Apr 2007
Posts: 17

PostPosted: Wed May 14, 2008 1:18 pm    Post subject: Reply with quote

Add following code to your thyme installation in modules/joomla15/components/widget/catselect/publish.php on line 8

Code:

global $cal;


and republish your "category select" component.

Or look into another widgets publish code is this isn't clear enough.
Back to top
View user's profile Send private message
esoft_ian



Joined: 12 Sep 2005
Posts: 5268

PostPosted: Wed May 14, 2008 3:23 pm    Post subject: Reply with quote

Sorry for any inconvenience. I'll get this fixed in the code today so that this page modification is not necessary. Thank you Skruu for porting out and finding the problem.
Back to top
View user's profile Send private message Visit poster's website
stevebab



Joined: 07 Apr 2008
Posts: 14

PostPosted: Wed May 28, 2008 4:33 am    Post subject: Custom Field select Widget Reply with quote

Is it possible to create a drop down widget that will sort events according to some custom fields I created?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Joomla / Mambo Integration All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
© 2005 eXtrovert software unless otherwise noted. All rights reserved.
Portions © 2004 Ben Brown. All rights reserved.
Trademarks are property of their respective owners.