-
AuthorPosts
-
March 29, 2013 at 5:16 pm #186306
Hi i’m using the template jp-amard and the Help & Support send me here. On the site that i’m creating, is not online yet i’m using xampp to edit it, is showed one error on the header saying ” Strict Standards: Only variables should be assigned by reference in C:xampphtdocsJoomla2templatesjp-amardblocksheader.php on line 17″,i never changed anything on the php file and i’m getting this error, could you guys help me please? This is a project and my deadline is coming up so please gimme some feedfack.
This is the code from the header.php
[PHP]<?php
$app = & JFactory::getApplication(); <—- This is the line 17
$siteName = $app->getCfg(‘sitename’);
if ($this->getParam(‘logoType’, ‘image’)==’image’): ?>
<h1 class=”logo”>
<a href=”index.php” title=”<?php echo $siteName; ?>”>
<img src=”<?php echo ‘templates/’.T3_ACTIVE_TEMPLATE.’/images/logo-trans.png’ ?>” atl=”<?php echo $siteName; ?>” />
</a>
</h1>
<?php else:
$logoText = (trim($this->getParam(‘logoText’))==”) ? $siteName : JText::_(trim($this->getParam(‘logoText’)));
$sloganText = JText::_(trim($this->getParam(‘sloganText’))); ?>
<div class=”logo-text”>
<h1><a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $logoText; ?></span></a></h1>
<p class=”site-slogan”><?php echo $sloganText;?></p>
</div>
<?php endif; ?>[/PHP]Sorry for the bad english and many thanks for the help.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 2, 2013 at 4:50 pm #488616Thank you for the reply Saguaros, I already change the settings on Error Reporting to Simple and the errors dissapear, but this solution will only hide the problems and when i put the site online will it appear again or it will be no problems?
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by Saguaros 11 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum