Support » Plugin: WPJM Schema » Fatal error after WPJM 1.27.0 update

  • Resolved vegandev

    (@vegandev)


    I just updated to WP Job Manager 1.27.0 (releasted 7 hours ago) and my site is now getting this error:

    Fatal error: Cannot redeclare wpjm_get_the_job_types() (previously declared in /wp-content/plugins/wpjm-schema/patch-functions.php:20) in /wp-content/plugins/wp-job-manager/wp-job-manager-template.php on line 339

    • This topic was modified 4 years, 4 months ago by vegandev.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter vegandev

    (@vegandev)

    Also, I forgot to indicate I’m using latest WordPress 4.8

    • This reply was modified 4 years, 4 months ago by vegandev.
    Thread Starter vegandev

    (@vegandev)

    I was able to fix this temporarily by editing:
    /wp-content/plugins/wp-job-manager/wp-job-manager-template.php
    and wrapping the function wpjm_get_the_job_types()
    inside
    if( ! function_exists( ‘wpjm_get_the_job_types’ ) ) { }
    since your plugin is declaring this earlier.

    Since you need this function for your plugin but it’s not yet loaded by WPJM, what can you do except have WPJP patch their code with what I’ve added so that plugins like yours can use it?

    • This reply was modified 4 years, 4 months ago by vegandev.
    • This reply was modified 4 years, 4 months ago by vegandev.
    Plugin Author stevenkellow

    (@stevenkellow)

    Hi vegandev,

    This should be fixed now with a new plugin update. Download the latest version of WPJM Schema from your plugin dashboard and it should be good to go.

    Thread Starter vegandev

    (@vegandev)

    Awesome, yep I updated the plugin, removed my temporary fix and good to go.

    Plugin Author stevenkellow

    (@stevenkellow)

    Great,glad it worked! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error after WPJM 1.27.0 update’ is closed to new replies.