Advertisement:

Author Topic: Search API error in 2.1 RC2  (Read 4853 times)

Online davejo

  • Jr. Member
  • **
  • Posts: 337
    • Dave's Hobby Workshop
Search API error in 2.1 RC2
« 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
« Last Edit: April 01, 2019, 02:48:40 PM by d3vcho(); »
If you want 'Quiz' questions Click here
Quiz Test Site Link

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,496
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Search API error
« Reply #1 on: March 31, 2019, 06:20:49 AM »
Yep it was reported yesterday on GitHub. https://github.com/SimpleMachines/SMF2.1/issues/5558

Online davejo

  • Jr. Member
  • **
  • Posts: 337
    • Dave's Hobby Workshop
Re: Search API error
« Reply #2 on: March 31, 2019, 07:00:19 AM »
Thank you
If you want 'Quiz' questions Click here
Quiz Test Site Link

Offline Sesquipedalian

  • The Mad Doctor
  • On Hiatus
  • Sr. Member
  • *
  • Posts: 970
  • Gender: Male
  • It works! ... in theory.
    • Sesquipedalian on GitHub
Re: Search API error
« Reply #3 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.
« Last Edit: April 07, 2019, 06:54:47 AM by d3vcho(); »
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Online davejo

  • Jr. Member
  • **
  • Posts: 337
    • Dave's Hobby Workshop
Re: Search API error in 2.1 RC2
« Reply #4 on: April 02, 2019, 02:53:53 AM »
Thanks again
If you want 'Quiz' questions Click here
Quiz Test Site Link

Online davejo

  • Jr. Member
  • **
  • Posts: 337
    • Dave's Hobby Workshop
Re: Search API error
« Reply #5 on: April 02, 2019, 07:11:55 AM »
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
If you want 'Quiz' questions Click here
Quiz Test Site Link

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 863
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: Search API error in 2.1 RC2
« Reply #6 on: April 07, 2019, 06:54:19 AM »
sesquipedalian - there is a minor type in the code replace line: a ' is missing before the ;

 :)
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

No hack nor blackhats, just persistent asshats.

Offline d3vcho();

  • Sempiterno
  • Lead Localizer
  • SMF Hero
  • *
  • Posts: 3,946
  • Gender: Male
    • frandominguez03 on GitHub
Re: Search API error in 2.1 RC2
« Reply #7 on: April 07, 2019, 06:55:06 AM »
sesquipedalian - there is a minor type in the code replace line: a ' is missing before the ;

 :)

Edited. Thanks for the spot :P

"Greeting Death as an old friend, they departed this life as equals."

Offline jmrossi

  • Semi-Newbie
  • *
  • Posts: 22
Re: Search API error in 2.1 RC2
« Reply #8 on: April 28, 2019, 07:13:25 PM »
Thanks for the update, that fixed the issue on my forum.  :)

Offline SALocalcom

  • Jr. Member
  • **
  • Posts: 159
    • San Antonio Local Community
Re: Search API error in 2.1 RC2
« Reply #9 on: May 11, 2019, 09:52:34 PM »
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
.

Offline d3vcho();

  • Sempiterno
  • Lead Localizer
  • SMF Hero
  • *
  • Posts: 3,946
  • Gender: Male
    • frandominguez03 on GitHub
Re: Search API error in 2.1 RC2
« Reply #10 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.


"Greeting Death as an old friend, they departed this life as equals."

Offline JorgeAVM

  • Newbie
  • *
  • Posts: 8
Re: Search API error
« Reply #11 on: May 13, 2019, 01:14:04 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!

Offline shinglis

  • Semi-Newbie
  • *
  • Posts: 60
    • Somersetroadend
Re: Search API error in 2.1 RC2
« Reply #12 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


Offline Schizophren1c

  • Semi-Newbie
  • *
  • Posts: 10
Re: Search API error
« Reply #13 on: September 19, 2019, 10:05:08 AM »
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