Menu above built with this plugin including Mega Menu.

PHP errors

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Featherstone 5 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #52392 Reply

    Bo Kjaergaard
    Participant

    Running the Query Monitor plugin reports PHP errors related to the plugin. Anyway to fix those?

    Deprecated (Suppressed) Passing a name as a first argument to the Twig_Environment::addFunction method is deprecated since version 1.21. Pass an instance of “Twig_SimpleFunction” instead when defining function “__”. 73
    wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Environment.php:1221
    Plugin: responsive-menu-pro
    Deprecated (Suppressed) Passing a name as a first argument to the Twig_Environment::addFunction method is deprecated since version 1.21. Pass an instance of “Twig_SimpleFunction” instead when defining function “do_meta_boxes”. 73

    wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Environment.php:1221
    Plugin: responsive-menu-pro
    Deprecated (Suppressed) Passing a name as a first argument to the Twig_Environment::addFunction method is deprecated since version 1.21. Pass an instance of “Twig_SimpleFunction” instead when defining function “unique_name”. 73
    wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Environment.php:1221
    Plugin: responsive-menu-pro
    Deprecated (Suppressed) Passing a name as a first argument to the Twig_Environment::addFunction method is deprecated since version 1.21. Pass an instance of “Twig_SimpleFunction” instead when defining function “printf”. 73

    wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Environment.php:1221
    Plugin: responsive-menu-pro
    Deprecated (Suppressed) Passing a name as a first argument to the Twig_Environment::addFunction method is deprecated since version 1.21. Pass an instance of “Twig_SimpleFunction” instead when defining function “sprintf”. 73

    wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Environment.php:1221
    Plugin: responsive-menu-pro
    Deprecated (Suppressed) Passing a name as a first argument to the Twig_Environment::addFunction method is deprecated since version 1.21. Pass an instance of “Twig_SimpleFunction” instead when defining function “apply_filters”. 73

    wp-content/plugins/responsive-menu-pro/vendor/twig/twig/lib/Twig/Environment.php:1221
    Plugin: responsive-menu-pro
    Deprecated (Suppressed) Passing a name as a first argument to the Twig_Environment::addFunction method is deprecated since version 1.21. Pass an instance of “Twig_SimpleFunction” instead when defining function “do_action”.

    #52406 Reply

    Hey there,

    Do you know what line of my plugin is causing this (not Twigs code)?

    I can’t see any calls to twigs addFunction method inside my config/twig.php file that are being passed as a name string and not as a Twig_SimpleFunction instance.

    Please advise

    Peter

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: PHP errors
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">

Responsive Menu Title Image
Responsive Menu
No coding knowledge needed