Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Class 'DUP_Logs' not found #22

Closed
jnessier opened this issue Mar 23, 2022 · 4 comments
Closed

Uncaught Error: Class 'DUP_Logs' not found #22

jnessier opened this issue Mar 23, 2022 · 4 comments

Comments

@jnessier
Copy link
Contributor

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

@jnessier
Copy link
Contributor Author

The problem is the missing ProcessWire namespace in the FtpClient Class.

Solutions:

  • Move the FTP client class under the ProcessWire namespace
    ...or...
  • Add use ProcessWire\DUP_Logs and ProcessWire\Duplicator and so on...

@flydev-fr
Copy link
Owner

thanks again, if you need an update asap send a PR, or I will check it on evening

@jnessier
Copy link
Contributor Author

Did a PR. Please check and test...

flydev-fr added a commit that referenced this issue Mar 23, 2022
- PR made by @RjGAmer
  - #24
  - #25

(applied on dev branch - will be merged on main branch)
@flydev-fr
Copy link
Owner

it's merged on the dev branch - you can update it from this last version (1.4.21) by the time.

@flydev-fr flydev-fr reopened this Mar 23, 2022
flydev-fr added a commit that referenced this issue Mar 23, 2022
fix: namespace issue on FTPClient class #22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants