Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Dave J on March 31, 2019, 06:01:10 AM

Title: Search API error in 2.1 RC2
Post by: Dave J on March 31, 2019, 06:01:10 AM
All,

Just got these errors form searching, see attachment.

I upgraded from 2.1 RC1 to 2.1 RC2 today and this is the first time the error has shown, didn't see it in 2.1 RC1.

This is only my test site.




SMF Development Team has a solution for this.

Please check: https://www.simplemachines.org/community/index.php?topic=566687.msg4014020#msg4014020

d3vcho
Title: Re: Search API error
Post by: lurkalot on March 31, 2019, 06:20:49 AM
Yep it was reported yesterday on GitHub. https://github.com/SimpleMachines/SMF2.1/issues/5558
Title: Re: Search API error
Post by: Dave J on March 31, 2019, 07:00:19 AM
Thank you
Title: Re: Search API error
Post by: Sesquipedalian on April 01, 2019, 02:31:54 PM
This will be fixed in RC3. In the meantime, you can fix it yourself with one simple file edit.

In Sources/Class-SearchAPI.php, perform the following find & replace action. On an unmodified installation of 2.1 RC2, the relevant line of code can be found on line 148.

Code (Find) Select

public $version_compatible = 'SMF 2.1 RC1';


Code (Replace) Select

public $version_compatible = 'SMF 2.1 RC2';



To make this change, just download the file with your FTP client, edit it with a text editor, and then upload the edited copy.




EDIT: The attached modification package will make the change for you. Just download it and then install it using SMF 2.1's package manager like any other mod.
Title: Re: Search API error in 2.1 RC2
Post by: Dave J on April 02, 2019, 02:53:53 AM
Thanks again
Title: Re: Search API error
Post by: Dave J on April 02, 2019, 07:11:55 AM
Quote from: Sesquipedalian on April 01, 2019, 02:31:54 PM
This will be fixed in RC3. In the meantime, you can fix it yourself with one simple file edit.

In Sources/Class-SearchAPI.php, perform the following find & replace action. On an unmodified installation of 2.1 RC2, the relevant line of code can be found on line 148.

Code (Find) Select

public $version_compatible = 'SMF 2.1 RC1';


Code (Replace) Select

public $version_compatible = 'SMF 2.1 RC2;



To make this change, just download the file with your FTP client, edit it with a text editor, and then upload the edited copy.




EDIT: The attached modification package will make the change for you. Just download it and then install it using SMF 2.1's package manager like any other mod.


Yep that fixed that OK, thank you
Title: Re: Search API error in 2.1 RC2
Post by: landyvlad on April 07, 2019, 06:54:19 AM
sesquipedalian - there is a minor type in the code replace line: a ' is missing before the ;

:)
Title: Re: Search API error in 2.1 RC2
Post by: d3vcho on April 07, 2019, 06:55:06 AM
Quote from: landyvlad on April 07, 2019, 06:54:19 AM
sesquipedalian - there is a minor type in the code replace line: a ' is missing before the ;

:)

Edited. Thanks for the spot :P
Title: Re: Search API error in 2.1 RC2
Post by: jmrossi on April 28, 2019, 07:13:25 PM
Thanks for the update, that fixed the issue on my forum.  :)
Title: Re: Search API error in 2.1 RC2
Post by: SALocalcom on May 11, 2019, 09:52:34 PM
Quote from: d3vcho(); on April 07, 2019, 06:55:06 AM
Quote from: landyvlad on April 07, 2019, 06:54:19 AM
sesquipedalian - there is a minor type in the code replace line: a ' is missing before the ;

:)

Edited. Thanks for the spot :P

Just a bit vague for a beginner like me....like this?

public $version_compatible = 'SMF 2.1 RC1' a';

On both?
Thank
.
Title: Re: Search API error in 2.1 RC2
Post by: d3vcho on May 12, 2019, 02:49:53 AM
In Sources/Class-SearchAPI you gotta find:

public $version_compatible = 'SMF 2.1 RC1';

And replace it by:

public $version_compatible = 'SMF 2.1 RC2';

That's all.

Title: Re: Search API error
Post by: JorgeAVM on May 13, 2019, 01:14:04 PM
Quote from: Sesquipedalian on April 01, 2019, 02:31:54 PM
This will be fixed in RC3. In the meantime, you can fix it yourself with one simple file edit.

In Sources/Class-SearchAPI.php, perform the following find & replace action. On an unmodified installation of 2.1 RC2, the relevant line of code can be found on line 148.

Code (Find) Select

public $version_compatible = 'SMF 2.1 RC1';


Code (Replace) Select

public $version_compatible = 'SMF 2.1 RC2';



To make this change, just download the file with your FTP client, edit it with a text editor, and then upload the edited copy.




EDIT: The attached modification package will make the change for you. Just download it and then install it using SMF 2.1's package manager like any other mod.

Thank you!
Title: Re: Search API error in 2.1 RC2
Post by: shinglis on July 08, 2019, 05:20:46 PM
Just for reference I had to implement same fix.  Upgraded my site from 2.0.15 to 2.1 RC 2

Title: Re: Search API error
Post by: Schizophren1c on September 19, 2019, 10:05:08 AM
Quote from: Sesquipedalian on April 01, 2019, 02:31:54 PM
This will be fixed in RC3. In the meantime, you can fix it yourself with one simple file edit.

In Sources/Class-SearchAPI.php, perform the following find & replace action. On an unmodified installation of 2.1 RC2, the relevant line of code can be found on line 148.

Code (Find) Select

public $version_compatible = 'SMF 2.1 RC1';


Code (Replace) Select

public $version_compatible = 'SMF 2.1 RC2';



To make this change, just download the file with your FTP client, edit it with a text editor, and then upload the edited copy.




EDIT: The attached modification package will make the change for you. Just download it and then install it using SMF 2.1's package manager like any other mod.
thank u so much ur download link fixed my search issue