Results 1 to 12 of 12
  1. #1
    Join Date
    Jun 2012
    Posts
    3

    Default SiteGround Joomla 2.5 (?) template error message

    I have a new version of Joomla 2.5 installed. Installed SiteGround template "Green Pattern", which says it is for 2.5 on the first page of the SiteGround website, but when you go to download, it says you are downloading a 1.7 version. The new 2.5 version loads but gives shows: Fatal error: Call to a member function getCfg() on a non-object in ... Please advise what to do as I'd like to use this template.

    www.roseokeefe.com/2012

    Thank you
    Lonna

  2. #2
    Join Date
    Apr 2008
    Location
    At home
    Posts
    752

    Default

    Have you made any modifications to the template? It seems that there is a general problem with your installation rather than the template itself. Please check for any empty lines of text after the closing ?> php tag?

    In addition, I have made few tweaks on the template itself. Could you try downloading it anew from our site?

  3. #3
    Join Date
    Jun 2012
    Posts
    3

    Default

    Will do and will let you know. Thank you for getting back to me so quickly.

  4. #4
    Join Date
    Jun 2012
    Posts
    3

    Default

    Nope - it seems that we get this error message on the templates labeled for Joomla 2.5 from this site, but not from others. Now, when we go to download the template it says that we are downloading a Joomla 1.6 template. Is the link for this template correct on your website? Could it be downloading an older version? I'd really like to use the Green Pattern template if I could.
    Thanks
    Lonna Cosmano

  5. #5
    Join Date
    Apr 2008
    Location
    At home
    Posts
    752

    Default

    If possible, could you give me access to your site(on PM please) so I can test the template myself? I have installed it on a fresh Joomla app and it works without any error so I believe it is something with your particular site. As to your other question, Joomla 2.5 and Joomla 1.6 are from the same major version branch and share the same templates so that's not the problem in our case for sure.

  6. #6
    Join Date
    Aug 2012
    Posts
    1

    Default

    Hello I have the same problem.

    There is the following error:


    Fatal error: Call to a member function getCfg() on a non-object in /index.php on line 1

    And it is the same with all the siteground templates.

    I am using joomla 2.5.6

    Any ideas?

    Thank you

    Chris

  7. #7
    Join Date
    Apr 2008
    Location
    At home
    Posts
    752

    Default

    Hi Chris,

    I think you're trying to use a Joomla 1.5 template on a Joomla 2.5.6 website Could you check again the version of the templates you've downloaded?

  8. #8
    Join Date
    Oct 2012
    Posts
    2

    Default This issue isn' linked to joomla version ...

    Hi,

    This isn't a pb linked to Joomla versions.
    I succeed to use the template named "siteground-j16-35" on my web site tested locally with WampServer tool but when I move it to a OVH server, I face this error too.
    The file configuration.php seems to be badly located by "siteground" template into index.php (i.e. $app->getCfg('sitename') function)

  9. #9
    Join Date
    Apr 2008
    Location
    At home
    Posts
    752

    Default

    Hi,

    This is standard code:

    <h1><a href="<?php echo $this->baseurl ?>"><?php echo $app->getCfg('sitename'); ?></a></h1>

    That's the way you display the site name on a Joomla 2.5 template. I am using the same code on all templates that work just fine on thousands of sites. Maybe there is some misconfiguration or badly edited core files in your particular instance? If you are our customer, please post a ticket in your Help Desk and mention that, we have discussed this in the forum. I am afraid that without looking at the particular case I cannot say what's the exact reason for this error message.

  10. #10
    Join Date
    Oct 2012
    Posts
    2

    Default

    I have solved my problem by adding this line at the beginning of the file : /templates/siteground-j16-35/templates.php
    define('JPATH_PLATFORM', 'https://.../libraries/joomla');

    But when I try to open a second web page, I face the same issue.

    Is there another solution if my web site isn't installed in the root location of OVH URL purchased (see below) ?
    <OVH base URL>/monsite1/<joomla site> instead of <OVH base URL>/<joomla site> ?

  11. #11

    Default

    The problem seems to be specific for the setup of your hosting provider. The best course of action would be to contact them and ask them for assistance.

  12. #12
    Join Date
    Mar 2013
    Posts
    2

    Default

    I think you're trying to use a Joomla 1.5 template on a Joomla 2.5.6 website

    what does hmu mean

Similar Threads

  1. Siteground template error after upgrading Joomla RC3 to RC4
    By RuudM in forum Free Joomla Templates
    Replies: 13
    Last Post: 01-01-2010, 06:02 AM
  2. Keep getting an error message
    By cyn in forum Free Joomla Templates
    Replies: 1
    Last Post: 03-17-2009, 01:37 PM
  3. PHP error message help!
    By arnfinson in forum Hosting Related Questions
    Replies: 1
    Last Post: 10-07-2008, 02:24 AM
  4. Replies: 2
    Last Post: 01-10-2007, 10:47 PM
  5. Joomla Admin Error Message
    By rollyf in forum General Joomla Discussions
    Replies: 1
    Last Post: 11-11-2006, 09:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •