Author Topic: Searching not working with PHP5  (Read 19022 times)

0 Members and 1 Guest are viewing this topic.

Offline xico

  • Newbie
  • *
  • Posts: 30
    • View Profile
Searching not working with PHP5
« on: May 20, 2005, 03:10:03 AM »
Is there a bug with PHP5 and searches...? I just install a fresh 4images 1.7.1 and the search can not find any image on the public side but on the admi side it does.

Any clue?

Thanks

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Searching not working with PHP5
« Reply #1 on: May 20, 2005, 02:37:00 PM »
what are searching for?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: Searching not working with PHP5
« Reply #2 on: May 20, 2005, 02:54:52 PM »
How about a link to where this is happening so we can try it out?

Offline xico

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Searching not working with PHP5
« Reply #3 on: May 20, 2005, 04:13:40 PM »
Sure.. sorry.. http://200.78.201.39/ there is only one image and the search option does not find it

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: Searching not working with PHP5
« Reply #4 on: May 20, 2005, 04:52:07 PM »
Interesting.  I don't think 4images has been adequately tested against PHP 5.  Try the [Plugin] Rebuild Search Index and see if that helps.  Otherwise I have no other ideas

Offline xico

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Searching not working with PHP5
« Reply #5 on: May 20, 2005, 05:36:23 PM »
I rebuild the index with the Rebuild Plugin with no successfull :(

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Searching not working with PHP5
« Reply #6 on: May 21, 2005, 12:01:11 AM »
look up in the database. make sure there are some keywords in 4images_keywords table.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Searching not working with PHP5
« Reply #7 on: May 21, 2005, 12:04:45 AM »
also, a link to your phpinfo could help too ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline xico

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Searching not working with PHP5
« Reply #8 on: May 21, 2005, 12:36:00 AM »
http://200.78.201.39/info.php  :P

And there is words in the word_list table

word_text
word_id
           just   
           flower   
           test   
           image   
           glass   
           soccer   
           two   
           persons   
           and   
           ball   
           person   

Offline xico

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Searching not working with PHP5
« Reply #9 on: May 26, 2005, 05:21:02 PM »
Fixed...i move the configuration files in search.php up to the top of the file

Offline teszeract

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Searching not working with PHP5
« Reply #10 on: September 02, 2005, 01:39:24 AM »
Fixed...i move the configuration files in search.php up to the top of the file

Hi
Could you explain what you did to fix your problem (for limited knowledge people).
I am encountering the same problem running OS 10.4 on a Mac. No search results although all keywords & descriptions are present.

If the original author is not around, can anyone else point me in the right direction.

By the way, excellent software. I have tried Coppermine, Snipegallery, phpwebgallery and others - and once search is sorted out, I think all will be good.

Offline teszeract

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Searching not working with PHP5
« Reply #11 on: September 02, 2005, 01:50:37 AM »
Okay. Me did it too!! :)

the following lines in search.php:
Code: [Select]
$main_template = 'search';

define('GET_CACHES', 1);
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/search_utils.php');

$search_id = array();

cut and paste just below the licensing info. If I'm wrong, please post here.

Offline Q-man

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Searching not working with PHP5
« Reply #12 on: January 18, 2006, 04:56:47 PM »
Thats really amazing! 20% of all postet gallery links here have this problem with the search.php...how did you find it out?
It really works...I was really sick about this bug!
Thank you :)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Searching not working with PHP5
« Reply #13 on: January 19, 2006, 12:16:13 AM »
If you would install all the fixes (especialy security fixes), then you would not have this issue ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Q-man

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Searching not working with PHP5
« Reply #14 on: January 19, 2006, 02:42:42 AM »
Okay, but for Newbies its not easy to find out how getting started...Three days ago, I installed 4images at the first time and its hard to get started when youŽre not a php crack ;) Maybe in 2 weeks IŽll find it funny, but now Im glad having solved the search problem...