Re: PHP4 to PHP5 issue
| From: | Jochem Maas | Date: | Mon, 05 Feb 2007 18:08:39 +0000 |
| Subject: | Re: PHP4 to PHP5 issue | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248364@lists.php.net to get a copy of this message | ||
Skip Evans wrote:
> Hey all,
>
> I installed a new FreeBSD 6.0 server here in the office with PHP5. I
> moved over several sites we developed under PHP4, and all of those seem
> to be functioning perfectly, but I am getting an error on to sites, on
> PostNuke based and our dotProject system.
>
> Both errors are the same, and here is the one from dotProject:
>
> Fatal error: Call to a member function Execute() on a non-object in
> /usr/home/dotproject/public_html/classes/query.class.php on line 589
>
> And the code:
>
> $this->_query_id = $db->Execute($q);
>
> Where $q is a pretty typical SQL statement.
>
> What I'm wondering if there is an easy way to convert $q to an object
> type rather than a string to satisfy Execute? Or some other
> straightforward fix?
the problem is not with $q but with $db. $db is not an object,
why that is so I don't know - more bug hunting for you I'm afraid.
>
> Thanks!
>
>
> Skip Evans
> Big Sky Penguin, LLC
> 61 W Broadway
> Butte, Montana 59701
> 406-782-2240
> http://bigskypenguin.com
> =-=-=-=-=-=-=-=-=-=
>