1
XOOPS Version: 2.0.15
Module Name/Version: Stories 0.9
PHP Version: 5.0.2
MySQL Version: 4.0.21-nt
Web Server Software (Apache/IIS/Other): Apache 2.0.52
Operating System: Windows XP
Theme you are using: Makes no difference
Custom template: (Yes/No) No
PHP Debug Messages:
PHP Fatal error: Using $this when not in object context in C:\xoops-2.0.15\htdocs\modules\stories\class\class.newsstory.php on line 135
MySQL Debug Messages:
Smarty Debug Messages:
A full description of the issue:
I am testing the Stories module for news and have run in to an interesting problem. I have installed the module on our Linux system which is running PHP 4 and it works fine. I have also installed it on my personal development/test machine (Windows XP) that uses PHP 5 and I am getting a blank page when I go in to the News section. When I go to the Admin I can get into Preferences but not Topics Manager or Post/Edit News (they bounce to the index).
When I turned on all debugging there were no errors. The Apache log file has the following error:
PHP Fatal error: Using $this when not in object context in C:\xoops-2.0.15\htdocs\modules\stories\class\class.newsstory.php on line 135
From what I can see, the file looks fine. In fact, this is the same file that I copied to the Linux server that is working great. I suspect that this has something to do with the fact that I'm running PHP 5 but I'm not sure what the problem could be.