Fatal error: Using $this when not in object context in c:\inet_srv\htdocs\phpwebsite\mod\phpwslistings\class\r untime.php on line 37 HW XP2000+/256/ SW WIN XP,AP 1.3.33, PHP 5.0.10,MYSQL 4.1
Thanks Jiri Vrbka
Logged In: YES user_id=1383503
Since the Listing_runtime class is not instantiated, you cannot use '$this->' for referencing to object attributes.
I changed the lines (37 and 38) from $this->Listing_block = new SEILER_ListingManager(); $this->Listing_block->AgentCheck();
to: $temp_Listing_block = new SEILER_ListingManager(); $temp_Listing_block->AgentCheck();
I haven't tested whether this change will compromise the mod (I just installed phpWebSite and the mod), but it seems to work fine.
This bug will not result in an error message if you use a prior-5 php installation. I think php5 does have stricter error_reporting by default.
Pascal
Log in to post a comment.
Logged In: YES
user_id=1383503
Since the Listing_runtime class is not instantiated, you
cannot use '$this->' for referencing to object attributes.
I changed the lines (37 and 38) from
$this->Listing_block = new SEILER_ListingManager();
$this->Listing_block->AgentCheck();
to:
$temp_Listing_block = new SEILER_ListingManager();
$temp_Listing_block->AgentCheck();
I haven't tested whether this change will compromise the mod
(I just installed phpWebSite and the mod), but it seems to
work fine.
This bug will not result in an error message if you use a
prior-5 php installation. I think php5 does have stricter
error_reporting by default.
Pascal