Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Smart PHP Update fails for a Plesk domain: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty

 
applications extensionshttpsphpserversitemap

Symptoms

Smart PHP Updates can not be completed for a Plesk WordPress domain:

Smart PHP Update test run for example.com was performed with errors. Address the errors and try running Smart PHP Update again.
DOMDocument::loadHTML(): Argument #1 ($source) must not be empty

ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/filemng' 'root' 'base64' '/tmp/lshttpd/lshttpd.pid' '--allow-root'] with exit code [1]
ERR [panel] '/opt/psa/admin/bin/filemng' 'root' 'base64' '/tmp/lshttpd/lshttpd.pid' '--allow-root' failed with code 1.

stdout:
filemng: Error occurred during /usr/bin/base64 command.

stderr:
base64: /tmp/lshttpd/lshttpd.pid: No such file or directory
filemng: Error occurred during /usr/bin/base64 command.

ERR [panel] Task failed: id=5678, pid=157124, type=ext-wp-toolkit-smart-php-update-instance, error=DOMDocument::loadHTML(): Argument #1 ($source) must not be empty
ERR [panel] DOMDocument::loadHTML(): Argument #1 ($source) must not be empty
ERR [panel] Long task executor: id=5678 completed with error: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty:
0: /opt/psa/admin/plib/Task/Async/Executor.php:46
Task_Async_Executor->execute()
1: /opt/psa/admin/plib/scripts/task-async-executor.php:6

Cause

Incorrectly generated sitemap. https://example.com/blocks/footer/ URL was being checked while it had no content. 

Resolution

1. Connect to the server via SSH.

2. Locate the instance id for the domain in question. The Instance ID will be the first number listed:

plesk ext wp-toolkit --list | grep example.com

3. Manually generate sitemap using the instance ID:

plesk ext wp-toolkit --wp-cli -instance-id 123 -- sitemap generate

4. Re-run Smart PHP update.

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Ruby on Rails vs PHP: Which one’s right for your needs?

Read More »

Exploring Plesk’s Added Value Solutions So Far in 2023

Read More »

Unveiling Sitejet Builder: The Perfect Match for Your Effortless Website Creation Needs

Read More »
Knowledge Base

WordPress update via Smart Update fails in Plesk: Smart Update was unable to correctly clone your website for further analysis

Read More »

How to run Smart-Updates, Auto-Updates & Core Updates for one or all WordPress instances via CLI?

Read More »

WP Toolkit Cloning hangs or stops after 60 seconds on a Plesk server

Read More »

Smart Update of WordPress Toolkit in Plesk fails: Connection timed out.

Read More »

Hosting Wiki

  • CLI
  • Server Redundancy
  • AMP
  • Bare Metal Server
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • PHP
  • Joomla! Toolkit
  • WP Toolkit
  • WordPress
  • Plesk
  • Web Server
  • DNS Server
  • SSH
  • URL
  • HTTP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family