Coder Social home page Coder Social logo

Debug mode about forkcms HOT 8 CLOSED

forkcms avatar forkcms commented on May 26, 2024
Debug mode

from forkcms.

Comments (8)

westondunn avatar westondunn commented on May 26, 2024

Same issue! I've been waiting for someone to address it.

from forkcms.

AAtticus avatar AAtticus commented on May 26, 2024

Just posted this on the Forums:

In Fork 3.5.0 if I set t the parameter for fork.debug in app/config/parameters.yml it doesn't actually bring the CMS out of debug mode.

The debug.css files is still being loaded, including the nofollow, noindex metatag.
CSS and JS aren't being minified and combined.

Since there isn't a symfony console I can't to app:cache:clear --env="dev" or app:cache:clear --env="prod".

Is the parameters.yml being cached somewhere?

from forkcms.

Diewy avatar Diewy commented on May 26, 2024

Debug info:

  1. index.php:32 Autoload.php gets included
  2. autoload.php:107 Spoon gets included
  3. spoon.php:28 Debug is set on true every time because the parameter check in AppKernel will be executed after this.

Can we include Spoon after AppKernel?

Poke: @tijsverkoyen @dieterve @matthiasmullie

from forkcms.

dieterve avatar dieterve commented on May 26, 2024

The idea behind 1 autoload.php is that you can include that 1 file and every Fork class + its dependencies will be available. Moving around the Spoon include to a deeper level will cause this idea to fail and things will get more complicated again (which is not the direction we want to go to).

Spoon is actually not correct (in my opinion) in initiating things just by including its base file. I think we might need to do some changes in Spoon and remove those initial settings. I just removed them as test and everything is still working but some more extensive testing should be done.

from forkcms.

matthiasmullie avatar matthiasmullie commented on May 26, 2024

I agree with @dieterve: Spoon should not set this config var upon init, definitely not as a non-over-writable constant.

from forkcms.

westondunn avatar westondunn commented on May 26, 2024

This issue seems that it would an easy fix, but I guess I don't understand the complexity of the passing of variables. Would it be a safe bet to modify /vendor/spoon/spoon.php on line 28 to false as a temporary work around?

from forkcms.

Diewy avatar Diewy commented on May 26, 2024

@westondunn: If you need it today then that's probably the easiest solution. @dieterve is looking into it and we will bring out a patch as soon as possible.

from forkcms.

westondunn avatar westondunn commented on May 26, 2024

Good deal, thanks.

from forkcms.

Related Issues (20)

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.