-
AuthorPosts
-
September 9, 2008 at 1:25 pm #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,
DCmustafak Friendmustafak
- Join date:
- August 2008
- Posts:
- 31
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
September 9, 2008 at 1:33 pm #269754Try 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;?>.September 9, 2008 at 1:45 pm #269757Mustafak:
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 Friendmustafak
- Join date:
- August 2008
- Posts:
- 31
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
September 9, 2008 at 1:52 pm #269758Good 🙂
……
<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>
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by mustafak 16 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum