Issue with "Delete" button (Chrome) and resources list page (Firefox) on production server #547
-
Hi folks Issue:
![]()
![]() ![]() Server:CentOS 7 with Docker CE latest version installed Laravel and BackPack (plus PRO license) Version info:As per output of artisan command of php artisan backpack:version PHP VERSION:PHP 8.1.19 (cli) (built: May 24 2023 15:07:34) (NTS) LARAVEL VERSION:v10.13.5@03106ae9ba2ec4b36dc973b7bdca6fad81e032b4 BACKPACK PACKAGE VERSIONS:backpack/crud: 5.6.1 I have searched and try some solutions from discussions with no result. Can anyone kindly help to solve the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 8 replies
-
Hello @babakmomeni Did you migrate vendor to server or installed on server? if you migrate, did you try to run?
try to clear everything:
Did the delete is hard or soft? And finally, did you check laravel logs to get more information about expired? Cheers. |
Beta Was this translation helpful? Give feedback.
-
In any case we need more details, per example if firefox show thats errors is because receive bad response from backend so in network logs you will be able to get error details, or if this is a 500 error in laravel logs will se details, please remember no enable "APP_DEBUG" in .env Thanks |
Beta Was this translation helpful? Give feedback.
-
@jorgetwgroup Headers
cache-control Accept Request{ Response{ |
Beta Was this translation helpful? Give feedback.
-
You didnt customize the view and delete "" ?? Is look like server didnt receive "X-CSRF-TOKEN" |
Beta Was this translation helpful? Give feedback.
-
Another issue I've recently realized is in Chrome, multiple selection and then bulk delete shows a notty popup is this handful to determine the problem?? |
Beta Was this translation helpful? Give feedback.
-
This fully look as a server configuration problem. |
Beta Was this translation helpful? Give feedback.
-
Dear @jorgetwgroup
|
Beta Was this translation helpful? Give feedback.
Dear @jorgetwgroup
First of all thanks for your time and efforts to guide me through the problem
For future uses, I put the solution that worked for me.
Just add following code inside app/Providers/AppServiceProviders into register method and the issue is gone!