VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: Manalo001 on March 05, 2009, 18:21:37 PM

Title: Bug report ?
Post by: Manalo001 on March 05, 2009, 18:21:37 PM
hello
with virtuemart 1.1.3 php 5.2.6 jommla 1.5.9
Random errors after select categories. (sometimes appears on a category selected sometimes not with the same...)

Warning: mysql_real_escape_string() expects parameter 2 to be resource, boolean given in /homez.109/colorsin/www/libraries/joomla/database/database/mysql.php on line 193

This errors was reported few times since one year on the forum but not really solutions.

Can you help me to solve my problem please?
Thanks
thierry
Title: Re: Bug report ?
Post by: zimba7k on March 21, 2009, 01:50:29 AM
same problem for me with the 1.1.2 virtue mart and 1.5.9 Joomla

I was wondering :
1. if it was related to the server speed
2. if by changing the error reporting level it would be possible to hide the warning that doesn't have any functional consequences.
Title: Re: Bug report ?
Post by: aravot on March 21, 2009, 07:49:13 AM
Never seen the error, don't know what the cause of it is.
Title: Re: Bug report ?
Post by: Manalo001 on March 21, 2009, 09:37:37 AM
i agree , probably a problem with the response server.
It's very difficult to have the same error on the same item menu twice.
warning not prevent to work correctly so if we could hide it ...

if you're lucky you can have this warning on www.colorsinbox.com by selecting menu few times and you 'll see ! (users tell us many times about this warning and i could see it in 2 minutes)

Title: Re: Bug report ?
Post by: zimba7k on March 21, 2009, 18:23:57 PM
I'm upgrading the server and will let you now if with more threads to the db it still appears.

To be continued
Title: Re: Bug report ?
Post by: aravot on March 21, 2009, 18:59:25 PM
Which SEF are you using?
Title: Re: Bug report ?
Post by: aravot on March 21, 2009, 19:12:23 PM
It seems a connection issue base on this post http://forum.joomla.org/viewtopic.php?f=428&t=355340&view=previous
Title: Re: Bug report ?
Post by: zimba7k on March 21, 2009, 19:21:11 PM
yeah I believe (and want to make sure) it's when the database doesn't have any thread free to execute the request
Title: Re: Bug report ?
Post by: zimba7k on March 23, 2009, 03:44:24 AM
Yeap : that was it, too much requests processed lead to having not enough threads available to the database.

I have changed to 10 thread and don't experience the bug anymore.

Hope that helps.
Title: Re: Bug report ?
Post by: zimba7k on April 02, 2009, 05:34:04 AM
Never had the problem again, so I guess it's the solution.