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

Multisite + PHP 8 Error on Admin access #542

Open
NgJason opened this issue Jan 25, 2023 · 0 comments
Open

Multisite + PHP 8 Error on Admin access #542

NgJason opened this issue Jan 25, 2023 · 0 comments

Comments

@NgJason
Copy link

NgJason commented Jan 25, 2023

Describe the bug
There has been a critical error on this website.

PHP error message:
TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, first array member is not a valid class name or object in

To Reproduce
Steps to reproduce the behavior:

  1. Install Multisite with PHP 8+
  2. Download the latest Total Upkeep and network activate
  3. Go to any admin page and it is erroring out

Expected behavior
Should not error out

Additional context
This has happened on a Bitnami / AWS Lightsail stack. (PHP 8.1.13)
This also happens on a local DevKisnta Stack (PHP 8)

From my own investigation so far, this code failed to instantiate

`
boldgrid-backup\admin\class-boldgrid-backup-admin-core.php

 if ( Boldgrid_Backup_Admin_Utility::is_active() ) {

      $this->auto_updates = new Boldgrid_Backup_Admin_Auto_Updates();

 }

`

because is_active() returns false.

Upon checking further,

get_option( 'active_plugins', array() ) doesn't return the plugin in the list.
update: from my research, ^ call may not be supported correctly on multisite.
https://wordpress.stackexchange.com/questions/298241/how-do-i-get-slug-of-all-active-plugins-programmatically#answer-298243

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

1 participant