Menu

Error in module.php for V4.2.3

Help
Stuart.G
2010-01-10
2013-05-30
  • Stuart.G

    Stuart.G - 2010-01-10

    I have had the following error messages displaying occasionally in my log file. These have occurred in V4.1.6 or before.

    ERROR 8: Undefined index: mod; 0 Error occurred on line 50 of file module.php
    ERROR 8: Undefined index: mod; 0 Error occurred on line 45 of file module.php

    Help would be appreciated. Thank you.

    Stuart

     
  • Gerry Kroll

    Gerry Kroll - 2010-01-10

    It would be helpful if we could see under what conditions you get this error message.

    It appears as though "somebody" is invoking the Module system from outside PGV without using the proper calling sequences for module.php.  I won't say whether this is a hacker, a search engine, or just somebody legitimate.

    Can you upgrade to version 4.2.3, or are you stuck with version 4.1.6?

    If you're stuck with version 4.1.6, you can try the following:

    Add the following line to "module.php".  It needs to be inserted after line 44:

    if (!isset($_REQUEST)) exit;

    This change will make PGV quit if that "mod" index is not defined.  This is not as elegant as I'd like, but it should do the trick.

     
  • Gerry Kroll

    Gerry Kroll - 2010-01-10

    God, what a stupid forum software!

    Don't put that "" into the line you're inserting.  End at the semicolon.

     
  • Stuart.G

    Stuart.G - 2010-01-11

    Thanks for the quick reply Gerry,

    I am using V4.2.3 and I don't know what I can provide to enable you to see under what conditions that creates the error message. In this instance the IP address is 120.16.2.198, which appears to be a valid mobile IP address allocated to Vodaphone mobile in Australia.

    I will try your solution, but as the error is still occurring (only occasionally) in V4.2.3 (first noticed in V4.1.6) I thought that it might be something worth a permanent fix for the released 4.2.3 version or for the next release.

    Thanks,

    Stuart

     
  • Stuart.G

    Stuart.G - 2010-01-11

    My son, who knows much more than I do, has had a look at the server log and believes the call to module.php causing this error is coming from PunBB. He has looked at the code for the relevant page and he cannot see exactly what is making the call. Sorry I can't be more helpful.

    • Stuart
     
  • Gerry Kroll

    Gerry Kroll - 2010-01-11

    Stuart:

    Try the workaround anyway.  The line number (after line 44) is the same.

    Are you really running PunBB?  If not, you can simply delete that subdirectory.

     

Log in to post a comment.