Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 08:53 am EST
Geeklog Forums
Basic search broken after upgrade to MySQL 4.0.14
My ISP upgraded their MySQL backend to 4.0.14 to address a security issue. Since that time, the \"basic search\" functionality on geeklog 1.3.8-sr1 appears broken in two ways:
1. Basic search seems to require a login despite me having set searchloginrequired=0 and loginrequired=0 in config.php
2. Basic search is always returning zero results.
The advanced search appears to be working, however. Any ideas as to how I can debug this problem?
-- PhoneBoy
25
13
Quote
Status: offline
DTrumbower
Forum User
Moderator
Registered: 01/08/03
Posts: 507
Start at search.php and traverse.
27
11
Quote
Status: offline
dwelch
Forum User
Newbie
Registered: 05/17/03
Posts: 6
Unfortunately, it doesn\'t appear to help me much since I don\'t really know PHP. From what I can tell, it\'s creating a Search object, then saying \"doSearch\" and it\'s getting nothing back. Seeing as it can\'t even figure out I don\'t need to log in for searches, something fundamentally must be wrong. Can you suggest some way to enable a \"debugging\" mode so someone who understands this stuff can look at it and figure out where the problem is?
10
12
Quote
Status: offline
DTrumbower
Forum User
Moderator
Registered: 01/08/03
Posts: 507
How about a link? I have a test site on 4.0.14, with no apparent problems.
10
14
Quote
Status: offline
DTrumbower
Forum User
Moderator
Registered: 01/08/03
Posts: 507
Put the following code in your search.class.php file. It is located under /path/to/geeklog/classess . Put it in function _isSearchAllowed(), the line before the first IF, around line 824.
This will write to the error log. View the error log and see what the variables are.
Text Formatted Code
COM_errorLog('loginrequired = '. $_CONF['loginrequired'] .' searchloginrequired = '.$_CONF['searchloginrequired'],1);
9
8
Quote
All times are EST. The time is now 08:53 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content