• Resolved mktchs

    (@mktchs)


    Hey guys, this Fatal error showed up a few days ago out of the bloom and I just have no idea what it is and how to fix it. The plugin was up to date (v 3.1.7) and the page was working fine the last time I updated it. Now I can’t even edit the page inside wp-admin beacuse the mere click in the “edit page” button crashes the site. I tried to reinstall the plugin and to revert it to an older version (makes little sense, but I tried) and it didn’t work. You can see the whole uncensored error message in the link, but here’s the key part of it:

    Array
    (
    [type] => 1
    [message] => Uncaught Error: Call to a member function find() on bool in /home/[HOST]/public_html/[SITEURL]/wp-content/plugins/ultimate-blocks/src/blocks/content-toggle/block.php:169
    Stack trace: 0 /home/[HOST]/public_html/[SITEURL]/wp-includes/class-wp-hook.php(324): ub_content_toggle_filter('

    I really need to fix it. This page is CRUCIAL to my site (for legal reasons!)

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Imtiaz Rayhan

    (@imtiazrayhan)

    Hi,

    I am really sorry to hear that.

    We are looking into the issue right away and will get back to you as soon as we have something.

    Kind regards.

    I am also facing the same issue after updating from a very old version. Are you guys releasing a new version with a fix?

    • This reply was modified 9 months, 3 weeks ago by suryavardhan.

    I had commented src/blocks/content-toggle/block.php line number 178 – to 195

            // $panel = $parsedBlockContent->find('.toggleroot>.wp-block-ub-content-toggle-accordion>.wp-block-ub-content-toggle-accordion-content-wrap');
    
            // foreach ($panel as $elem) {
            //     // look for possible nested content toggles and remove existing ones
            //     foreach ($elem->find('.wp-block-ub-content-toggle') as $nestedToggle) {
            //         $nestedToggle->outertext = '';
            //     }
            //     foreach ($elem->find('script[type="application/ld+json"]') as $nestedToggle) {
            //         $nestedToggle->outertext = '';
            //     }
            // }
    
            // $panel = array_map(
            //     function ($elem) {
            //         return $elem->innertext;
            //     },
            //     $panel
            // );

    After this the page started working. I know its not the right way to fix, but this might shed some light on the issue for future fix

    I am also facing same issue. Any update on this issue?

    Plugin Contributor Istiak Rayhan

    (@istiakrayhan)

    We have already fixed the issue. The fix will be available in the next release.

    Plugin Contributor Istiak Rayhan

    (@istiakrayhan)

    Hope the new version has already solved the problem. If not, please feel free to reach us.

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