[Solution] Call to undefined function llorix_one_companion_sevices_get_default_content()

Solve the error message coming from Llorix plugin

If you use Llorix One theme(there are two versions: Free and Pro) and activated the Llorix One Companion plugin, then you will get (with current version) the following error message while you try to open the customizer:

Fatal error: Uncaught Error: Call to undefined function llorix_one_companion_sevices_get_default_content() in /wp-content/plugins/llorix-one-companion/inc/settings.php

The problem happens because the developers missed to include the specific code in the plugin files. That has already been reported months ago, but the update hasn’t been yet released for this.

However, I do the following to solve the problem temporarily:

  • Open /wp-content/plugins/llorix-one-companion/inc/translations/general.php
  • Insert this code in the bottom of that file:
foreach (llorix_one_companion_filter_translations(array()) as $each){
	include_once(__DIR__.'/../'.$each.'.php');
}

That should solve the problem (works at least for plugin version 1.1.4). If it doesn’t help you, you can comment. Also, if there is any update, you can let us know and we will modify the solution.

Leave a Reply

Your email address will not be published. Required fields are marked *