Menu

phpwslistings and Php5

Help
2008-03-31
2013-04-08
  • Mike Davies

    Mike Davies - 2008-03-31

    I am having a problem with a site which has been running phpwebsite for four years but only really uses the phpwslistings module. Recently we got an error message on trying to run it and I was advised on the Phpwebsite forum that it was almost certainly to do with Php5 and I needed to upgrade.

    I upgraded from Phpwebsite 0.9.3 to 0.10.2 successfully. Now when I try to run it I get another error message now apparently related to phpwslistings :

    Fatal error: Using $this when not in object context in /home/2201/rvasey1/www.deveron.org/public_html/phpwebsite/mod/phpwslistings/class/runtime.php on line 37

    I presume this means I need to update phpwslistings. I see that the last available version is 0.3.2 dating from 02/12/04. I am using version 0.3.1. Will updating to this solve my problem or will the module not work correctly with Php5?

     
    • Tony

      Tony - 2008-03-31

      On line 37 and 38 you have this code:
      $this->Listing_block = new SEILER_ListingManager();

      Try this:
      $Listing_block = new SEILER_ListingManager();

       
    • Tony

      Tony - 2008-03-31

      UPDATE, to be found on http://www.phpwsforums.com/showthread.php?t=5192&highlight=php5:

      Line 37 and 38 read:
          function AgentCheck(){
              $this->Listing_block = new SEILER_ListingManager();
              $this->Listing_block->AgentCheck();
          }

      Change it to:
          function AgentCheck(){
              $Listing_block = new SEILER_ListingManager();
              $Listing_block->AgentCheck();
          }

       
    • Mike Davies

      Mike Davies - 2008-04-03

      Thanks Tony,
      it's now working again.

      regards,
      Mike

       

Log in to post a comment.