Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter frugan

    (@frugan)

    Thanks @kubitomakita, I tried the opcache fix proposed with PHP 8.1 and 8.2, but the problem remains the same..

    PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, array callback has to contain indices 0 and 1 in /app/public/wp/wp-includes/class-wp-hook.php:310\nStack trace:\n#0 /app/public/wp/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()\n#1 /app/public/wp/wp-includes/plugin.php(517): WP_Hook->do_action()\n#2 /app/public/app/plugins/easy-watermark/src/classes/Settings/Section.php(55): do_action()\n#3 /app/public/app/plugins/easy-watermark/src/classes/Backup/Manager.php(69): EasyWatermark\Settings\Section->__construct()\n#4 /app/public/wp/wp-includes/class-wp-hook.php(310): EasyWatermark\Backup\Manager->register_settings_section()\n#5 /app/public/wp/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()\n#6 /app/public/wp/wp-includes/plugin.php(517): WP_Hook->do_action()\n#7 /app/public/app/plugins/easy-watermark/src/classes/Settings/Settings.php(60): do_action…

    As @prfryer27 says, the problem would seem to be the use of $this with do_action().
    The classes involved are:

    src/classes/Placeholders/Resolver.php
    src/classes/Settings/Section.php
    src/classes/Settings/Settings.php

    Other plugins (e.g. Elementor https://github.com/elementr/elementr/blob/main/app/app.php#L73 ) use $this with do_action(), but in our case the classes involved extend Micropackage\Singleton\Singleton: could this be the cause of the problem?


    Thread Starter frugan

    (@frugan)

    Thank you @prfryer27!

    For now we no longer use the plugin, I still hope that the author of the plugin fixes the problem..

Viewing 2 replies - 1 through 2 (of 2 total)