help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
[SOLVED] Error message on main Events page
[SOLVED] Error message on main Events page
7 years 1 month ago
I added a few new events, then noticed that at the top of my main events page, I see the following error message:
"Strict Standards: Only variables should be assigned by reference in /home/mainfolder/public_html/templates/extendsim/index.php on line 2"
This error does not appear on any event pages nor on a categories page, just the main list of events. I deleted the new events I added, but the error message remains on my html page. What does the error mean and how can I delete it?
Thank you!
"Strict Standards: Only variables should be assigned by reference in /home/mainfolder/public_html/templates/extendsim/index.php on line 2"
This error does not appear on any event pages nor on a categories page, just the main list of events. I deleted the new events I added, but the error message remains on my html page. What does the error mean and how can I delete it?
Thank you!
Please Log in or Create an account to join the conversation.
Re: [SOLVED] Error message on main Events page
7 years 1 month ago
hi, welcome on this forum where users try to help users. You can help too, giving more informations about your system. Normally we try to reproduce the issue, but for that we need more. Without possibility to reproduce, there's no help!
The following user(s) said Thank You: extendsim
Please Log in or Create an account to join the conversation.
Re: [SOLVED] Error message on main Events page
7 years 4 weeks ago
You have to analyse the file "/home/mainfolder/public_html/templates/extendsim/index.php" where on line 2 an ampersand is used (sometimes) wrongly. Because we don't know this site template we can't give any advanced help.
Please Log in or Create an account to join the conversation.
Re: [SOLVED] Error message on main Events page
7 years 4 weeks ago
There IS an ampersand in line 2. Here are the first 7 lines of the template....
<?php defined( '_JEXEC' ) or die( 'Restricted access' );
$doc =& JFactory::getDocument();
$title = $doc->getTitle();
$app = JFactory::getApplication();
$this->setTitle( $title . ' | ' . $app->getCfg( 'sitename' ) );
$menu = $app->getMenu();
if ($menu->getActive() == $menu->getDefault()) {
Shall I remove the ampersand in line 2?
For the moment, I have turned Error Reporting off so the error message no longer shows on the page. But I would like to correct whatever the issue is.
Thank you so much for your advice!
~Kathi
<?php defined( '_JEXEC' ) or die( 'Restricted access' );
$doc =& JFactory::getDocument();
$title = $doc->getTitle();
$app = JFactory::getApplication();
$this->setTitle( $title . ' | ' . $app->getCfg( 'sitename' ) );
$menu = $app->getMenu();
if ($menu->getActive() == $menu->getDefault()) {
Shall I remove the ampersand in line 2?
For the moment, I have turned Error Reporting off so the error message no longer shows on the page. But I would like to correct whatever the issue is.
Thank you so much for your advice!
~Kathi
Please Log in or Create an account to join the conversation.
Time to create page: 0.459 seconds