Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMP error: Call to a member function hasAttribute() on null (0) [Error] #7757

Closed
diabitogoaway opened this issue Mar 3, 2024 · 2 comments
Closed
Labels
Support Help with setup, implementation, or "How do I?" questions.

Comments

@diabitogoaway
Copy link

diabitogoaway commented Mar 3, 2024

hello there, I've installed AMP plugin on my WordPress website but got the error below:
Call to a member function hasAttribute() on null (0) [Error]
/home/amatac/domains/amatacompany.com/public_html/wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Dom/Document.php:400

#0 /home/amatac/domains/amatacompany.com/public_html/wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Dom/Document.php(336): AmpProject\Dom\Document->loadHTMLFragment('...', Array)
#1 /home/amatac/domains/amatacompany.com/public_html/wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Dom/Document.php(234): AmpProject\Dom\Document->loadHTML('...', Array)
#2 /home/amatac/domains/amatacompany.com/public_html/wp-content/plugins/amp/includes/class-amp-theme-support.php(1969): AmpProject\Dom\Document::fromHtml('...', Array)
#3 /home/amatac/domains/amatacompany.com/public_html/wp-content/plugins/amp/includes/class-amp-theme-support.php(1732): AMP_Theme_Support::prepare_response('...')
#4 [internal function]: AMP_Theme_Support::finish_output_buffering('...', 9)
#5 /home/amatac/domains/amatacompany.com/public_html/wp-includes/functions.php(5373): ob_end_flush()
#6 /home/amatac/domains/amatacompany.com/public_html/wp-includes/class-wp-hook.php(324): wp_ob_end_flush_all('')
#7 /home/amatac/domains/amatacompany.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#8 /home/amatac/domains/amatacompany.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#9 /home/amatac/domains/amatacompany.com/public_html/wp-includes/load.php(1260): do_action('shutdown')
#10 [internal function]: shutdown_action_hook()
#11 {main}

Also the template mode is on standard in AMP settings

These are the things I've tried:
I changed the theme to default WordPress themes
I deactivated all of other plugins
I updated the WordPress core to version: 6.4.3
All of my plugins are updated
None of them worked

I use the karaous theme
And this is my website:
amatacompany.com

@milindmore22
Copy link
Collaborator

Hello @diabitogoaway

Can you please send your support UUID so that we can better understand your site?

Support request

@westonruter westonruter added the Support Help with setup, implementation, or "How do I?" questions. label May 2, 2024
@westonruter
Copy link
Member

Closing due to lack of response.

@westonruter westonruter closed this as not planned Won't fix, can't repro, duplicate, stale May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Help with setup, implementation, or "How do I?" questions.
Projects
None yet
Development

No branches or pull requests

3 participants