Git Product home page Git Product logo

Comments (6)

tobias-kuendig avatar tobias-kuendig commented on May 30, 2024

Can you post the complete error? You only posted the last part of it.

from oc-cors-plugin.

chrisvidal avatar chrisvidal commented on May 30, 2024

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.

screenshot 2018-03-14 16 20 43

from oc-cors-plugin.

tobias-kuendig avatar tobias-kuendig commented on May 30, 2024

Look at your storage/system.log file and post the stack trace from there.

from oc-cors-plugin.

chrisvidal avatar chrisvidal commented on May 30, 2024

i did look storage/logs/system.log there and it is empty

from oc-cors-plugin.

tobias-kuendig avatar tobias-kuendig commented on May 30, 2024

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.

from oc-cors-plugin.

jeremymouton avatar jeremymouton commented on May 30, 2024

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:

  • Create a new row in the system_settings table.
  • Add offline_cors_setting in the "item" column.
  • Add {"supportsCredentials":"0","maxAge":null,"allowedOrigins":[{"value":"*"}],"allowedHeaders":[],"allowedMethods":[],"exposedHeaders":[]} in the "value" column.
  • Clear the backend cache (php artisan cache:clear).

This will fix the backend error and make the CORS settings editable from the backend.

from oc-cors-plugin.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.