News:

See the Forum Status page for any planned Forum maintenance or alerts on Forum outages.

Main Menu

NEW features

Started by rickmastfan67, March 26, 2024, 12:44:11 PM

Previous topic - Next topic

vdeane

I've also noticed that the alerts menu doesn't work - I have to middle-click it to open the main alerts page.
Please note: All comments here represent my own personal opinion and do not reflect the official position of NYSDOT or its affiliates.


kphoger

Quote from: hotdogPi on May 07, 2025, 11:33:15 AM1. <hr> and <br> with square brackets used to add a horizontal line. Now, they add extra space, but no line is visible.

Testing

this

out

now

He Is Already Here! Let's Go, Flamingo!
Dost thou understand the graveness of the circumstances?
Deut 23:13
Male pronouns, please.

Quote from: PKDIf you can control the meaning of words, you can control the people who must use them.

hotdogPi

Attempting to search, unless it succeeds, results in being locked out (pages refuse to load) for about a minute.
Clinched

Traveled, plus
US 13, 50
MA 35, 40, 53, 63, 79, 109, 126, 138, 141, 151, 159
NH 78, 111A(E); CA 90; NY 40, 366; CT 32, 193, 320; VT 2A, 5A; PA 3, 39, 51, 60; GA 42, 140; FL A1A, 7; WA 202; QC 162, 165, 263; 🇬🇧A100, A3211, A3213, A3215; 🇫🇷95 D316

Lowest untraveled: 36

hotdogPi

Looking at the code:

https://github.com/SimpleMachines/SMF/blob/release-3.0/Sources/Actions/Search2.php lines 263-271; sapi.php (https://github.com/SimpleMachines/SMF/blob/release-3.0/Sources/Sapi.php) determines the maximum memory allowed
Code (php) Select
/**
* Aborts search if the load average is too high right now.
*/
protected function checkLoadAverage(): void
{
if (Sapi::isOverloaded(Config::$modSettings['loadavg_search'] ?? null)) {
ErrorHandler::fatalLang('loadavg_search_disabled', false);
}
}

same page, lines 510-518
Code (php) Select
// How many results will the user be able to see?
$this->num_results = !empty($_SESSION['search_cache']['num_results']) ? $_SESSION['search_cache']['num_results'] : SearchResult::getNumResults();

// If there are no results that means the things in the cache got deleted, so pretend we have no topics anymore.
if ($this->num_results == 0) {
SearchApi::$loadedApi->results = [];

return;
}

https://github.com/SimpleMachines/SMF/blob/release-3.0/Sources/Search/SearchApi.php lines 1063-1070
Code (php) Select
// Searching a specific topic?
if (!empty($_REQUEST['topic']) || (!empty($_REQUEST['search_selection']) && $_REQUEST['search_selection'] == 'topic')) {
$this->params['topic'] = empty($_REQUEST['search_selection']) ? (int) $_REQUEST['topic'] : (isset($_REQUEST['sd_topic']) ? (int) $_REQUEST['sd_topic'] : '');

$this->params['show_complete'] = true;
} elseif (!empty($this->params['topic'])) {
$this->params['topic'] = (int) $this->params['topic'];
}

The first code block could be used for fixing search in general, while the second and third could be used for fixing thread search. If thread search is fixed but not overall, it will work, as searching right now if the parameters are highly specific. (Trying a thread search right now completes with 0 results rather than refusing to load like a generic search does.)
Clinched

Traveled, plus
US 13, 50
MA 35, 40, 53, 63, 79, 109, 126, 138, 141, 151, 159
NH 78, 111A(E); CA 90; NY 40, 366; CT 32, 193, 320; VT 2A, 5A; PA 3, 39, 51, 60; GA 42, 140; FL A1A, 7; WA 202; QC 162, 165, 263; 🇬🇧A100, A3211, A3213, A3215; 🇫🇷95 D316

Lowest untraveled: 36

hotdogPi

Thread search is back!
Clinched

Traveled, plus
US 13, 50
MA 35, 40, 53, 63, 79, 109, 126, 138, 141, 151, 159
NH 78, 111A(E); CA 90; NY 40, 366; CT 32, 193, 320; VT 2A, 5A; PA 3, 39, 51, 60; GA 42, 140; FL A1A, 7; WA 202; QC 162, 165, 263; 🇬🇧A100, A3211, A3213, A3215; 🇫🇷95 D316

Lowest untraveled: 36

Roadgeekteen

Quote from: hotdogPi on September 30, 2025, 10:46:10 PMThread search is back!
Let's go! No more Google search and hopefully no more me posting duplicate topics (I'll try my best...)
My username has been outdated since August 2023 but I'm too lazy to change it

Katavia

#181
Forum search just seems generally to be not functioning. Gives a bunch of 502/Bad Gateway errors.
(Former) pizza delivery driver with a penchant for highways.
On nearly every other online platform I go by Kurzov - Katavia is a holdover from the past.

hotdogPi

#182
Quote from: Katavia on April 11, 2026, 01:58:07 PMForum search just seems generally to be not functioning. Gives a bunch of 502/Bad Gateway errors.

This has been an issue for about a year now.

If you narrow your search enough, it will work. What you search for doesn't matter, but filters such as board/thread, user, or date range will. The limit is around 30,000, just barely below a user post search for the top user kphoger. (It's not 2^15-1=32767; Max Rockatansky throws an error despite being below that number.)
Clinched

Traveled, plus
US 13, 50
MA 35, 40, 53, 63, 79, 109, 126, 138, 141, 151, 159
NH 78, 111A(E); CA 90; NY 40, 366; CT 32, 193, 320; VT 2A, 5A; PA 3, 39, 51, 60; GA 42, 140; FL A1A, 7; WA 202; QC 162, 165, 263; 🇬🇧A100, A3211, A3213, A3215; 🇫🇷95 D316

Lowest untraveled: 36

Katavia

Quote from: hotdogPi on April 11, 2026, 02:09:34 PM
Quote from: Katavia on April 11, 2026, 01:58:07 PMForum search just seems generally to be not functioning. Gives a bunch of 502/Bad Gateway errors.

This has been an issue for about a year now.

If you narrow your search enough, it will work. What you search for doesn't matter, but filters such as board/thread, user, or date range will. The limit is around 30,000, just barely below a user post search for the top user kphoger.
Thank you kindly.
(Former) pizza delivery driver with a penchant for highways.
On nearly every other online platform I go by Kurzov - Katavia is a holdover from the past.

kphoger

If you can remember who made the post, then filtering by username helps a lot.  I typically search by username and then a date range of about 2000 days.  If I can't remember the username, then I have to shrink that date range quite a bit.

He Is Already Here! Let's Go, Flamingo!
Dost thou understand the graveness of the circumstances?
Deut 23:13
Male pronouns, please.

Quote from: PKDIf you can control the meaning of words, you can control the people who must use them.

hotdogPi

I don't know if it's different on different devices, but for me, name alone suffices for all but the top two users (kphoger and Max Rockatansky).
Clinched

Traveled, plus
US 13, 50
MA 35, 40, 53, 63, 79, 109, 126, 138, 141, 151, 159
NH 78, 111A(E); CA 90; NY 40, 366; CT 32, 193, 320; VT 2A, 5A; PA 3, 39, 51, 60; GA 42, 140; FL A1A, 7; WA 202; QC 162, 165, 263; 🇬🇧A100, A3211, A3213, A3215; 🇫🇷95 D316

Lowest untraveled: 36