Support » Plugin: Jobs for WordPress » PHP Error with language code

  • Resolved hakon81

    (@hakon81)



    Hello,
    first of all thanks for the great plugin I really like it.
    However if I don’t patch it, I always get the php error:

    PHP Fatal error: Uncaught Error: Call to a member function switch_lang() on null in plugins/job-postings/class-job-postings.php:2352

    Of course if I comment it out it works:

    
    			if( function_exists('icl_get_languages')){
    				// global $sitepress;
    				// $sitepress->switch_lang($current_language);
    			}
    

    I don’t have WPML but Polylang, so that should be where the issue is. It seems also documented at https://polylang.wordpress.com/category/tips-and-tricks/
    Do you plan on fixing this? Because else I always have to fix it after every update.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.