1
Hello,
I've more or less got the hand of using XOOPS as a webmaster, but now I want to start making some of my own modules - only simple ones, for the moment. The only documentation I could find seemed a bit scanty and incomplete (any good tutorials out there?). I decided to make a tentative and exploratory start using the "RandomQuotes" module provided on this site, so I would have something relatively simple to work with. Unfortunately, the new module I have made (which doesn't actually do anything at the moment) seems to be dependent on RandomQuotes in some way. After de-installing RandomQuotes, I get the following error when I try to access the new module's admin:
Fatal error: Call to a member function on a non-object in C:\FoxServ\www\TestZone\modules\newmodule\admin\admin_header.php on line 18
The code that is causing the error is, apparently, this:
Quote:
if ( !$xoopsUser->isAdmin($xoopsModule->mid()) )
(I presume this line of code is making sure that it is only an administrator who is gaining access to the admin of this new module).
This doesn't happen when RandomQuotes is installed.
Looking through the files, it seems everything has been included that should have been - the only alterations I have made so far have been to the language files and various bits of text (eg. describing the module, giving the author's name etc.)
Any ideas what I have done wrong?