Support » Plugin: WPML to Polylang » Fatal Error on Import – $lang is being set as ‘false’

  • PHP Fatal error: Uncaught Error: Call to a member function update_count() on boolean in /vagrant/web/app/plugins/polylang-pro/admin/admin-model.php:332

    when running the import, the ‘set_language_in_mass’ function is erroring out because on line 322, $lang is bneing set as ‘false’

    $lang = $this->get_language( $lang );

    then subsequently on line 332, the call to update_count fails:
    $lang->update_count();

    Uncaught Error: Call to a member function update_count() on boolean in /vagrant/web/app/plugins/polylang-pro/admin/admin-model.php:332

    It SEEMS that its trying to pull out the Languages set in Polylang settings

    However, the instructions say to add none when importing from WPML -> polylang, so there are no languages to load.

    Any insight will be appreciated

  • You must be logged in to reply to this topic.