Start ::
PostNuke 0.7 Support ::
Core Modules & Blocks ::
7.2.2 Members_List Search not working?
Moderated by: Support Team
-
- rank:
-
Freshman
- registered:
- October 2002
- Status:
- offline
- last visit:
- 09.03.03
- Posts:
- 8
Fresh install of 7.2.2 the new (I think) search facility for the Members_List module appears to be failing -- as follows:
1. Search nickname -- works
2. URL -- Actually searches 'nickname' NOT URL -- thus works, but not as advertised!!
3. Search Real Name -- fails -- spewing forth following message:
Error accesing to the database
Program: /path/to/modules/Members_List/index.php - Line N.: 284
Database: nuke
Error (1054) : Unknown column 'Members_List' in 'order clause'
When I echo the actual query to the web page the problem appears to be that somehow $GLOBALS[sortby] value is "Members_List" .Can't figure out how that happens yet. -
- rank:
-
Software Foundation
- registered:
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 4473
please check updated sources
-----
regards from germany
..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::.. -
- rank:
-
Freshman
- registered:
- October 2002
- Status:
- offline
- last visit:
- 09.03.03
- Posts:
- 8
As per subject line the link to the revised source was appreciated. Works great now. Several questions:
What was/were the necessary change(s) to make the fix and why? I spent some time looking at the file to try and figure it out -- and the answer would help me learn more about how things are put together PostNuke (and PHP) are new to me, and I Like to be able to fix my own problems -- maybe even help others.
Also -- How do I access code as you guys revise it -- presuming that other bugs emerge?
:D
Thanks. -
- rank:
-
Software Foundation
- registered:
- Status:
- offline
- last visit:
- 26.08.08
- Posts:
- 4473
as you can see in the diff
there were two minor bugs:
- the radiobutton were named wrong (sortby instead of sorting)
- the pnVarCleanFromInput used $GLOBALS[xxx] instead of xxx
and a cosmetic change for the URL when sorted by URL
if you want to take a closer peak to development check this
-----
regards from germany
..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::..
Start ::
PostNuke 0.7 Support ::
Core Modules & Blocks ::
7.2.2 Members_List Search not working?
