Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set $upgradeData to null after successful upgrade #3849

Merged
merged 1 commit into from Jan 22, 2017

Conversation

sbulen
Copy link
Contributor

@sbulen sbulen commented Jan 17, 2017

To fix this issue: Upgrader - : unserialize(): Error at offset 0 of 15 bytes in ... upgrade.php on line 125 #3841

Signed by Shawn Bulen, bulens@pacbell.net
@jdarwood007
Copy link
Member

Its actually supposed to be removed (the entire line). I wonder if something else broke elsewhere.

@jdarwood007
Copy link
Member

jdarwood007 commented Jan 17, 2017

41ec30d#diff-cccb32785017365b9e98cf35be9ed3dfL1627

That commit there removed the code that handled this.

@live627

@sbulen
Copy link
Contributor Author

sbulen commented Jan 18, 2017

I could not find current code to remove the line, or I would have gone that route.

Setting it to null works, and gets rid of the error ("unserialize(): Error at offset 0 of 15 bytes in upgrade.php on line 125").

@sbulen
Copy link
Contributor Author

sbulen commented Jan 18, 2017

FYI, I'm pretty sure this is the only instance of #remove# in SMF. If this were used elsewhere, we should definitely add that old code back. But if it's not needed elsewhere, & null works, I'd say let's keep it simple.

Make sense?

@live627
Copy link
Contributor

live627 commented Jan 18, 2017

41ec30d#diff-cccb32785017365b9e98cf35be9ed3dfL1627

That commit there removed the code that handled this.

That was when I wanted to recycle that function. Didn't notice it removed stuff.

@sbulen
Copy link
Contributor Author

sbulen commented Jan 21, 2017

FWIW, I really think we should not have put the #remove# in there, even temporarily, due to this syntax error.

It causes different issues for different folks, depending on the contents of their settings.php file.

@live627 live627 merged commit b2c278d into SimpleMachines:release-2.1 Jan 22, 2017
@sbulen sbulen deleted the upgrdatafix branch January 24, 2017 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants