Jump to content


This topic is now archived and is closed to further replies.


PHP error

Recommended Posts

I'm working on a basic CMS as covered in the book PHP and MySQL Web Development by Luke Welling and Laura Thomson, hoping to adapt it to what I need.

But when I uploaded the code (it was inlcuded with the book on CD) and went to index.php
I got the error;

Call to a member function on a non-object in /directory/index.php/ on line 8

As I guess the code they supplied with the book is fine I'm assuming it's something to do with the server set up. It is running PHP Version 4.4.1.

Any help much appreciated


Share this post

Link to post
Share on other sites
Chances are you failed to include some file. I don't think it's related to the server.

Just see what's on line 8. There's probably something like $something->else() or whatever.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.