Home Forums Support Whoops, looks like something went wrong.

This topic contains 11 replies, has 2 voices, and was last updated by  Hillel Coren 3 weeks, 3 days ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #23563

    maddox0017
    Participant

    Hello, recently I have been having a problem with the display of the invoice for customers.

    The email that is sent to customers with the notification and the view invoice button is not working.

    When you click to see it online, the web appears saying error and Whoops, looks like something went wrong.

    a few days ago it was working fine but from one moment to another it stopped working

    #23569

    Hillel Coren
    Keymaster

    Do you see any related error details on /errors (or /public/errors)

    #23575

    maddox0017
    Participant

    No, but look in the storage folder that in other support sections I saw that there were errors and found this

    [2020-02-15 17:42:54] production.ERROR: *** Illuminate \ Contracts \ Encryption \ DecryptException *** [0]: / home / adictiva / public_html / invoice / vendor / laravel / framework / src / Illuminate / Encryption / Encrypter.php [Línea 195] => El MAC no es válido. {“context”: “PHP”, “user_id”: 0, “account_id”: 0, “user_name”: “”, “method”: “GET”, “user_agent”: “Mozilla / 5.0 (Windows NT 10.0; Win64 ; x64) AppleWebKit / 537.36 (KHTML, como Gecko) Chrome / 79.0.3945.130 Safari / 537.36 “,” locale “:” es “,” ip “:” 191.109.166.236 “,” count “: 1,” is_console “: “no”, “is_api”: “no”, “db_server”: “mysql”, “url”: “view / apg9qjqxmj2qw0jbemcxjnptoykobswb”} []

    [2020-02-15 17:42:55] production.ERROR: *** Illuminate \ Contracts \ Encryption \ DecryptException *** [0]: / home / adictiva / public_html / invoice / vendor / laravel / framework / src / Illuminate / Encryption / Encrypter.php [Línea 195] => El MAC no es válido. {“context”: “PHP”, “user_id”: 0, “account_id”: 0, “user_name”: “”, “method”: “GET”, “user_agent”: “Mozilla / 5.0 (Windows NT 10.0; Win64 ; x64) AppleWebKit / 537.36 (KHTML, como Gecko) Chrome / 79.0.3945.130 Safari / 537.36 “,” locale “:” es “,” ip “:” 191.109.166.236 “,” count “: 2,” is_console “: “no”, “is_api”: “no”, “db_server”: “mysql”, “url”: “view / apg9qjqxmj2qw0jbemcxjnptoykobswb”} []

    And refers to the last 2 attempts to see invoices I made recently

    #23576

    Hillel Coren
    Keymaster

    I’ve seen that error if the value for APP_KEY in the .env file is changed

    #23584

    maddox0017
    Participant

    and where can I find the correct value to change the “APP_KEY” in the .env file

    #23585

    Hillel Coren
    Keymaster

    Was the app moved, the value shouldn’t be changed.

    #23586

    maddox0017
    Participant

    I recently made a change of hosting, so a migration was made

    #23587

    Hillel Coren
    Keymaster

    In your initial post you wrote “a few days ago it was working fine but from one moment to another it stopped working”, was moving the servers in between it working and not working?

    #23816

    maddox0017
    Participant

    Hi, continuing with this topic.

    2 weeks ago I tried to make a new installation from softaculous and reinstall the database and configure everything again, but the problem of not being able to see the invoice online is still not possible.

    Now a few minutes ago I just realized that the pdf invoice that is sent in the same message as an attached email is also not possible to see and shows an error when trying to open it.

    Then I go directly to the webapp and download the invoice to a pdf and if possible see.

    #23817

    Hillel Coren
    Keymaster

    Do you see any related error in storage/logs/laravel-error.log

    It may help to use a local PhantomJS install.

    https://invoice-ninja.readthedocs.io/en/latest/configure.html#phantomjs

    #23860

    maddox0017
    Participant

    Hello, I made the change according to the instructions shown in the link.
    add the line
    PHANTOMJS_BIN_PATH = / usr / local / bin / phantomjs
    to the .env file and delete the other 2 that were before.
    but the same is still happening, even with the test button in the email configuration section

    and these are the last 5 errors in the laravel-error.log file

    [2020-03-11 21:10:31] production.ERROR: PhantomJS – Failed to load https://invoice.adictivamedia.com/public/view/whgegwoyjff11dcaleipa6axeih0mr8x?phantomjs=true&phantomjs_secret=: File does not exist or is not executable: /usr/local/bin/phantomjs {“context”:”PHP”,”user_id”:1,”account_id”:”1″,”user_name”:”Adictiva Media”,”method”:”GET”,”user_agent”:”Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36″,”locale”:”es”,”ip”:”186.29.49.33″,”count”:1,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”test_headless”} []
    [2020-03-11 21:10:33] production.ERROR: PhantomJS – Failed to load https://invoice.adictivamedia.com/public/view/whgegwoyjff11dcaleipa6axeih0mr8x?phantomjs=true&phantomjs_secret=: File does not exist or is not executable: /usr/local/bin/phantomjs {“context”:”PHP”,”user_id”:1,”account_id”:”1″,”user_name”:”Adictiva Media”,”method”:”GET”,”user_agent”:”Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36″,”locale”:”es”,”ip”:”186.29.49.33″,”count”:1,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”test_headless”} []
    [2020-03-11 21:10:35] production.ERROR: PhantomJS – Failed to load https://invoice.adictivamedia.com/public/view/whgegwoyjff11dcaleipa6axeih0mr8x?phantomjs=true&phantomjs_secret=: File does not exist or is not executable: /usr/local/bin/phantomjs {“context”:”PHP”,”user_id”:1,”account_id”:”1″,”user_name”:”Adictiva Media”,”method”:”GET”,”user_agent”:”Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36″,”locale”:”es”,”ip”:”186.29.49.33″,”count”:1,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”test_headless”} []
    [2020-03-11 21:10:36] production.ERROR: PhantomJS – Failed to load https://invoice.adictivamedia.com/public/view/whgegwoyjff11dcaleipa6axeih0mr8x?phantomjs=true&phantomjs_secret=: File does not exist or is not executable: /usr/local/bin/phantomjs {“context”:”PHP”,”user_id”:1,”account_id”:”1″,”user_name”:”Adictiva Media”,”method”:”GET”,”user_agent”:”Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36″,”locale”:”es”,”ip”:”186.29.49.33″,”count”:1,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”test_headless”} []
    [2020-03-11 21:12:29] production.ERROR: ***Illuminate\Contracts\Encryption\DecryptException*** [0] : /home/adictiva/public_html/invoice/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. {“context”:”PHP”,”user_id”:1,”account_id”:”1″,”user_name”:”Adictiva Media”,”method”:”GET”,”user_agent”:”Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36″,”locale”:”es”,”ip”:”186.29.49.33″,”count”:1,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”view/875z4hhfc1vpzbyiwbavejqfytl0amxc”} []
    [2020-03-11 21:12:30] production.ERROR: ***Illuminate\Contracts\Encryption\DecryptException*** [0] : /home/adictiva/public_html/invoice/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php [Line 195] => The MAC is invalid. {“context”:”PHP”,”user_id”:1,”account_id”:”1″,”user_name”:”Adictiva Media”,”method”:”GET”,”user_agent”:”Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36″,”locale”:”es”,”ip”:”186.29.49.33″,”count”:2,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”view/875z4hhfc1vpzbyiwbavejqfytl0amxc”} []

    #23861

    Hillel Coren
    Keymaster

    – What do you see if you run which phantomjs

    – What do you see if you run phantomjs -v

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.

Posted in: