Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • giggs Friend
    #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 Moderator
    #488512

    Hi giggs,

    This error seems due to the PHP version used xampp server, you can go to backend > global configuration and turn off error reporting.

    Regards

    giggs Friend
    #488616

    Thank 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?

    Saguaros Moderator
    #488804

    This often due to the PHP version of server, let me know if this issue persists when your site online 🙂

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

This topic contains 4 replies, has 2 voices, and was last updated by  Saguaros 11 years ago.

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