test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • dietcheese Friend
    #133143

    Hi,

    I am using JA_Mageia 1.4 and Joomla 1.5.6. I was using Joomla 1.5.4 but upgraded to try and fix this problem. My development site is here: http://group.plusgroupus.com/

    I get some errors in footer.php after installing the template:

    <blockquote>Warning: require_once(libraries/joomla/utilities/date.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/templates/ja_mageia/footer.php on line 18</blockquote>

    So I commented out this line:

    <blockquote>
    ja_mageia/footer.php

    //require_once(‘libraries/joomla/utilities/date.php’);
    </blockquote>

    Which seemed to fix the problem until I noticed a second error (that was preventing my template’s CSS files from being parsed):

    <blockquote>
    Fatal error: Class ‘JDate’ not found in /var/www/templates/ja_mageia/footer.php on line 19
    </blockquote>

    Maybe there is a path problem someplace? I have verified that the ‘libraries/joomla/utilities/date.php’ file does exist.

    Any help would be much appreciated.

    Thanks,
    DC

    mustafak Friend
    #269754

    Try to paste this instead of your lines, it should work:

    defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );

    global $_VERSION;
    require_once(‘libraries/joomla/utilities/date.php’);
    $date = new JDate();
    $config = new JConfig();
    // NOTE – You may change this file to suit your site needs
    ?>
    <small>Copyright © <?php echo $date->toFormat( ‘2008’ ) . ‘ ‘ . $config->sitename;?>.

    dietcheese Friend
    #269757

    Mustafak:

    That is essentially the original footer.php code. It doesn’t work for me.

    However, I got it to work by changing:

    <blockquote>require_once(‘libraries/joomla/utilities/date.php’);</blockquote>

    to

    <blockquote>require_once(/’my/full/path/to/libraries/joomla/utilities/date.php’);</blockquote>

    Hope that helps someone. 🙂

    DC

    mustafak Friend
    #269758

    Good 🙂

    ……

    <em>@dietcheese 78882 wrote:</em><blockquote>Mustafak:

    That is essentially the original footer.php code. It doesn’t work for me.

    However, I got it to work by changing:

    to

    Hope that helps someone. 🙂

    DC</blockquote>

    Sherlock Friend
    #269882

    HI
    Can i msrk this topic is solved ?

    mustafak Friend
    #269927

    yes please

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 3 voices, and was last updated by  mustafak 16 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum