Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
Re:PHP Warning: is_resource() (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:PHP Warning: is_resource()
#42178
PHP Warning: is_resource() 9 Months, 3 Weeks ago  
I have captured this error in the hosting error logs which somehow slows down the performance and speed of the site.

Somebody help!

Joomla 1.0.13 + CB 1.1 + Fireboard 1.0.4

[Thu Jan 31 08:51:33 2008] [error] PHP Warning: is_resource() [function.is-resource]: Only one argument expected in /home/smscebu/public_html/components/com_fireboard/sources/fb_db_iterator.class.php on line 72
rocknolds (User)
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Gender: Male rocknolds ASMSI-Cebu rocknolds@gmail.com rocknolds23 rocknolds@hotmail.com rocknolds Location: Cebu City Philippines Birthdate: 1977-05-07
Logged Logged
 
 
The administrator has disabled public write access.  
#46625
Re:PHP Warning: is_resource() 8 Months, 2 Weeks ago  
I get this error when I try to recount stats for the site. It flashes only for a moment and then goes back to the back-end page. I'm not sure if any of the data changed afterward, either.

EDIT: I'm also using CB 1.1, FB 1.0.4 and Joomla 1.0.13.
Cristole (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/03/10 09:43 By Cristole.
 
The administrator has disabled public write access.  
#50477
Re:PHP Warning: is_resource() 6 Months, 2 Weeks ago  
Change is_resource() to be is_resource($this->db)

The warning will disappear!
viet4777 (User)
Senior Boarder
Posts: 291
graphgraph
User Offline Click here to see the profile of this user
Luyenkim.NET
Logged Logged
 
Luyenkim.Net
utf-8 Vietnamese language package will be complete in mid of Oct.
luyenkim.net/home9/index.php?option=com_...5&id=282#282
 
The administrator has disabled public write access.  
#53647
Re:PHP Warning: is_resource() 4 Months, 1 Week ago  
this is how u fix it, in sources folder, file fb_db_iterator.class

down near the bottom, search for
Code:

if(is_resource())

add this db
Code:

if(is_resource(db))
that will remove the error.
boggiemanx (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#53649
Re:PHP Warning: is_resource() 4 Months, 1 Week ago  
viet4777 wrote:
Change is_resource() to be is_resource($this->db)

The warning will disappear!


I have added this to the most recent SVN. It will be in the next nightly build and soon Release Candidate for 1.0.5

Any more of these simple fixes?
fxstein (Moderator)
FB Core Team
starVmax
Moderator
Posts: 1210
graphgraph
User Offline Click here to see the profile of this user
Gender: Male fxstein starVmax Location: Silicon Valley, USA
Logged Logged
 
 
The administrator has disabled public write access.  
Go to top