• Resolved jayhova4x4

    (@jayhova4x4)


    I’m attempting to move my WordPress site to a basic hosting site on godaddy.com.
    My first problem is extracting my files causes a 503 error. Second, when I try to connect to my database I run into some problems. For some reason the installer does not see cPanel as being installed on my host although it definitely is. Next the connection fails even though the information should all be correct.

    *** PHP Warning Message: mysqli_connect(): (28000/1045): Access denied for user ‘xxxxxxxx’@’localhost’ (using password: YES) (Code: 2, line 41 in /home/to4b0kdn6atw/public_html/dup-installer/classes/class.db.php)

    INSTALLER ERROR:
    *** PHP Fatal Error Message: Uncaught Error: Call to a member function options() on boolean in /home/to4b0kdn6atw/public_html/dup-installer/classes/class.db.php:45
    Stack trace:
    #0 /home/to4b0kdn6atw/public_html/dup-installer/ctrls/ctrl.s2.dbtest.php(162): DUPX_DB::connect(‘localhost’, ‘xxxxxxxxxxxx’, ‘xxxxxxxxxxx’, NULL, ‘3306’)
    #1 /home/to4b0kdn6atw/public_html/dup-installer/ctrls/ctrl.s2.dbtest.php(121): DUPX_DBTest->r10All(Array)
    #2 /home/to4b0kdn6atw/public_html/dup-installer/ctrls/ctrl.s2.dbtest.php(87): DUPX_DBTest->runBasic()
    #3 /home/to4b0kdn6atw/public_html/dup-installer/ctrls/ctrl.s2.base.php(92): DUPX_DBTest->run()
    #4 /home/to4b0kdn6atw/public_html/dup-installer/main.installer.php(196): require_once(‘/home/to4b0kdn6…’)
    #5 {main}
    thrown (Code: 1, line 45 in /home/to4b0kdn6atw/public_html/dup-installer/classes/class.db.php)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey @jayhova4x4,

    Do you happen to know what version of PHP you are running?

    Thanks~

    Hi @corylamleorg,

    I have the same error.

    INSTALLER ERROR:
    *** PHP Fatal Error Message: Uncaught Error: Call to a member function options() on boolean in /home/——/www/dup-installer/classes/class.db.php:45
    Stack trace:
    #0 /home/——-/www/dup-installer/ctrls/ctrl.s2.dbtest.php(162): DUPX_DB::connect(‘localhost’, ‘——‘, ‘——‘, NULL, ‘3306’)
    #1 /home/——/www/dup-installer/ctrls/ctrl.s2.dbtest.php(121): DUPX_DBTest->r10All(Array)
    #2 /home/——/www/dup-installer/ctrls/ctrl.s2.dbtest.php(87): DUPX_DBTest->runBasic()
    #3 /home/——/www/dup-installer/ctrls/ctrl.s2.base.php(92): DUPX_DBTest->run()
    #4 /home/——/www/dup-installer/main.installer.php(196): require_once(‘/home/——…’)
    #5 {main}
    thrown (Code: 1, line 45 in /home/——/www/dup-installer/classes/class.db.php)
    *** PHP Warning Message: mysqli_connect(): (HY000/2002): No such file or directory (Code: 2, line 41 in /home/——/www/dup-installer/classes/class.db.php)

    PHP 7.0 runs in my target host.

    do I have to downgrade to version 5.6 for php ?

    Thks for your help.

    • This reply was modified 6 years, 1 month ago by sytou34.
    • This reply was modified 6 years, 1 month ago by sytou34.

    This line is problematic.
    $dbh->options(MYSQLI_OPT_LOCAL_INFILE, false);

    Thk you for a quick answer about PHP version.

    Thread Starter jayhova4x4

    (@jayhova4x4)

    Same Here

    Hey community,

    Thanks for the feedback! If you can give the developer version a try it may have the updates for your issue. The very latest version (1.3.5) can be found by following these instructions:

    https://downloads.www.ads-software.com/plugin/duplicator.zip
    – Uninstall your current version and install this one.

    Let me know if this solves your issue~

    Thanks~

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot Connect to Database’ is closed to new replies.