• Fatal error: Uncaught Error: Call to a member function get_default_language() on null in /home/journey/test.journey2.life/wp-content/plugins/bible-link-multilingual/plugin.php:39 Stack trace: #0 /home/journey/test.journey2.life/wp-admin/includes/plugin.php(2313): include_once() #1 /home/journey/test.journey2.life/wp-admin/plugins.php(192): plugin_sandbox_scrape(‘bible-link-mult…’) #2 {main} thrown in /home/journey/test.journey2.life/wp-content/plugins/bible-link-multilingual/plugin.php on line 39

    I’m not sure if this plugin will work for LifeFound.Me anyway. This is a multilingual site using Polylang and needs to offer the Bible in multiple languages. Maybe I am asking too much of a Bible plugin like this. Perhaps a shortcode would be a better solution.

Viewing 1 replies (of 1 total)
  • Plugin Author GlobalRize

    (@globalrize)

    Hi Strell,

    Thanks for reporting this bug to us. A fix for this bug is present in the next plugin update (1.0.11). This plugin is not compatible with Polylang and it is best to uninstall it.

    No support for Polylang is currently in the making. What you can do however is add the code below at the end of functions.php file located at wp-content/themes/{yourtheme}/functions.php.

    // Load Bible Link Multilingial plugin for polylang language
    if (function_exists('pll_current_language')) { // check if polylang is installed
    	switch (pll_current_language('slug')) { // get current polylang language & set script
    		case 'en':
    			$script = '<script async defer src="https://bible-link.globalrize.org/plugin.js" data-language="en" data-translation="esv"></script>'; // English script
    			break;
    		case 'de':
    			$script = '<script async defer src="https://bible-link.globalrize.org/plugin.js" data-language="de" data-translation="hfa"></script>'; // German script
    			break;
    	}
    	if (!empty($script)) { // Check is script is defined
    		add_action('wp_head', function () use ($script) { // Add it to head section of page
    			echo $script;
    		});
    	}
    }
Viewing 1 replies (of 1 total)

The topic ‘Error on install’ is closed to new replies.