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

SQL Error #12

Closed
thunderclap82 opened this issue Feb 20, 2017 · 13 comments
Closed

SQL Error #12

thunderclap82 opened this issue Feb 20, 2017 · 13 comments

Comments

@thunderclap82
Copy link

thunderclap82 commented Feb 20, 2017

I deactivated the plugin the install the 1.6 update, and when I went to activate it I keep getting the following error:

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1366 - Incorrect integer value: 'NULL' for column 'gid' at row 1
Query:
INSERT INTO mybb_settinggroups (`gid`,`name`,`title`,`description`,`disporder`,`isdefault`) VALUES ('NULL','unreadPosts','View Unread Posts','Settings for plugin \"View Unread Posts\"',105,'0')

Any ideas how to resolve this?

I'm running MyBB 1.8.10 on Ubuntu 16.04 and PHP7.

@lukasamd
Copy link
Owner

MyBB 1.6.x is not supported by this plugin.

@lukasamd lukasamd reopened this Feb 20, 2017
@lukasamd
Copy link
Owner

Sorry, do you mean plugin 1.6 version, or MyBB 1.6?

@lukasamd
Copy link
Owner

And what database do you use (type and version)?

@thunderclap82
Copy link
Author

I amended my first post. Plugin version 1.6 on MyBB 1.8.10. The server is running Ubuntu 16.04 with PHP7.

@thunderclap82
Copy link
Author

thunderclap82 commented Feb 20, 2017

I'm running MySQLi 5.7.17.

screen shot 2017-02-20 at 9 38 53 am

@SvePu
Copy link

SvePu commented Feb 20, 2017

@lukasamd - I've added a fix
#13

@thunderclap82
Copy link
Author

Thank you for such a quick investigation into this. Unfortunately, I just tried installing the new version you posted here and the error is still showing.

screen shot 2017-02-20 at 10 45 53 am

@SvePu
Copy link

SvePu commented Feb 20, 2017

@thunderclap82 - this is from another file ... I'll take a look

@SvePu
Copy link

SvePu commented Feb 20, 2017

@thunderclap82 - Added template install fix to PR #13

@thunderclap82
Copy link
Author

That did it. Thank you so much for your quick turnaround.

@SvePu
Copy link

SvePu commented Feb 20, 2017

You're welcome!

@lukasamd
Copy link
Owner

@SvePu Thanks for very fast help for other user. I will fix it, but I don't want change my code structure and convention, so I must reject that merge request.

@SvePu
Copy link

SvePu commented Feb 20, 2017

@lukasamd - no problem.....it's your party ;)

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

No branches or pull requests

3 participants