I can confirm that for me the 3 bolded lines in "class.php" aren't returning the expected values (true):
// check dependencies
private function checkDependencies() {
if (
class_exists('TheMatrix') &&
function_exists('i18n_init') &&
function_exists('get_i18n_search_results') &&
function_exists('pagify')
) return true;
else return false;
}
I tried this which seems to correct this problem, but makes it unstable in certain circumstances:
// check dependencies
private function checkDependencies() {
if (
class_exists('TheMatrix')
//class_exists('TheMatrix') &&
//function_exists('i18n_init') &&
//function_exists('get_i18n_search_results') &&
//function_exists('pagify')
) return true;
else return false;
}
Like, when I create my first entry then try to visit it on my website I get the following error:
Fatal error: Call to undefined function i18n_init() in /home/reallyho/public_html/plugins/matrix_blog/php/class.php on line 970
Which refers to this code in "class.php":
public function getPageType($slug) {
$slug = $this->matrix->str2slug($slug);
$entry = $this->matrix->query('SELECT * FROM '.self::TABLE_BLOG.' WHERE slug = "'.$slug.'"');
// entry
if ($entry) {
// get language
i18n_init(); // initialize i18n
I'm really a novice in php, so I'm still looking for a better solution. I seem to have pinpointed the problem on my installation though. It seems these dependancies aren't instatiated correctly.
// check dependencies
private function checkDependencies() {
if (
class_exists('TheMatrix') &&
function_exists('i18n_init') &&
function_exists('get_i18n_search_results') &&
function_exists('pagify')
) return true;
else return false;
}
I tried this which seems to correct this problem, but makes it unstable in certain circumstances:
// check dependencies
private function checkDependencies() {
if (
class_exists('TheMatrix')
//class_exists('TheMatrix') &&
//function_exists('i18n_init') &&
//function_exists('get_i18n_search_results') &&
//function_exists('pagify')
) return true;
else return false;
}
Like, when I create my first entry then try to visit it on my website I get the following error:
Fatal error: Call to undefined function i18n_init() in /home/reallyho/public_html/plugins/matrix_blog/php/class.php on line 970
Which refers to this code in "class.php":
public function getPageType($slug) {
$slug = $this->matrix->str2slug($slug);
$entry = $this->matrix->query('SELECT * FROM '.self::TABLE_BLOG.' WHERE slug = "'.$slug.'"');
// entry
if ($entry) {
// get language
i18n_init(); // initialize i18n
I'm really a novice in php, so I'm still looking for a better solution. I seem to have pinpointed the problem on my installation though. It seems these dependancies aren't instatiated correctly.