[wp-trac] [WordPress Trac] #58176: when using php8.0 error: call_user_func_array(): Argument #1 ($callback) must be a valid callback...

WordPress Trac noreply at wordpress.org
Sat Apr 22 17:54:48 UTC 2023


#58176: when using php8.0 error: call_user_func_array(): Argument #1 ($callback)
must be a valid callback...
--------------------------+----------------------
 Reporter:  urseetaeler   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Widgets       |     Version:  6.2
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by sabernhardt):

 * status:  new => closed
 * severity:  blocker => normal
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Old description:

> With php7.4 all was smooth, with php8.0 there is this nasty error:
>
> call_user_func_array(): Argument #1 ($callback) must be a valid callback,
> non-static method WP_Widget_MiniMeta::register() cannot be called
> statically
>
> I inactivated any plugin and I removed any themes but 2014 it didnot
> help. Then I installed 2023, activated it but the error was still there.
> The MiniMeta-Widget is active and seems to be the course of the error.
> Unfortunate (?) I am not a programmer there I will not deal with
> MiniMeta.

New description:

 With php7.4 all was smooth, with php8.0 there is this nasty error:

 `call_user_func_array(): Argument #1 ($callback) must be a valid callback,
 non-static method WP_Widget_MiniMeta::register() cannot be called
 statically`

 I inactivated any plugin and I removed any themes but 2014 it did not
 help. Then I installed 2023, activated it but the error was still there.
 The MiniMeta-Widget is active and seems to be the source of the error.
 Unfortunate (?) I am not a programmer there I will not deal with MiniMeta.

--

Comment:

 Hi and welcome to WordPress Core Trac!

 Yes, the [https://wordpress.org/plugins/minimeta-widget/ MiniMeta Widget
 plugin] should be the source of that error. Someone else
 [https://wordpress.org/support/topic/after-upgrade-to-fedora35-and-php-8/
 reported the same error].

 Since the plugin has not been in active development for years, I can only
 recommend trying to find another plugin that would do what you need. If
 you want help with the search, you could open a topic on the WordPress.org
 support forums:
 - [https://wordpress.org/support/plugin/minimeta-widget/ Forum for
 MiniMeta Widget], where I did not find any topics (yet) about an
 alternative
 - [https://wordpress.org/support/forum/how-to-and-troubleshooting/ Fixing
 WordPress forum]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58176#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list