Fatal error: Call to a member function colorScheme() on a no

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
darkodelta
Forum Newbie
Posts: 1
Joined: Mon Mar 28, 2011 3:16 am

Fatal error: Call to a member function colorScheme() on a no

Post by darkodelta »

Im getting this error what i try to run site :

Fatal error: Call to a member function colorScheme() on a non-object in C:\xampp\htdocs\wordpress\wp-content\themes\Traction PRO Child Theme v1.0\traction_pro\header.php on line 28

And code on line 28 is this:

<?php if ( ($traction->colorScheme() != 'default' ) ) { ?>

Whats wrong with it? :?:
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Fatal error: Call to a member function colorScheme() on

Post by Darhazer »

Where $traction is initialized?
Post Reply