Very confusing problem!

This is a discussion on Very confusing problem! within the PHP General forums, part of the PHP Programming Forums category; Hey guys, Having a problem with a script I have used before in another project. First off. this is the ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-07-2004
Aaron Wolski
 
Posts: n/a
Default Very confusing problem!

Hey guys,

Having a problem with a script I have used before in another project.

First off. this is the error I am getting:

Fatal error: Call to a member function on a non-object in
/services/webpages/a/t/somedomain.com/secure/Store/index.php on line 140

The line of code is this:

$paging->query("SELECT * FROM ProductTable");

At the top of the page I have this:

require("../paging_class.php");

I can post the paging_class.php file if anyone needs but it hasn't
changed from when I used it on another site. The only thing that has
changed is server type (current: Linux previously: BSD). Both are
running PHP 4.3.2.


ANY help is desparately appreciated!!!!!

Thanks so much.

Aaron


Reply With Quote
  #2 (permalink)  
Old 01-07-2004
Cpt John W. Holmes
 
Posts: n/a
Default Re: [PHP] Very confusing problem!

From: "Aaron Wolski" <aaronjw@martekbiz.com>

> Fatal error: Call to a member function on a non-object in
> /services/webpages/a/t/somedomain.com/secure/Store/index.php on line 140
>
> The line of code is this:
>
> $paging->query("SELECT * FROM ProductTable");
>
> At the top of the page I have this:
>
> require("../paging_class.php");
>
> I can post the paging_class.php file if anyone needs but it hasn't
> changed from when I used it on another site. The only thing that has
> changed is server type (current: Linux previously: BSD). Both are
> running PHP 4.3.2.


Do you have

$paging = new paging_class();

anywhere to make $paging an actual object? According to the error, you
don't, or it's type has been changed. Maybe there was an error in the
required file that you're not seeing?

---John Holmes...
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0