Support » Plugin: Postie » Seeing Fatal Error with simple_html_dom

  • Resolved davidw09

    (@davidw09)


    Fatal error: Cannot declare class simple_html_dom, because the name is already in use in /nas/content/staging/worldwiseus/wp-content/plugins/postie.1/lib/simple_html_dom.php on line 987

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    This is due to some other plugin not checking if simple_html_dom already exists.

    Thread Starter davidw09

    (@davidw09)

    So how would I go about fixing the issue? What I ended up doing was changing simple_html_dom to simple_html_doml on line 987.

    But I know this will be overwritten in another update. Is there a way to track down which other plugin is causing this?

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Start by disabling all plugins except Postie. Then turn one on after another until you see the error.

    @wayneallen-1 “Ultimate Blocks” now has “simple_html_dom_node” class renamed to “ub_simple_html_dom_node” but it does not have functions like “file_get_html” and “str_get_html” renamed. So even if other plugin checks if class exists, it checks for “simple_html_dom_node” and it fails to find it so it loads its own version which leads to fatal error because functions are duplicated.

    Thanks!

    @wayneallen-1 Sorry for confusion, I have posted my comment in wrong place:)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Seeing Fatal Error with simple_html_dom’ is closed to new replies.