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 - undefined function "allowedTo()" errors #7757

Closed
sbulen opened this issue May 15, 2023 · 0 comments · Fixed by #7758
Closed

Upgrader - undefined function "allowedTo()" errors #7757

sbulen opened this issue May 15, 2023 · 0 comments · Fixed by #7758
Labels
Milestone

Comments

@sbulen
Copy link
Contributor

sbulen commented May 15, 2023

Description

You will likely only see this on large DB upgrades. One cause of this is that, although the upgrader tries to chunk up its work into smaller pieces, sometimes the pieces are still too big. Reducing the size of the $limit used for that step fixes the issue.

When the upgrader reports an undefined function allowedTo(), that means the true error is obfuscated. This error gets reported during the error reporting process for the previous error... 🙄

Flagging for 2.1.5 as this is an easy fix. Should likely change all of the
$limit = 100000;
to:
$limit = 10000;

100K inserts/updates is a pretty big bite. Small forums, no problem, you likely don't run into the limits. But you sure might for bigger forums on smaller servers...

Steps to reproduce

  1. Upgrade a forum on a shared server (lower memory settings) with hundreds of thousands of board or topic watches to migrate...

Environment (complete as necessary)

  • Version/Git revision: current
  • Database Type: mysql
  • Database Version: 5.7
  • PHP Version: 8.2

Additional information/references

From the forum:
https://www.simplemachines.org/community/index.php?msg=4152131

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.

1 participant