Another bug!! Oouttcchh!!!

In my simple form aplicattion when I try to use Quick Search I get next error:

PHP Fatal error: Call to a member function Execute() on a non-object in C:\Program Files (x86)\NetMake\v6\wwwroot\scriptcase\app\project\form_usuarios\form_usuarios_apl.php on line 6251

If I check about form_usuarios_apl.php on line 6251 I get this:

if ($condicao == “lt”)
{
$nm_comando = str_replace(“LIKE ‘%$campo%’”, “< ‘$campo’”, $nm_comando);
}
if ($condicao == “le”)
{
$nm_comando = str_replace(“LIKE ‘%$campo%’”, “<= ‘$campo’”, $nm_comando);
}
$_SESSION[‘scriptcase’][‘sc_sql_ult_comando’] = $nm_comando;
$_SESSION[‘scriptcase’][‘sc_sql_ult_conexao’] = ‘’;
[SIZE=4]if ($rx = $this->Ini->nm_db_conn_mysql->Execute($nm_comando)) [/SIZE]
{
while (!$rx->EOF)
{
$chave = $rx->fields[1];
$label = $rx->fields[0];
if ($condicao == “eq” && $campo == $label)
{
$result[] = $chave;
}

you can help me?
seems to be like another SC bug :frowning:

If I look at the code then there must be something wrong with the database connection. Appearantly $this or $this-> ini is referencing a null pointer.
It might be a bug, but check if you haven’t by accident set some parameters wrong causing this error.

this code is generated by ScriptCase.
All form application works well. Except quick search, who says "call to a member function Execute() on a non-object in " on each submit :frowning:

can you help me?

Because you have this problem in SC6 I’m not sure it’s a bug, We haven’t had this issue and we are a heavy user. Also if this is an obvious bug everybody would complain here about it as this quick search is everywhere.

You must have misposted this as the link you give is NetMake\v6\wwwroot

Not sure how we can help here.

so you recommend me go to v7 ?

No, this post is put in scriptcase 7 bugs and you are running sc6 so you posted it at the wrong place. But I have a feeling that you have misset something because the quicksearch is almost used everywhere and problems should be reported ages ago. But I don’t see how I can give you better help because I cannot reproduce it and I cannot look over your shoulder. Best advise I can give you is to create a small testing app on the same table and see if it also gives you an error. If so then contact sc support regarding this.

thank you . I will try!

regards
andres.

Hello Mr. Andres,

It seems to me that the problem might be happening due to an external factor such as application logic, a missing connection (as aducom noticed).

Please contact our support regarding this issue. Our chat is active on workdays from 8:00am to 6:00pm, and our ticket system is always available.

regards,
Bernhard Bernsmann

Hello,

I have the same problem.

How do I fix?

Help me please.

thanks

Hello,

I recommend you to get in touch with our support: https://www.scriptcase.net/scriptcase-support/

regards,
Bernhard Bernsmann

Thanks for responding,

Unfortunately, my support period has expired, it is for this situation that I turn to for answers forum.

thanks

I had this problem V7 and solved it for me.

In a form application;
I had a field called “STATUS” which was also a quicksearch field;
I had set it up with data type ‘select’;
I set up an automatic lookup;

In the automatic lookup section under ‘Choose connection’, I selected my regular connection for the database which caused the error when I used quicksearch on the STATUS field at runtime.

I changed ‘Choose connection’ back to blank and no more error.

I have the same problem.
if i open a project and do only the RUN command on a form or grid i got the same message.
My solution: I do the GENERATE command on a from or grid, then the problem is fixed !

[QUOTE=chanton;15062]Thanks for responding,

Unfortunately, my support period has expired, it is for this situation that I turn to for answers forum.

thanks[/QUOTE]

Hello,

As this is a bug, you can contact our support as a trial user.

https://www.scriptcase.net/scriptcase-support/

regards,
Bernhard Bernsmann