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();

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.

yes that worked! thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.