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

Upgrader: Database error, given array of integer values is empty. (member_list) #7073

Closed
sbulen opened this issue Sep 11, 2021 · 3 comments · Fixed by #7076
Closed

Upgrader: Database error, given array of integer values is empty. (member_list) #7073

sbulen opened this issue Sep 11, 2021 · 3 comments · Fixed by #7076
Labels
Milestone

Comments

@sbulen
Copy link
Contributor

sbulen commented Sep 11, 2021

Description

+++  Moving label info to new tables and updating rules (May be slow!!!)Error: Database error, given array of integer values is empty. (member_list)<em>(upgrade.php(2148) : eval()'d code-74)</em> File: yada\yada\Sources\Subs-Db-mysql.php Line: 930<div style='color:#e74c3c;margin:20px 0px 20px 0px;padding:0px 10px 20px 10px;border:solid 1px #e74c3c;border-radius:4px;'>
Fatal error: Uncaught Error: Call to undefined function allowedTo() in yada\yada\Sources\Subs-Db-mysql.php:705
Stack trace:
#0 yada\yada\Sources\Subs-Db-mysql.php(491): smf_db_error('\n\t\t\t\tUPDATE smf...', Object(mysqli))
#1 yada\yada\upgrade.php(2148) : eval()'d code(74): smf_db_query('', '\n\t\t\t\tUPDATE smf...', Array)
#2 yada\yada\upgrade.php(2148): eval()
#3 yada\yada\upgrade.php(1641): parse_sql('D:\\EasyPHP\\van2...')
#4 yada\yada\upgrade.php(350): DatabaseChanges()
#5 {main}
  thrown in yada\yada\Sources\Subs-Db-mysql.php on line 705

Steps to reproduce

  1. Upgrade a 2.0 DB via CLI

Environment (complete as necessary)

  • Version/Git revision: Current
  • Database Type: Mysql
  • Database Version: 5.7
  • PHP Version: 7.4
@sbulen
Copy link
Contributor Author

sbulen commented Sep 13, 2021

At first glance, this appears related to #7019

In this particular test DB there are no PMs at all; this may be part of it.

The SQL query being generated looks like:

UPDATE smf_pm_recipients
SET in_inbox = 1
WHERE FIND_IN_SET(-1, labels)
AND id_member IN ()

@BrickOzp - could you take a peek at this?

BrickOzp added a commit to BrickOzp/SMF2.1 that referenced this issue Sep 13, 2021
Fixes SimpleMachines#7073

Signed-off-by: Oscar Rydhé <oscar.rydhe@gmail.com>
@BrickOzp
Copy link
Contributor

@sbulen Please test this fix

@sbulen
Copy link
Contributor Author

sbulen commented Sep 13, 2021

Thanx! Will take a peek tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants