Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2010 Added freetag module for all user groups

BRANCH-1-9_(CVS)
open
nobody
5
2012-12-08
2006-04-08
Cefn Hoile
No

I added the freetag module for all user groups

Now my tiki doesn't run at all for any logged in users.

So I'll have to dive in to fix this, as I can't reverse
the change since the admin interface is equally bolloxed.

http://cefn.com/cefntiki/

As a workaround, can I remove all modules from the
display somehow, so I can turn off the freetag one.

Every page impression delivers...

Warning: main(lib/freetag/freetag.class.php): failed to
open stream: No such file or directory in
/var/www/html/cefn.com/cefntiki/modules/mod-freetag.php
on line 11

Warning: main(): Failed opening
'lib/freetag/freetag.class.php' for inclusion
(include_path='lib/pear:lib/adodb:lib/pear:lib:.:/php/includes:/usr/share/php')
in
/var/www/html/cefn.com/cefntiki/modules/mod-freetag.php
on line 11

Fatal error: Cannot instantiate non-existent class:
freetag in
/var/www/html/cefn.com/cefntiki/modules/mod-freetag.php
on line 19

Discussion

  • Cefn Hoile
    Cefn Hoile
    2006-04-08

    Logged In: YES
    user_id=760745

    I've got a workaround anyway. In the file...
    tiki-modules.php
    ...on line 151-ish
    there's a clause which checks for user-configured modules.

    You can force this to always be true, by changing...
    if ($user_assigned_modules == 'y' &&
    $tiki_p_configure_modules == 'y' && $user &&
    $usermoduleslib->user_has_assigned_modules($user)) {
    ...to...
    //if ($user_assigned_modules == 'y' &&
    $tiki_p_configure_modules == 'y' && $user &&
    $usermoduleslib->user_has_assigned_modules($user)) {
    if(true){
    ...in other words comment out the actual check, and force it
    to assume user-configured modules. This lets you into the
    admin interface, and then you can turn off freetag.

    After this, you can reverse the change to get back to the
    normal user module behaviour.

     
  • Cefn Hoile
    Cefn Hoile
    2006-04-09

    Logged In: YES
    user_id=760745

    Needed the freetag.class.php file to be downloaded from this
    other project...
    http://www.getluky.net/freetag/
    and placed in the lib/freetag/ directory. Also needed to add
    MySQL authentication details to that file.