- Moderated by:
- Support Team
-
- rank:
-
Helper
- registered:
- December 1969
- Status:
- offline
- last visit:
- 26.02.06
- Posts:
- 236
I've got a PN site that is happily running PN .750.
Previously, I've reported a problem with the Censor module.
Now, I'm ready to upgrade to PN .761, but the docs say that the Censor module has to be initialized and activated before you can upgrade. This means I'm stuck.
Can anyone give me some ideas of how I can work around this? Can the portion of the database which controls the censor module be reinit'ed? If anyone has any ideas on this, it'd be greatly appreciated; TIA.
--
--
A GNU/Linux newbie since 1992! -
- rank:
-
Helper
- registered:
- December 1969
- Status:
- offline
- last visit:
- 26.02.06
- Posts:
- 236
Browsing through my database, I can only find 3 references to the Censor module. In the table "nuke_module_vars" (note: I'm using a database prefix of "nuke_") I found 3 rows:
85 /PNConfig CensorList a:14:{i:0;s:4:"fuck";i:1;s:4:"cunt";i:2;s:6:"fucke...
86 /PNConfig CensorMode i:1;
87 /PNConfig CensorReplace s:5:"*****";
I've got no idea of whether these are correct or not, and I'm not clever enough to read the module's code to know what's going on.
So, at this point, I'm still stuck. I cannot initialize the Censor module.
--
--
A GNU/Linux newbie since 1992! -
- rank:
-
Helper
- registered:
- December 1969
- Status:
- offline
- last visit:
- 26.02.06
- Posts:
- 236
In case someone else runs into this, this was the solution to the problem.
I went ahead and tried to remove the Censor module, something I didn't want to do since it was a core module. I got an error message when I tried that:
Parse error: parse error, unexpected T_RETURN, expecting '{' in /home/username/public_html/modules/Censor/pninit.php on line 3
Sure enough, looking at that file, it showed:
Code
<?php
function Censor_init()
return true;
}
Adding that initial curly bracket:
Code
<?php
function Censor_init()
{
return true;
}
Fixed the problem nicely.
Of course, the mystery remains as to how that bracket became missing. I'm quite sure I'm not in the habit of mucking around pninit* files of modules, but either way, things work now so I'm a happy camper.
--
--
A GNU/Linux newbie since 1992! -
- rank:
-
Steering Committee
- registered:
- December 2002
- Status:
- offline
- last visit:
- 23.11.08
- Posts:
- 13415
Come to think of it, I think this was a bug which was later fixed. Can't be certain though.
Anyway, thanks for posting your solution.
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide
