View Full Version : Siteground template error after upgrading Joomla RC3 to RC4
RuudM
01-10-2008, 06:52 PM
Hello,
This fine template works fine with RC3 but after my upgrade not any more on RC4. After uploading RC4 (nb 4-1-08) I got the error
Fatal error: Call to a member function getItems() on a non-object in /home/xxxxxx/public_html/templates/siteground/sg_menus/SGMenu.php on line 87
line 87 reads: "$rows = $menu->getItems( 'menutype', 'topmenu' );"
What does this line do? Which menu? Could it be related to the fact that I have deleted the top-right menu-code in the html?
Thx for any help.
Svetlio
01-12-2008, 08:37 AM
It is quite difficult to debug a modified Joomla installation using the data, posted in the forum.
Please post a ticket in the Script Installation Help category through your Customer Area->Get Support->Get Support-Help Desk and we will try to resolve the issue which you have experienced.
RuudM
01-13-2008, 06:12 AM
Thanks for your reply, let me first refrase the question: is the standard Siteground template working fine on Joomla RC4?
Svetlio
01-13-2008, 09:19 AM
In order to check the issue I have just downloaded the SiteGround's template and set it in a fresh Joomla 1.5 RC4 installation. There were no error messages.
Probably there were some additional modifications in your Joomla web site and they caused the issue.
Please post a ticket regarding the issue and provide us with detailed instructions on how to recreate the problem at our end. Then it will be easier to look for a solution.
knoakes
01-25-2008, 08:40 AM
You can fix this easily if you don't need cascading ,menus.
Go to the template administration and enter the Siteground configuration.
Then turn off cascading top menu.
If you need them then you may need to change code but can't help you there.
mmorris
02-10-2008, 09:11 PM
When i install the siteground template i get the following errors.
Fatal error: Call to a member function getItems() on a non-object in C:\xampp\htdocs\templates\siteground\sg_menus\SGMe nu.php on line 87
I really want to use the drop down menu! can anyone give me any advice!
Thanks!
It would be best if you post a ticket regarding your issue. This way we'll be able to recreate it on our end and look for a solution.
mmorris
02-13-2008, 01:30 PM
where do i post this ticket i tryed under support but i get this error!
Login Failed. Username or Password not recognised
Please check this tutorial (http://www.siteground.com/tutorials/getting_started/customers_post_ticket.htm) to see how to use your Help Desk and how to open a support ticket :)
mmorris
02-14-2008, 02:18 PM
I got it working! there is some wrong coding in the sgmenu.php file!
mmorris
02-15-2008, 01:28 PM
change the following text on line 83 from:
$menu = @JMenu :: getInstance();
to:$menu = JSite :: getMenu();
Svetlio
02-18-2008, 07:52 AM
Thank you for the feedback.
I have informed our web designers about the issue and your solution. They will check it.
mmorris
02-18-2008, 06:14 PM
No problem! let me know if they have any other sugestions!
I have one more problem when i use ' in the site name like car's it shows up as car\'s
do you have any ideas what i need to do to fix this????
Thanks