Warning: natsort() [function.natsort]: The argument should be an array in

Help
Chico
2014-07-16
2014-09-24
  • Chico
    Chico
    2014-07-16

    Getting a warning message on the Scheduled Backup screen.

    Warning: natsort() [function.natsort]: The argument should be an array in D:\Hosting......\functions.inc.php on line 1608

    The directory is unreadable and the update directory function doesn't work either. For directory I show both ./ and --------------------. Very strange.

    Manual backups work fine although at the moment I have to figure out why the gzip option isn't working. PHP version 5.2.17 (as I recall). phpMyBackupPro version 2.4.

    Have not attempted the FTP option but email of both uncompressed and zipped files is working.

     
    Last edit: Chico 2014-07-16
  • sourcer42
    sourcer42
    2014-09-24

    the natsort() problem was solved in my case by by the following change in functions.inc.php
    at line 1582 (using php 5.3??)
    // get recursive directory list
    function PMBP_get_dirs($dir,$renew=FALSE) {
    //$dirs=FALSE;
    $dirs=array();

    The rest I have not had any problems with, nor have I used the FTP option.
    HTH