Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The Matrix: Blog
#28
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.
Reply


Messages In This Thread
The Matrix: Blog - by Angryboy - 2013-07-03, 05:25:34
RE: Matrix Blog - by evan70 - 2013-07-03, 05:51:05
RE: Matrix Blog - by influxweb - 2013-07-08, 11:45:03
RE: Matrix Blog - by Angryboy - 2013-07-08, 18:14:46
RE: Matrix Blog - by Speed - 2013-07-21, 14:16:31
RE: Matrix Blog - by n00dles101 - 2013-07-21, 22:05:45
RE: Matrix Blog - by shawn_a - 2013-07-22, 00:46:56
RE: Matrix Blog - by Speed - 2013-07-22, 02:26:22
RE: Matrix Blog - by n00dles101 - 2013-07-22, 05:25:22
RE: Matrix Blog - by Speed - 2013-07-22, 05:56:22
RE: Matrix Blog - by n00dles101 - 2013-07-22, 06:36:13
RE: Matrix Blog - by Speed - 2013-07-22, 07:14:01
RE: Matrix Blog - by Angryboy - 2013-07-28, 09:56:36
RE: Matrix Blog - by influxweb - 2013-08-04, 09:49:52
RE: Matrix Blog - by shawn_a - 2013-08-04, 10:23:25
RE: Matrix Blog - by influxweb - 2013-08-04, 10:27:20
RE: Matrix Blog - by shawn_a - 2013-08-04, 10:55:26
RE: Matrix Blog - by influxweb - 2013-08-04, 11:00:29
RE: Matrix Blog - by shawn_a - 2013-08-04, 11:01:21
RE: Matrix Blog - by influxweb - 2013-08-04, 11:08:16
RE: Matrix Blog - by shawn_a - 2013-08-04, 11:44:41
RE: Matrix Blog - by dedos - 2013-08-07, 00:35:01
RE: Matrix Blog - by n00dles101 - 2013-08-07, 00:36:22
RE: Matrix Blog - by dedos - 2013-08-07, 00:40:36
RE: Matrix Blog - by n00dles101 - 2013-08-07, 00:43:44
RE: Matrix Blog - by dedos - 2013-08-07, 00:49:10
RE: Matrix Blog - by magik - 2013-08-07, 13:32:12
RE: Matrix Blog - by magik - 2013-08-07, 14:39:16
RE: Matrix Blog - by shawn_a - 2013-08-07, 21:57:09
RE: Matrix Blog - by n00dles101 - 2013-08-07, 23:23:31
RE: Matrix Blog - by Angryboy - 2013-08-09, 05:02:50
RE: Matrix Blog - by Angryboy - 2013-08-18, 20:22:12
RE: The Matrix: Blog - by JaceX - 2013-11-17, 06:04:07



Users browsing this thread: 1 Guest(s)