• Resolved a1exus

    (@a1exus)


    hello world ??

    i’m getting following notice, every time I visit “Site Health”

    Notice: PHP’s XML extension is not available. Please contact your hosting provider to enable PHP’s XML extension. in?/pathTo/youarebetter.com/wordpress/wp-content/plugins/jetpack/modules/shortcodes/class.filter-embedded-html-objects.php?on line?345

    the PHP’ XML extension *is* present though..

    $ php -i | egrep '^XML Support'
    XML Support => active
    $

    Please advise)
    Thank you!

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi there –

    I see that the Jetpack connection for your site is working, and we aren’t reporting any errors.

    I’d recommend reaching out to your hosting provider so that they can verify that PHP is configured properly.

    Thread Starter a1exus

    (@a1exus)

    this is self-host, so I’m my own hosting provider and PHP IS configured properly, as phpinfo(); wouldn’t return XML Support active it that wasn’t the case..

    Plugin Support Ajay Kumar Jain

    (@akumarjain)

    Hi @a1exus, which version of PHP is installed on your server? Though I see your site is connected properly to Jetpack, could you retry installing a different version of PHP to see if that resolves the issue?

    Thread Starter a1exus

    (@a1exus)

    I’m using latest / stable PHP 8.3.6 which is available for my OS w/ libxml 2.11.7.

    Plugin Support Tamirat B. (a11n)

    (@tamirat22)

    Hello @a1exus,

    I took a look at your site and it appears your site was out of sync with our servers. I have applied a fix to address this discrepancy.

    Additionally, I ran some tests on your site, and it seems that although your domain has a valid SSL certificate, it is still possible to access your site via HTTP. This means your visitors and search engines can use either HTTP or HTTPS to access your site.

    This is an issue for search engines, since it often causes confusion and duplicate content, but it is also an issue for your site’s communication with Jetpack, as our system does not know whether it should connect to your site via one or the other address.

    To solve this issue, I recommend that you change your site’s URL to HTTPS (you can do so under Settings > General in your dashboard) and redirect all traffic from HTTP to HTTPS.

    You can also follow the instructions here to do so: https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/.

    Once that’s done, try to reconnect your site to Jetpack once again and let us know if you’re still seeing the reported issue.

    Thread Starter a1exus

    (@a1exus)

    CloudFlare listens to both http (port:80) and https (port:443), and within wordpress home and siteurl both already set for https and not http:

    [alexus@jj ~/youarebetter.com/wordpress]$ wp option get home
    https://youarebetter.com
    [alexus@jj ~/youarebetter.com/wordpress]$ wp option get siteurl
    https://youarebetter.com
    [alexus@jj ~/youarebetter.com/wordpress]$ 

    Thread Starter a1exus

    (@a1exus)

    ha! i actually just found Cloudflare feature

    Always use HTTPS

    Reply to all requests for URLs that use “http” with a 301 redirect to the equivalent “https” URL. If you only want to redirect for a subset of requests, consider creating an “Always use HTTPS” page rule.

    so I toggle it and now it’s enabled ?? and now I have this

    % curl -I https://youarebetter.com/
    HTTP/1.1 301 Moved Permanently
    Date: Wed, 05 Jun 2024 19:46:34 GMT
    Content-Type: text/html
    Content-Length: 167
    Connection: keep-alive
    Cache-Control: max-age=3600
    Expires: Wed, 05 Jun 2024 20:46:34 GMT
    Location: https://youarebetter.com/
    Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=dPNYSNabVa1%2FwWsC%2BH%2BtfrEYKDtwliYsJMETGWH9dyJgdvz2%2BZvXxKa%2BJ7tMaHF88RKhWfcFr%2BgkIO6CnkL0j%2BkYPnUO3OZj9Dkps809ZpJqdVJwHtP9B5XS6DP%2FXTYD3TjV"}],"group":"cf-nel","max_age":604800}
    NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
    Server: cloudflare
    CF-RAY: 88f2ab652c18ab1c-YYZ
    alt-svc: h3=":443"; ma=86400
    
    %
    • This reply was modified 9 months, 3 weeks ago by a1exus.

    Hi @a1exus,

    ha! i actually just found Cloudflare feature

    Always use HTTPS

    Great job. Thanks for letting us know. I checked your Jetpack connection again on our end, and everything appears to be working as it should be.

    How’s your Site Health page looking now? Has the PHP’s XML extension is not available. notification been resolved?

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hey @a1exus,

    Do you have updates about that? We usually close inactive threads after one week of no movement, but we want to make sure we’re all set before marking it as solved. Thanks!

    Thread Starter a1exus

    (@a1exus)

    the error is no longer present, maybe the message was cached…

    • This reply was modified 9 months, 1 week ago by a1exus.
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Notice: PHP’s XML extension is not available.’ is closed to new replies.