WordPress.org

Support

Support » Plugins and Hacks » Resume Submissions & Job Postings » [Resolved] [Plugin: Resume Submissions & Job Postings] Random Fatal Error

[Resolved] [Plugin: Resume Submissions & Job Postings] Random Fatal Error

  • 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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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

    Plugin Author kandrews

    @kandrews

    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.

    thecrumb

    @thecrumb

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

    Thanks!

    Plugin Author kandrews

    @kandrews

    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!

    06chaynes

    @06chaynes

    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.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [Plugin: Resume Submissions & Job Postings] Random Fatal Error’ is closed to new replies.
Skip to toolbar