Webmastersite.net
Register Log In

Warning: mysqli_fetch_row() error
Warning: mysqli_fetch_row() expects parameter 1

Comments on Warning: mysqli_fetch_row() error




Usergroup: Guest
Joined:

Total Topics: 0
Total Comments:
Posted 07/30/07 - 10:33 AM:

hi, (read all edits)

when i try to import a car directory i get this..

Warning: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in /home/public_html/databases/mysqli.php on line 21

Catchable fatal error: Object of class category could not be converted to string in /home/public_html/admin/dmozimporter.php on line 69

the file is 203 kb

where does this comes from ?
If i try smaller import i dont have a problem...


Edit: btw...when i search google on this error line : Catchable fatal error: Object of class category could not be converted to string

people say this is an error in php 5.2 ?
Is that so ?


Ok another edit:

As i suddenly had the error with a small file i was curious as to why...
the import file was just 52 kb and got the same error..

But i noticed a thing..
In the file it showed like 9 sub categories that will be created on import and some cats were name like this.. Cavia's (dutch animal) ..see the ' ?

When i changed it to Cavia the import was successfull..
Any idea why ?


Ok last edit.. sad

I took the cars catgory (dutch) with a bunch of subs.
That failed and showed the same error as above..

Then i checked the import html file and took out all ' as that seemd to help earlier..
but now it didnt..
one thing did changed..
only error i get now is :

Catchable fatal error: Object of class category could not be converted to string in /home/public_html/admin/dmozimporter.php on line 69

And that line is :
if ($cat->parent == 0 && $y > 2) die(categoryreplacements($langextras['dmoznopar'], str_replace('{PARENTPATH}', $parentpath, $cat)));

And i know this has nothing to do with the above problem...but cant you do anything about the damn time-out's im getting..
I mean,importing a 300 kb file with links and cats takes over 5 minutes....
then it drops out....


the attached import html list is 153 kb

you see anything wrong?



Edited by johnw on 07/31/07 - 10:26 AM
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 67
Total Comments: 7799
Posted 07/31/07 - 12:02 PM:

The apostrophe in the name of the category (Auto's) is what's causing the problem. Added some handling for that.

Also I see your report file comes out looking noticably different, in a different language and with some extra markup. It says you used 6.03, but 6.02 is the supported version, that's why I provided a link to it. I've attached the correct report file.



Usergroup: Guest
Joined:

Total Topics: 0
Total Comments:
Posted 07/31/07 - 1:04 PM:

mmm,well i just used the newer version as thats what it suggested...
so the newer version isnt compatible yet ?



Usergroup: Guest
Joined:

Total Topics: 0
Total Comments:
Posted 07/31/07 - 1:18 PM:

Well the edited one doesnt work either.
I still get :

Warning: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in /home/public_html/databases/mysqli.php on line 21

Catchable fatal error: Object of class category could not be converted to string in /home/public_html/admin/dmozimporter.php on line 69
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 67
Total Comments: 7799
Posted 08/01/07 - 5:57 AM:

There've been no 4.1.0 beta releases since the above post, so changes mentioned in it can't apply to that series yet.
locked
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.