• Resolved mrtvy.kenny

    (@mrtvykenny)


    Hi, i know this is a configuration issue, however i came upon a website, where DB_HOST was not confugured in config file.
    the webiste works normally
    however when tried to create a package, the scanning screen get stuck and in the background i found this in error log:

    PHP Fatal error: Uncaught Error: Undefined constant “DB_HOST” in /web/wp-content/plugins/duplicator/views/packages/main/s2.scan3.php:738

    this should result in some sort of error, it does not – it “hangs” the scan page looking as it scans forever..

    i know it is a exotic circumstance, but anyway..

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support mohammedeisa

    (@mohammedeisa)

    Hello @mrtvykenny ,

    Thanks for reaching out to us.

    I understand that you website has a custom structure, the DB_HOST constant is not defined in the wp-config.php file which causes an issue while creating a backup, and the scan fails.

    Please try adding the following line to the wp-config.php file and let me know if this resolves the issue:

    if (!defined(‘DB_HOST’)) define(‘DB_HOST’,’localhost’);

    I’m looking forward to hearing back from you.

    Thanks!

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hello @mrtvykenny ,

    You may replace “localhost” with the actual database host you use.

    Thread Starter mrtvy.kenny

    (@mrtvykenny)

    @mohammedeisa Hi, thank you for replying..
    the default WordPress config has this row:

    /** Database hostname */
    define( ‘DB_HOST’, ‘localhost’ );

    I came across an installation, that did not have this row and even though the website worked normally, i was unable to make backup, because of the stuck scan that looks as working infinitely..
    So im just letting know, that is something that is not handled well error-wise..

    Plugin Support mohammedeisa

    (@mohammedeisa)

    Hi @mrtvykenny ,

    We understand that you’re facing an issue that requires further investigation, and it may involve sharing log files containing sensitive information about your website. Unfortunately, such sharing is not allowed in WordPress.org forums for security reasons.

    To ensure your privacy and get the necessary support, kindly contact us through the form on our Contact Us page, and we’ll be more than happy to assist you promptly:

    https://duplicator.com/contact/?form=1

    Looking forward to hearing back from you.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.