Jump to content

[8.1.4] error500 sui punti di collegamento


Recommended Posts

il log mi dice così ma che significa?
[2025-01-17 17:31:16] ps_accounts.DEBUG: execute hook : [PrestaShop\Module\PsAccounts\Hook\DisplayBackOfficeHeader] [] []
[2025-01-17 17:31:16] ps_accounts.ERROR: 400 - invalid_request: The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Requested audience 'distribution.prestashop.net' has not been whitelisted by the OAuth 2.0 Client. [] []
[2025-01-17 17:31:16] ps_accounts.DEBUG: resolving handler : PrestaShop\Module\PsAccounts\Account\Command\UpgradeModuleMultiCommand [] []
[2025-01-17 17:31:16] ps_accounts.DEBUG: handling : PrestaShop\Module\PsAccounts\Account\CommandHandler\UpgradeModuleMultiHandler [] []
[2025-01-17 17:31:16] ps_accounts.DEBUG: with data : {} [] []
[2025-01-17 17:31:16] ps_accounts.DEBUG: resolving handler : PrestaShop\Module\PsAccounts\Account\Command\UpgradeModuleCommand [] []
[2025-01-17 17:31:16] ps_accounts.DEBUG: handling : PrestaShop\Module\PsAccounts\Account\CommandHandler\UpgradeModuleHandler [] []
[2025-01-17 17:31:16] ps_accounts.DEBUG: with data : {"payload":{"version":"7.0.8","shopId":null}} [] []
[2025-01-17 17:31:16] ps_accounts.DEBUG: execute hook : [PrestaShop\Module\PsAccounts\Hook\DisplayBackOfficeEmployeeMenu] [] []
[2025-01-17 17:31:16] ps_accounts.DEBUG: execute hook : [PrestaShop\Module\PsAccounts\Hook\DisplayDashboardTop] [] []
 

Link to comment
Share on other sites

  • 1 month later...

Activez le mode débogage dans Prestashop et vérifiez s'il y a une erreur à l'écran. Si oui, partagez la même chose.

Si l'erreur 500 persiste, vérifiez le journal des erreurs du serveur. Le journal des erreurs du serveur peut contenir quelque chose qui y est lié.

Link to comment
Share on other sites

Ciao,

dall'errore sembra che il problema sia il modulo PsAccounts (che è quello che gestisce il collegamento con il tuo account su Prestashop, se ne hai uno).

Quando entri nel backoffice sei anche direttamente connesso al tuo account PS?
Se sì puoi provare a disconnetterti, pulire tutte le caches e riconnetterti.
Se no (e se non ti serve essere connesso) puoi provare a disinstallare il modulo PsAccounts (fai backup di tutto prima).

Guarda se questo thread ti può aiutare: 

Buon pomeriggio,
Federica

Link to comment
Share on other sites

Ciao Federica, grazie
Il login lo faccio attraverso https://authv2.prestashop.com/login (e francamente non ho mai capito perchè devo passare da lì' ma l'ho sempre fatto e non mi disturba) quindi, per risponderti, sono direttamente connesso all'account PS.
Ma in quale modo questa cosa influenza la pagina con la posizione dei moduli da mandare in error500??
Nel frattempo faccio la prova che mi hai suggerito e poi vi riporto.
  

Link to comment
Share on other sites

Devi passare da lì perchè hai scaricato la versione dal sito ufficiale e non quella "open" da github. Nelle ultime versioni MBE (a capo di Prestashop) ha deciso che tutti gli amministratori di un ecommerce PS versione "ufficiale" devono passare dall'autenticazione Addons. Scelta politica, forse a caccia di lead. 

M.

  • Like 2
Link to comment
Share on other sites

Ho rifatto un giro col debugger attivo e nel log trovo questo (ho mascherato un po' di dati sensibili)

[2025-02-26 11:47:07] request.INFO: Matched route "admin_modules_positions". {"route":"admin_modules_positions","route_parameters":{"_route":"admin_modules_positions","_controller":"PrestaShopBundle\\Controller\\Admin\\Improve\\Design\\PositionsController::indexAction","_legacy_controller":"AdminModulesPositions","_legacy_link":"AdminModulesPositions"},"request_uri":"https://pixsys.shop/adminXXXXXXXXXXXXXXXXXXX/index.php/improve/design/modules/positions/?_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","method":"GET"} []
[2025-02-26 11:47:07] doctrine.DEBUG: SELECT t0.id_lang AS id_lang_1, t0.name AS name_2, t0.active AS active_3, t0.iso_code AS iso_code_4, t0.language_code AS language_code_5, t0.locale AS locale_6, t0.date_format_lite AS date_format_lite_7, t0.date_format_full AS date_format_full_8, t0.is_rtl AS is_rtl_9 FROM ps_lang t0 WHERE t0.id_lang = ? ["1"] []
[2025-02-26 11:47:07] security.DEBUG: Read existing security token from the session. {"key":"_security_main","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} []
[2025-02-26 11:47:07] security.DEBUG: User was reloaded from a user provider. {"provider":"PrestaShopBundle\\Security\\Admin\\EmployeeProvider","username":"xxxxxxxxxxxxxpixsys.net"} []
[2025-02-26 11:47:07] php.INFO: User Deprecated: __construct is deprecated since version 8.1 and will be removed in the next major version. {"exception":"[object] (ErrorException(code: 0): User Deprecated: __construct is deprecated since version 8.1 and will be removed in the next major version. at /var/www/vhosts/xxxxxxxxxxxxxxx/src/PrestaShopBundle/Controller/Admin/FrameworkBundleAdminController.php:70)"} []
[2025-02-26 11:47:07] php.INFO: User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 {"exception":"[object] (ErrorException(code: 0): User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 at /var/www/vhosts/xxxxxxxxxxxxxxx/src/Adapter/Configuration.php:427)"} []
[2025-02-26 11:47:07] php.INFO: User Deprecated: The default value of "$usePutenv" argument of "Symfony\Component\Dotenv\Dotenv::__construct" will be changed from "true" to "false" in Symfony 5.0. You should define its value explicitly. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The default value of \"$usePutenv\" argument of \"Symfony\\Component\\Dotenv\\Dotenv::__construct\" will be changed from \"true\" to \"false\" in Symfony 5.0. You should define its value explicitly. at /var/www/vhosts/xxxxxxxxxxxxxxx/vendor/symfony/symfony/src/Symfony/Component/Dotenv/Dotenv.php:48)"} []
[2025-02-26 11:47:08] php.INFO: User Deprecated: __construct is deprecated since version 8.1 and will be removed in the next major version. {"exception":"[object] (ErrorException(code: 0): User Deprecated: __construct is deprecated since version 8.1 and will be removed in the next major version. at /var/www/vhosts/xxxxxxxxxxxxxxx/src/PrestaShopBundle/Controller/Admin/FrameworkBundleAdminController.php:70)"} []
[2025-02-26 11:47:08] php.INFO: User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 {"exception":"[object] (ErrorException(code: 0): User Deprecated: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0 at /var/www/vhosts/xxxxxxxxxxxxxxx/src/Adapter/Configuration.php:427)"} []

Segue una carriola di "deprecated" con relative exceptions .... non ne so niente di Simfony ma secondo voi è qui la spiegazione dell'error 500?

Link to comment
Share on other sites

Ciao,

il log che hai incollato mostra effetivamente diverse funzioni deprecate ma sono tutti php.INFO, quindi non dovrebbero essere la causa dell'errore che probabilmente viene identificata nel log con un php.ERROR o qualcosa di simile (dipende da come sono fatti i log nel server). Magari prova a cercare php.ERROR o simile nel log.

Comunque mi sembra piuttosto strano trovare tutte queste funzioni deprecate dato che apparentemente sono tutte funzioni del core di Prestashop.

La tua versione di Prestashop è 8.1.4, che versione hai del PHP? Giusto per controllare: quella consigliata è PHP 8.1 (https://devdocs.prestashop-project.org/8/basics/installation/system-requirements/).

Buon pomeriggio,
Federica

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...