WordPress.org

Ready to get started?Download WordPress

Forums

Resume Submissions & Job Postings
[resolved] Random Fatal Error (7 posts)

  1. 06chaynes
    Member
    Posted 1 year ago #

    For some reason after trying to make a new job posting I get the error below when loading the page that contains the [jobPostings] shortcode. I have tried removing all posts and removing the plugin itself fully, even dropped the related tables. No matter what I try I get this error:

    Fatal error: Cannot redeclare rsjpjobsinclude() (previously declared in /home/content/64/8993664/html/wp-content/plugins/resume-submissions-job-postings/resume-submission.php:180) in /home/content/64/8993664/html/wp-content/plugins/resume-submissions-job-postings/resume-submission.php on line 180

    http://wordpress.org/extend/plugins/resume-submissions-job-postings/

  2. 06chaynes
    Member
    Posted 1 year ago #

    Forgot to mention I also get an error on the resume submit page. Basically it looks like every page with a RSJP shortcode gives an error.

    Fatal error: Cannot redeclare rsjpforminclude() (previously declared in /home/content/64/8993664/html/wp-content/plugins/resume-submissions-job-postings/resume-submission.php:158) in /home/content/64/8993664/html/wp-content/plugins/resume-submissions-job-postings/resume-submission.php on line 157

  3. kandrews
    Member
    Plugin Author

    Posted 1 year ago #

    Yeah the function definition is inside of that shortcode, which it shouldn't be. I haven't had time to release an update recently, but this should be a quick fix if you know any coding.

    If not, I will try to post the manual fix here.

  4. thecrumb
    Member
    Posted 1 year ago #

    Any resolution to this? Or could you post how to fix? I'm willing to hack code - just not sure what to hack.

    Thanks!

  5. kandrews
    Member
    Plugin Author

    Posted 1 year ago #

    Find in resume-submissions.php:

    // Jobs Page
    function jobsDisplay_handler( $atts ){
    	ob_start();
    
    	extract( shortcode_atts( array (
    			 'orderby' => 'post_date',
    			 'order'   => 'DESC',
    			 'archive' => 'Hide',
    			 'limit'   => 1000
        ), $atts ) );
    
    	function rsjpJobsInclude( $orderby, $order, $archive, $limit ){
    		include( 'includes/display-jobs.php' );
    	}
    
    	rsjpJobsInclude( $orderby, $order, $archive, $limit );
    
    	$output = ob_get_contents();;
    	ob_end_clean();
    
    	return $output;
    }
    
    // Resume Display Page
    function resumeDisplay_handler( $atts ){
    	ob_start();
    
    	extract( shortcode_atts( array (
    			 'email' => '',
    			 'id'    => '',
    			 'job' => '',
    			 'limit' => 1000
        ), $atts ) );
    
    	if( $email )
    		$condition = 'WHERE email = "' . $email . '"';
    	if( $id )
    		$condition = 'WHERE id = "' . $email . '"';
    	if( $job )
    		$condition = 'WHERE job = "' . $job . '"';
    
    	function rsjpDisplayInclude( $condition, $limit ){
    		include( 'includes/display-resumes.php' );
    	}
    
    	rsjpDisplayInclude( $condition, $limit );
    
    	$output = ob_get_contents();
    	ob_end_clean();
    
    	return $output;
    }

    Replace with:

    function rsjpJobsInclude( $orderby, $order, $archive, $limit ){
    	include( 'includes/display-jobs.php' );
    }
    function rsjpDisplayInclude( $condition, $limit ){
    	include( 'includes/display-resumes.php' );
    }
    
    // Jobs Page
    function jobsDisplay_handler( $atts ){
    	ob_start();
    
    	extract( shortcode_atts( array (
    			 'orderby' => 'post_date',
    			 'order'   => 'DESC',
    			 'archive' => 'Hide',
    			 'limit'   => 1000
        ), $atts ) );
    
    	rsjpJobsInclude( $orderby, $order, $archive, $limit );
    
    	$output = ob_get_contents();;
    	ob_end_clean();
    
    	return $output;
    }
    
    // Resume Display Page
    function resumeDisplay_handler( $atts ){
    	ob_start();
    
    	extract( shortcode_atts( array (
    			 'email' => '',
    			 'id'    => '',
    			 'job' => '',
    			 'limit' => 1000
        ), $atts ) );
    
    	if( $email )
    		$condition = 'WHERE email = "' . $email . '"';
    	if( $id )
    		$condition = 'WHERE id = "' . $email . '"';
    	if( $job )
    		$condition = 'WHERE job = "' . $job . '"';
    
    	rsjpDisplayInclude( $condition, $limit );
    
    	$output = ob_get_contents();
    	ob_end_clean();
    
    	return $output;
    }

    Hope this helps!

  6. 06chaynes
    Member
    Posted 1 year ago #

    Before that resolution was posted I decided to switch and use the following plugin instead:
    http://wordpress.org/extend/plugins/job-manager/

    Since I am no longer using RSJP I cannot test and verify that posting has fixed the issue. I am marking this resolved though.

  7. karhaleraj@hotmail.com
    Member
    Posted 11 months ago #

    some option in this plugin is to search submitted resume by category to user???????

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic