Giter VIP home page Giter VIP logo

Comments (3)

justinhartman avatar justinhartman commented on June 4, 2024 1

PS. I saw on your forum that you suggested enabling debugging and clearing the cache. Debug mode doesn't help because the site doesn't even resolve a page due to the 500 error and php flarum cache:clear doesn't help either.

from flarum-ext-embed-video.

justinhartman avatar justinhartman commented on June 4, 2024 1

Your issue is that you are trying to load a 6.5MB JS map file which is actually not very smart for a site that is in production. Loading .map files are fine when you're debugging your code but not for dist releases. This should remain in your src folder and should not end up in dist.

$ ls -lh vendor/nearata/flarum-ext-embed-video/js/dist/forum.js.map
-rw-r--r-- 1 www-data www-data 6.5M Oct 26 15:30 vendor/nearata/flarum-ext-embed-video/js/dist/forum.js.map

Doing this:

$ rm vendor/nearata/flarum-ext-embed-video/js/dist/forum.js.map
-rw-r--r-- 1 www-data www-data 6.5M Oct 26 15:30 vendor/nearata/flarum-ext-embed-video/js/dist/forum.js.map

Fixed the 500 error which makes sense because now PHP is no longer trying to load 6.5MB into memory.
Please consider removing the .map for your production releases.

from flarum-ext-embed-video.

Nearata avatar Nearata commented on June 4, 2024

Sorry for the late response and thank you for your tests and solution. I'll publish a new release as soon as possible.

from flarum-ext-embed-video.

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.