News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Simple Search error after upgrade to 1.1.3

Started by Jack van Dijk, June 26, 2007, 09:04:54 AM

Previous topic - Next topic

Jack van Dijk

SMF Version: SMF 1.1.3
After having upgraded to 1.1.3 the simple search gives the following error:

8: Undefined index: brd
File: /home/.sites/28/site1/web/yabbse/Sources/Search.php
Line: 407

Any ideas?

Thanks,

Jack

Oldiesmann

Search.php

Find
if (!is_array($_REQUEST['brd']) && !empty($_REQUEST['brd']))

Replace
if (!empty($_REQUEST['brd']) && !is_array($_REQUEST['brd']))
Michael Eshom
Christian Metal Fans

#Serseri



sharks

So, it IS a bug afterall :?

Thanks A LOT Oldiesmann. I had to turn off error log on my forum, to prevent flooding of the brd errors, every time that a member did a search on my forum.

cheers!

d1m0n


Dejv

Thank you oldiesman, this solved my problem as well! :)
SMF 1.1.20

Kursatu

Thank you
Thank you
Thank you

That took my more than to half an hour work but solution was ready here.

saosangmo

After I upgrade to version 1.1.3 my forum display the below error

QuoteUnknown error
File: /home/congcumi/public_html/hty/Sources/Search.php
Lines: 1099

My forum has no mod on Search.php

plz help me!

saosangmo

After I upgrade to version 1.1.3 my forum display the below error

QuoteUnknown error
File: /home/congcumi/public_html/hty/Sources/Search.php
Lines: 1099

My forum has no mod on Search.php

plz help me!

shadow82x

Try reuploading /sources/search.php from a fresh install so you overwrite it with a clean file.
Colin B
Former Spammer, Customize, & Support Team Member

saosangmo

#11
I have been overwrite the Search.php but the error is the same

line 1090 -1099 in my search.php
               db_query("
                  INSERT IGNORE INTO {$db_prefix}" . ($createTemporary ? 'tmp_' : '') . "log_search_topics
                     (" . ($createTemporary ? '' : 'ID_SEARCH, ') . "ID_TOPIC)
                  SELECT " . ($createTemporary ? '' : $_SESSION['search_cache']['ID_SEARCH'] . ', ') . "t.ID_TOPIC
                  FROM (" . implode(', ', $subject_query['from']) . ')' . (empty($subject_query['left_join']) ? '' : "
                     LEFT JOIN " . implode("
                     LEFT JOIN ", $subject_query['left_join'])) . "
                  WHERE " . implode("
                     AND ", $subject_query['where']) . (empty($modSettings['search_max_results']) ? '' : "
                  LIMIT " . ($modSettings['search_max_results'] - $numSubjectResults)), __FILE__, __LINE__);

saosangmo

Can anyone explain what the above code do?


JoeJoomla

re: 8: Undefined index: brd

And also thank you Oldiesmann from me.

I have been using SMF 1.1.3 for awhile. This problem didn't show up until I did a reinstall this week due to removing an outdated arcade that was causing problems. Why didn't that error show up before?
joejoomla.com - Where Joomla! friends have fun and help each other

greyknight17

@saosangmo: Try replacing all the SMF files again and see if the error returns.

Pranav


spytrdr

#17
Quote from: Oldiesmann on June 26, 2007, 09:11:47 AM
Search.php

Find
if (!is_array($_REQUEST['brd']) && !empty($_REQUEST['brd']))

Replace
if (!empty($_REQUEST['brd']) && !is_array($_REQUEST['brd']))

That fixed everyone's problems (mine too), it seems. If it's a coding error (bug), it's still present in 1.1.4, unfortunately.


Darknico

Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Advertisement: