WordPress.org

Ready to get started?Download WordPress

Forums

WPCareers
Fatal error on line 20, jp_rss.php (1 post)

  1. simonhayre
    Member
    Posted 1 year ago #

    in include/jp_rss.php
    you need to change

    <?php
    /**
     * File Name: jp_rss.php
     * Description: Component for wpCareers wordpress plugin
     * @author Mohammad Forgani
     * @copyright Copyright 2010, Mohamad Forghanian
     * @version 1.0
     * @link http://www.forgani.com
     *
     * Last modified:  2010-05-27
     * Comments:
     */
    
    if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) {
    	die('You are not allowed to call this page directly.');
    }
    
    ob_start();
    $pageinfo = $wpcareers->get_pageinfo();

    To this:

    <?php
    /**
     * File Name: jp_rss.php
     * Description: Component for wpCareers wordpress plugin
     * @author Mohammad Forgani
     * @copyright Copyright 2010, Mohamad Forghanian
     * @version 1.0
     * @link http://www.forgani.com
     *
     * Last modified:  2010-05-27
     * Comments:
     */
    
    if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) {
    	die('You are not allowed to call this page directly.');
    }
    
    ob_start();
    global $wpcareers;//FIX
    $pageinfo = $wpcareers->get_pageinfo();

    http://wordpress.org/extend/plugins/wpcareers/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.