Fork me on GitHub

member function (blocks/related.php) error! Please help!  Bottom

  • I'm using the fanfiction module and everytime a member tries to post a fan fiction this error comes up:

    Fatal error: Call to a member function on a non-object in /home/extreme/public_html/community/includes/blocks/related.php on line 61

    I tried installing a whole new fan fiction module but the same error comes up. Can somebody please help me to fix this problem? Would anyone have a solution? I would GREATLY appreciate it. Thanks!
  • What version/flavour PostNuke, PHP, MySQL and Operating System are you running?
  • Thanks for replying! :)

    And I'm running PostNuke-0.726
    PHP: 2.6.4-pl2
    MySQL: 4.1.13
    Operating System: Windows XP home edition
  • Right. First of all you really should upgrade your PostNuke version to avoid some serious security issues. The current version is 0.761 and you can download it here http://news.postnuke…=viewdownload&cid=1

    The problem is I don't know if the fanfiction module will work under 0.761. Is the developer of that module still active?

    The PHP version you mention seems a bit strange (and if it is correct it's ancient). Can I ask where you got the PHP version from ?
  • Ok I'll upgrade.

    The developer is no longer active. She just has the download available on her site (which is down at the moment but should return very soon)

    I'm not very familiar with PHP, but I got the version from the main page of phpMyAdmin
    I'm assuming that's the wrong place to look. Would you know where else I could look to find the correct version of PHP that I'm running, if the one I posted is incorrect?
    Thanks
  • Just create a plain textfile in your webroot and name it info.php Now edit the file and add this code

    Code

    <?php

    phpinfo();

    ?>


    Save the file and browse to its location http://yoursite/info.php you should see a lot of info including the version of PHP.

    Once you're done remove the file for security reasons.
  • ainigma32

    Once you're done remove the file for security reasons.
    Yes, remove after use: see vulnerability of phpinfo at:

    http://www.hardened-php.net/advisory_182005.77.html
  • Ah ok I figured it out

    PHP Version 4.4.1
  • Well that's pretty recent so no obvious problem there. I would suggest you test the PN upgrade to see if the module will work with .761

    If it doesn't you could try to see if you can find anyone interested in updating it so it will work in the latest PN release.

    Good luck!
  • Thanks so much! I'll try that out
  • Not sure if I should post this here, but after I upgrade the site is a bit messed up. Do I have to re-do the permissions or something?
  • Could you post a link to your site? Or otherwise a description of "messed up" icon_wink
  • Basically I'm trying to upgrade but it's not working.

    The first time I followed the wrong instructions. The second time, I removed all my files (backed them up too) then uploaded the new version, then uploaded my old module files along with the old config.php and it still didn't work. So i'm trying it all again another time and it didn't work. I just can't seem to get the upgrade right. I'll have to try this again, thanks for the assistance though!

This list is based on users active over the last 60 minutes.