0

Getting an error on line 302 (which is the one that starts: If (Is_Object($GLOBALS ... )

Can anyone see the problem?

If (!Is_File($template_file)) $template_file = $this->get_default_template();
    // Look whats the current post
    If (Is_Object($GLOBALS['post'])) $this->the_current_post = clone $GLOBALS['post'];
    
    // Use the template
    Ob_Start();
2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by jessicaZ
0

Try the following:

if (!is_file($template_file)) { $template_file = $this->get_default_template(); }
    // Look whats the current post
    if (is_object($GLOBALS['post'])) { $this->the_current_post = $GLOBALS['post']; }
    
    // Use the template
    ob_start();

Also don't forget that php is case sensitive.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.