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

PS issue #450

Open
Phatdad76 opened this issue Nov 19, 2024 · 10 comments
Open

PS issue #450

Phatdad76 opened this issue Nov 19, 2024 · 10 comments
Assignees

Comments

@Phatdad76
Copy link

Issue Summary

  • A brief description of the issue or request.

Expected Behavior

  • Describe what you expected to happen or the outcome you’re hoping for.

Current Behavior

  • Outline what actually happens and how it differs from your expectations.

Steps to Reproduce

  1. Step-by-step instructions to reproduce the issue.
  2. Include any relevant configuration settings or code examples if applicable.

Environment Information

  • PrestaShop Version: (e.g., 1.7, 8, 9)
  • PHP Version: (e.g., 7.4, 8.1)
  • Module Version: (if applicable)

Screenshots or Logs

  • Attach any relevant screenshots, error messages, or logs to help diagnose the issue.

Additional Context

  • Add any other context about the problem here, including potential solutions or suggestions.
@Phatdad76
Copy link
Author

Phatdad76 commented Nov 19, 2024

Unknown error on line 274 in file

/modules/ps_accounts/vendor/monolog/monolog/src/Monolog/Logger.php
[8192] DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated

@Phatdad76
Copy link
Author

Someone help please, I have this error, when I login to back office. I can see its a module, but not sure which one.

@hschoenenberger
Copy link
Contributor

Hello @Phatdad76 we have a fix for this almost ready, can you tell us if debug mode is activated on your shop and could you add a screenshot ?

@bluegifts
Copy link

Happened also on ps 8.2 and php 8.1.2
this appears in php error log on server:
[21-Nov-2024 10:16:53 Europe/Bucharest] PHP Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /public_html/modules/ps_accounts/vendor/monolog/monolog/src/Monolog/Logger.php on line 274
[21-Nov-2024 10:16:53 Europe/Bucharest] PHP Stack trace:
[21-Nov-2024 10:16:53 Europe/Bucharest] PHP 1. {main}() /public_html/adminxxx/index.php:0
[21-Nov-2024 10:16:53 Europe/Bucharest] PHP 2. Symfony\Component\HttpKernel\Kernel->handle($request = class Symfony\Component\HttpFoundation\Request { public $attributes = class Symfony\Component\HttpFoundation\ParameterBag { protected $parameters = [...] }; public $request = class Symfony\Component\HttpFoundation\ParameterBag { protected $parameters = [...] }; public $query = class Symfony\Component\HttpFoundation\ParameterBag { protected $parameters = [...] }; public $server = class Symfony\Component\HttpFoundation\ServerBag { protected $parameters = [...] }; public $files = class Symfony\Component\HttpFoundation\FileBag { protected $parameters = [...] }; public $cookies = class Symfony\Component\HttpFoundation\ParameterBag { protected $parameters = [...] }; public $headers = class Symfony\Component\HttpFoundation\HeaderBag { protected $headers = [...]; protected $cacheControl = [...] }; protected $content = NULL; protected $languages = NULL; protected $charsets = NULL; protected $encodings = NULL; protected $acceptableContentTypes = NULL; protected $pathInfo = '/sell/orders/17301/view'; protected $requestUri =
etc.. about 48 traces

@Phatdad76
Copy link
Author

Firstly, thank you for responding and looking into this error. I check if debug mode is on and take a screenshot. Thank you again 👍😊

@Phatdad76
Copy link
Author

The error only appears on dashboard, I am able to use back office and make changes. It only appears upon login and clicking on dashboard. Yes debug mode is on and saved.
IMG_8331

@Phatdad76
Copy link
Author

IMG_8333

@Phatdad76
Copy link
Author

IMG_8334

@bluegifts
Copy link

I can confirm i have same issue, same error in BO when debug mode on. Errors in php log on servet.

@Phatdad76
Copy link
Author

Seems to run ok with debug mode off

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

3 participants