Loading...
 
Architecture / Installation

Architecture / Installation


Error when accessing wiki preferences / get_tags()

posts: 15

Hello,

I just installed tikiwiki on a linux/mysql server. Things are generally working fine, however I'm getting a strange error when I try to access the "wiki" preferences page from the admin section (I want to enable file-attachments to pages). I basically get a blank page.
After having enabled the printing of error messages I get the following error message: "trying to call get_tags() on an uninitialized object tikiwiki_admin_include_wiki.php 245." (I'm writing this from another machine so the exact error message might be a bit different, but the line is really 245 and the file is the wiki_include admin file).

I checked what is going on there in the code, and the function get_tags() is indeed called there on an object $adminlib which is initialized earlier by including the adminlib.

Since I dont have access to the server (I can only upload files via mirroring but not download the error.log) I was wondering what I can do. (I dont get the error when installing tikiwiki on my laptop).

I did not find any references to errors involving get_tags(), so I'm asking myself if this is an error that is specific to my environment.
What could I do to debug this more?

I'm running php5 on linux, the tikiwiki is 4.1 stable.

many thanks
Kurt

posts: 1001 Canada
Hum... we'd need the exact error message, or to see a var_dump($adminlib); just before get_tags() is called.

posts: 15

ok.. the error mesage is:

Fatal error: Call to a member function get_tags() on a non-object in /data/WWW/wmo-new/htdocs/pages/prog/www/WIS/wiswiki/tiki-admin_include_wiki.php on line 245

since I dont have direct access to the server I cannot insert the var_dump, but I suppose its NULL.

thanks
Kurt


posts: 1001 Canada
You could check how $adminlib looks from tiki-admin_include_wiki.php and, if it's NULL, from tiki-admin.php (after adminlib is required). You could also check if you have errors (in particular, warnings). The Debug Mode Enabled profile helps with that. Tiki always throws lots of stuff if you make it report all kinds of "errors", including notices, so only look for related stuff. One explanation would be if adminlib would fail to be included from tiki-admin.php. This would be entirely abnormal, but I don't see many other explanations.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting