| View previous topic :: View next topic |
| Author |
Message |
Skruu
Joined: 21 Apr 2007 Posts: 17
|
Posted: Mon Apr 14, 2008 11:47 am Post subject: Problem inserting Category select widget |
|
|
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 |
|
 |
Skruu
Joined: 21 Apr 2007 Posts: 17
|
Posted: Tue Apr 22, 2008 6:55 am Post subject: |
|
|
| Is there anybody who can point me in the right direction? |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Tue Apr 22, 2008 2:12 pm Post subject: |
|
|
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 |
|
 |
Skruu
Joined: 21 Apr 2007 Posts: 17
|
Posted: Tue Apr 22, 2008 10:02 pm Post subject: |
|
|
| 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 |
|
 |
Skruu
Joined: 21 Apr 2007 Posts: 17
|
Posted: Wed Apr 23, 2008 9:26 am Post subject: |
|
|
I have resolved the issue.
The standard generated code for a Category Select widget didn't globally define the cal-object globally.
Inserting
in my selectcategory.php component did the trick. |
|
| Back to top |
|
 |
xmvaldez
Joined: 01 May 2008 Posts: 11
|
Posted: Tue May 13, 2008 8:29 pm Post subject: |
|
|
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 |
|
 |
Skruu
Joined: 21 Apr 2007 Posts: 17
|
Posted: Wed May 14, 2008 1:18 pm Post subject: |
|
|
Add following code to your thyme installation in modules/joomla15/components/widget/catselect/publish.php on line 8
and republish your "category select" component.
Or look into another widgets publish code is this isn't clear enough. |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5268
|
Posted: Wed May 14, 2008 3:23 pm Post subject: |
|
|
| 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 |
|
 |
stevebab
Joined: 07 Apr 2008 Posts: 14
|
Posted: Wed May 28, 2008 4:33 am Post subject: Custom Field select Widget |
|
|
| Is it possible to create a drop down widget that will sort events according to some custom fields I created? |
|
| Back to top |
|
 |
|