Open chrisvidal opened 6 years ago
Can you post the complete error? You only posted the last part of it.
this is all I have inside a small popup in the backend, after clicking on " add new item". nothing in the log, last oc build.
Look at your storage/system.log
file and post the stack trace from there.
i did look storage/logs/system.log
there and it is empty
Then check your php error logs and webserver logs. I cannot help you further with this error message since there is no information to work with.
You can modify the Application.php
on line 940 and add
info('application backtrace', debug_backtrace());
before the throw
statement to log the exact backtrace to the abort
function.
Ran into this issue a few times when deploying to a server.
The "" on line 940 of /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
error is because all backend ajax routes are returning a 403 error.
This happens if the offline_cors_settings
item is missing from the system_settings
table in the database.
To fix it:
system_settings
table.offline_cors_setting
in the "item" column.{"supportsCredentials":"0","maxAge":null,"allowedOrigins":[{"value":"*"}],"allowedHeaders":[],"allowedMethods":[],"exposedHeaders":[]}
in the "value" column.php artisan cache:clear
).This will fix the backend error and make the CORS settings editable from the backend.
HI,
I just installed the plugin, and when I try to set the CORS settings from the backend, I am having this popup:
on line 940 of /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php
Any idea what is happening please? Thanks in advance