Git Product home page Git Product logo

duplicator's Issues

Uncaught Error: Call to undefined function ProcessWire\bd()

I got the following error message in the php logs:

[23-Mar-2022 15:23:37 Europe/Zurich] PHP Fatal error: Uncaught Error: Call to undefined function ProcessWire\bd() in C:\foo\bar\site\modules\Duplicator\Duplicator.module:622 Stack trace: #0 C:\foo\bar\wire\core\Wire.php(417): ProcessWire\Duplicator->___cronJob(Object(ProcessWire\HookEvent)) #1 C:\foo\bar\wire\core\WireHooks.php(951): ProcessWire\Wire->_callMethod('___cronJob', Array) #2 C:\foo\bar\wire\core\Wire.php(485): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Duplicator), 'cronJob', Array) #3 C:\foo\bar\site\modules\Duplicator\Duplicator.module(289): ProcessWire\Wire->__call('cronJob', Array) #4 C:\foo\bar\wire\core\Modules.php(682): ProcessWire\Duplicator->init() #5 C:\foo\bar\wire\core\Modules.php(1448): ProcessWire\Modules->initModule(Object(ProcessWire\Duplicator), Array) #6 C:\foo\bar\wire\core\Modules.php(1257): ProcessWire\Modules->getModule('Duplicator') #7 C:\foo\bar in C:\foo\bar\site\modules\Duplicator\Duplicator.module on line 622

Uncaught Error: Class 'DUP_Logs' not found

When I've "FTP upload" enabled then I'am getting the following error:

[23-Mar-2022 15:44:01 Europe/Zurich] PHP Fatal error: Uncaught Error: Class 'DUP_Logs' not found in C:\foo\bar\site\modules\Duplicator\Classes\FTPClient.php:58 Stack trace: #0 C:\foo\bar\site\modules\Duplicator\Duplicator.module(641): FTPClient->connect() #1 C:\foo\bar\wire\core\Wire.php(417): ProcessWire\Duplicator->___cronJob(Object(ProcessWire\HookEvent)) #2 C:\foo\bar\wire\core\WireHooks.php(951): ProcessWire\Wire->_callMethod('___cronJob', Array) #3 C:\foo\bar\wire\core\Wire.php(485): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Duplicator), 'cronJob', Array) #4 C:\foo\bar\site\modules\Duplicator\Duplicator.module(289): ProcessWire\Wire->__call('cronJob', Array) #5 C:\foo\bar\wire\core\Modules.php(682): ProcessWire\Duplicator->init() #6 C:\foo\bar\wire\core\Modules.php(1448): ProcessWire\Modules->initModule(Object(ProcessWire\Duplicator), Array) #7 C:\dev\Wampserver\www\f2ps.loc in C:\foo\bar\site\modules\Duplicator\Classes\FTPClient.php on line 58 [23-Mar-2022 15:44:01 Europe/Zurich] PHP Warning: Cannot modify header information - headers already sent in C:\foo\bar\wire\core\WireHttp.php on line 1649 [23-Mar-2022 15:44:01 Europe/Zurich] PHP Stack trace: [23-Mar-2022 15:44:01 Europe/Zurich] PHP 1. ProcessWire\WireShutdown->shutdown() C:\foo\bar\wire\core\WireShutdown.php:0 [23-Mar-2022 15:44:01 Europe/Zurich] PHP 2. ProcessWire\WireShutdown->sendFatalHeader() C:\foo\bar\wire\core\WireShutdown.php:581 [23-Mar-2022 15:44:01 Europe/Zurich] PHP 3. ProcessWire\WireHttp->sendStatusHeader() C:\foo\bar\wire\core\WireShutdown.php:405 [23-Mar-2022 15:44:01 Europe/Zurich] PHP 4. ProcessWire\WireHttp->sendHeader() C:\foo\bar\wire\core\WireHttp.php:1671 [23-Mar-2022 15:44:01 Europe/Zurich] PHP 5. header() C:\foo\bar\wire\core\WireHttp.php:1649

Tests

Test needed on php-7.4, php-8.0 and php-8.1 w/ latest pw-dev branch

  • Test process module with latest jquery (pw version) upgrade #36
  • Test FTP
  • Test Amazon S3 (forum report)
  • Test GoogleDrive
  • Test Dropbox (no test as the lib is still not up-to-date)

FTP doesn't work with PHP 8.1

With PHP 8.1 when I try to backup to an ftp-server I get:

[FTP] error: cannot connect to <myftpserver.com> on port <21>

Don't require deadline for deletion of backups

The deletion of the oldest backup when reaching the Maximum number of packages-number is only executed when the Remove backup packages older than-deadline is also set, this is not mentioned anywhere and also not desirable. This could easily be fixed by removing || empty($deadline) from line 202 of FTPClient.php and adding an empty($deadline)-check around the second half of line 225.

PHP 8 deprecation warning

PHP Deprecated: basename(): Passing null to parameter #1 ($path) of type string is deprecated in ...\wwwroot\site\modules\Duplicator\ProcessDuplicator.module:234

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.