VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

PHP Notice: Undefined variable: bodyClass
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: PHP Notice: Undefined variable: bodyClass

PHP Notice: Undefined variable: bodyClass 02 Aug 2018 23:18 #11148

Joomla error.log is full of messages:
PHP Notice: Undefined variable: bodyClass in <joomla_dir>/templates/jf_taman/index.php on line 198

How I can get rid of them?

System information:
Joomla! 3.8.11 Stable
PHP 5.6.37
mysql 5.5.59-cll-lve

Thanks in advance!
BR
/Dražen

  • Posts:1
  • drazenko
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: PHP Notice: Undefined variable: bodyClass 03 Aug 2018 02:49 #11149

You can edit template file index.php, at line 43 modify:
 
if ($menu->getActive() == $menu->getDefault()) {
$bodyClass = 'home ';
}
 

to:
 
$bodyClass = '';
if ($menu->getActive() == $menu->getDefault()) {
$bodyClass = 'home ';
}
 


joomfreak
The following user(s) said Thank You: drazenko

  • Posts:2819
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.76 seconds
Tuesday 15 October 2019

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.