wallabag: Paywall: error 500 when I add a website

Hi,

Issue details

After an update to Wallabag 2.3 (without error), I tried to add access to websites with paywall (I tried NextInpact and ArretSurImages) and I obtain an error 500:

500: Internal Server Error Encoded data is shorter than expected.

In the logs, I found these lines:

request.INFO: Matched route "site_credentials_new". {"route":"site_credentials_new","route_parameters":{"_controller":"Wallabag\\CoreBundle\\Controller\\SiteCredentialController::newAction","_route":"site_credentials_new"},"request_uri":"http://wallabag.darathor.net/site-credentials/new","method":"POST"} []
security.DEBUG: Read existing security token from the session. {"key":"_security_secured_area"} []
security.DEBUG: User was reloaded from a user provider. {"username":"[...]","provider":"Symfony\\Bridge\\Doctrine\\Security\\User\\EntityUserProvider"} []
app.DEBUG: Crypto: crypting value: ******* [] []
request.CRITICAL: Uncaught PHP Exception Defuse\Crypto\Exception\BadFormatException: "Encoded data is shorter than expected." at [...]/wallabag/vendor/defuse/php-encryption/src/Encoding.php line 226 {"exception":"[object] (Defuse\\Crypto\\Exception\\BadFormatException(code: 0): Encoded data is shorter than expected. at [...]/wallabag/vendor/defuse/php-encryption/src/Encoding.php:226)"} []
security.DEBUG: Stored the security token in the session. {"key":"_security_secured_area"} []

I tried to clear caches but it didn’t change anything.

Environment

  • wallabag version (or git revision) that exhibits the issue: 2.3
  • How did you install wallabag? Via git clone or by downloading the package? downloading the package
  • Last wallabag version that did not exhibit the issue (if applicable): N/A
  • php version: 7.0
  • OS: Ubuntu 16.04
  • type of hosting (shared or dedicated): dedicated
  • which storage system you choose at install (SQLite, MySQL/MariaDB or PostgreSQL): MySQL

Steps to reproduce/test case

  1. click on “Accès aux sites” in the menu
  2. click on the button “Créer un accès à un site”
  3. fill the fields (with correct or incorrect information, the result is the same)
  4. click on the button “Enregistrer”

(I don’t know the english texts)

PS : I sometimes had file permission issues (my server installation is not perfect, I’m developper, not sysadmin) but I don’t think that’s it, according to the logs.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 15 (13 by maintainers)

Most upvoted comments

@nicosomb my bad: I modified HttpClient.php and I did a mistake with some ; that shouldn’t be there. Everything is working fine now. Sorry for disturbing you guys, this issue was due to mistakes on my side.

And congrats for your work!