php-frontend Digest 27 Apr 2006 20:00:51 -0000 Issue 118
Topics (messages 954 through 956):
Problem with Udm_Alloc_Agent_Array()
954 by: Yannick Warnier
955 by: Yannick Warnier
broken phrase search?
956 by: Josh Santangelo
Administrivia:
To subscribe to the digest, e-mail:
<php-frontend-digest-subscribe mnogosearch.org>
To unsubscribe from the digest, e-mail:
<php-frontend-digest-unsubscribe mnogosearch.org>
To post to the list, e-mail:
<php-frontend mnogosearch.org>
------------------------------------------------------------
----------
Hello all,
I am managing a monogosearch-php install on a server for
clients and
recently the interface stopped working, displaying a message
saying that
"There was an error" (which is not that useful).
After a few debug experiments, I have located that the
problem is around
the call to Udm_Alloc_Agent_Array(), line 135 or around in
init.inc:
if (Udm_Api_Version() >= 30211) {
$udm_agent=Udm_Alloc_Agent_Array($dbaddr); //this
line
} elseif (Udm_Api_Version() >= 30204) {
$udm_agent=Udm_Alloc_Agent($dbaddr);
} else {
$udm_agent=Udm_Alloc_Agent($dbaddr,$dbmode);
}
phpinfo() says the version of the mnogosearch module is
30234 and I
remember clearly that it worked a few weeks ago. Also I
don't manage all
of the server's settings, so the mnogosearch module might
have been
upgraded without me knowing it.
I have also checked the dbaddr setting in search.htm
Could somebody help me with that problem, or how to fix the
call to
Udm_Alloc_Agent_Array() which looks wrong?
It is quite hard to find any doc about one specific function
of the
module on the internet.
Thank you,
Yannick
Le jeudi 13 avril 2006 à 13:49 +0100, Yannick Warnier a
écrit :
> Le jeudi 13 avril 2006 à 13:02 +0100, Yannick Warnier a
écrit :
> > Hello all,
> >
> > I am managing a monogosearch-php install on a
server for clients and
> > recently the interface stopped working, displaying
a message saying that
> > "There was an error" (which is not
that useful).
> >
> > After a few debug experiments, I have located that
the problem is around
> > the call to Udm_Alloc_Agent_Array(), line 135 or
around in init.inc:
> >
> > if (Udm_Api_Version() >= 30211) {
> > $udm_agent=Udm_Alloc_Agent_Array($dbaddr);
//this line
> > } elseif (Udm_Api_Version() >= 30204) {
> > $udm_agent=Udm_Alloc_Agent($dbaddr);
> > } else {
> >
$udm_agent=Udm_Alloc_Agent($dbaddr,$dbmode);
> > }
> >
> > phpinfo() says the version of the mnogosearch
module is 30234 and I
> > remember clearly that it worked a few weeks ago.
Also I don't manage all
> > of the server's settings, so the mnogosearch
module might have been
> > upgraded without me knowing it.
> >
> > I have also checked the dbaddr setting in
search.htm
>
> Big change to my previous post as I have seen
$udm_agent is used in a
> lot of place. The only place where it returns an error
is actually in
> search.php around line 50:
>
>
> $res=Udm_Find($udm_agent,$q);
>
> if(!$res){
> print_error_local(Udm_Error($udm_agent));
> } else {
> ...
>
> This is the bit that returns an error message. Sorry
for the confusing
> post before, I didn't realise $udm_agent was used a
lot in init.inc
>
> Now if somebody can tell me what is likely to break
Udm_Find(), that
> would be great!
To keep you updated, the problem seems to come from the
"Suggest" option
in search.htm. Removing that option now gives no error but
doesn't
display any result yet.
I spotted that by commenting different parts of my init.inc
one by one
and commenting the line
if ($suggest=='yes')
Udm_Set_Agent_Param_Ex($udm_agent,'suggest','yes');
removed the error message.
Now to find a way to get data back...
Yannick
When "phrase" is selected as the search mode on
my site, I get the
following error:
Warning: udm_set_agent_param()
[function.udm-set-agent-param]: Unknown
search mode in
/home/1/lennox01/public_html/new.principa.net/public/search/
init.inc on
line 269
The relevant line in init.inc is:
Udm_Set_Agent_Param($udm_agent,UDM_PARAM_SEARCH_MODE,UDM_MOD
E_PHRASE);
UDM_MODE_PHRASE appears to exist (set to 3)
I am using mnogosearch-3.2.35 and mnogosearchphp-1.96.
thanks,
-josh
|