• Resolved Labradork

    (@yardobeef)


    PHP 7.3.0
    Wordpress 5.0
    MaxButtons 7.7

    Got a fatal error with PHP 7.3.0:

    PHP Fatal error: Uncaught Error: Call to a member function children() on array in /wp-content/plugins/maxbuttons/classes/maxCSSParser.php:61\nStack trace:\n#0 /wp-content/plugins/maxbuttons/classes/button.php(380): MaxButtons\\maxCSSParser->loadDom(Object(simple_html_dom))\n#1 /wp-content/plugins/maxbuttons/classes/button.php(476): MaxButtons\\maxButton->parse_button('normal')\n#2 /wp-content/plugins/maxbuttons/classes/button.php(889): MaxButtons\\maxButton->display(Array)\n#3 /wp-content/plugins/maxbuttons/classes/maxbuttons-class.php(593): MaxButtons\\maxButton->shortcode(Array)\n#4 /wp-includes/shortcodes.php(319): MaxButtons\\maxButtonsPlugin->shortcode(Array, '', 'maxbutton')\n#5 [internal function]: do_shortcode_tag(Array)\n#6 /wp-includes/shortcodes.php(197): pre...'

    This causes the page to display incompletely. MaxButtons 7.7 was previously working with PHP 7.2.12.

    There are also some less important warnings:

    PHP Warning:  Attempt to assign property 'outertext' of non-object in /wp-content/plugins/maxbuttons/blocks/container.php on line 48
    PHP Warning:  Attempt to assign property 'innertext' of non-object in /wp-content/plugins/maxbuttons/blocks/text.php on line 106
    PHP Warning:  Attempt to assign property 'href' of non-object in /wp-content/plugins/maxbuttons/blocks/basic.php on line 191
    PHP Warning:  preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /wp-content/plugins/maxbuttons/assets/libraries/simplehtmldom/simple_html_dom.php on line 694
    PHP Warning:  Invalid argument supplied for foreach() in /wp-content/plugins/maxbuttons/assets/libraries/simplehtmldom/simple_html_dom.php on line 701
    PHP Warning:  preg_match(): Compilation failed: invalid range in character class at offset 4 in /wp-content/plugins/maxbuttons/assets/libraries/simplehtmldom/simple_html_dom.php on line 1389
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    Hi,

    Thanks for letting us know. We are working on it, but the solution seems not to be very easy, so it might take a while.

    The issue lies with PHP 7.3 and one of our libraries, so if you have an option to use PHP 7.2 for now, I’d recommend that.

    Plugin Author Bas Schuiling

    (@basszje)

    Well, good news everyone.

    Seems the fix was easier than expected. Please try the updated version and let me know if that fixes it for you. If you find any other errors please let us know.

    Thread Starter Labradork

    (@yardobeef)

    Thank you for the very quick response and update. This has resolved the fatal error and the warnings. Seems good to go with PHP 7.3.0.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Call to a member function children() on array’ is closed to new replies.