Coder Social home page Coder Social logo

Comments (6)

n-peugnet avatar n-peugnet commented on June 2, 2024 1

Can't reproduce, what are your tag restrictions like? it seems like the problem may at the tag access check level.

I had one restriction by tag, for testing purpose (just clicked once to add the tag without editing anything). I removed it but the issue persisted.

I just tried to set Flarum's own Debug mode to false and the issue did not happen. So I guess it only happens with both Xdebug and Flarum's debug mode enabled. This is still an issue, as when doing local development, it is not rare to enable both at the same time.

from framework.

n-peugnet avatar n-peugnet commented on June 2, 2024 1

@n-peugnet how much is your nesting level for php configured at?

I guess you are talking about the xdebug.max_nesting_level setting. I didn't set it myself so I imagine 200 is the default value on Debian. I tried to increase it with no luck. It seems 200 is the max I can specify.

php -dxdebug.max_nesting_level=500 -S localhost:8080 -t public

However, using lower values than 200 works, it indeed affects this behaviour by stopping the execution sooner. Maybe I should report this problem to Xdebug instead.

Anyways, this is not that much of a problem for me anymore as I mostly use the debug mode and not that much the develop one. Feel free to close this issue whenever you want.

from framework.

SychO9 avatar SychO9 commented on June 2, 2024

Can't reproduce, what are your tag restrictions like? it seems like the problem may at the tag access check level.

from framework.

n-peugnet avatar n-peugnet commented on June 2, 2024

Small update: this seems to happen only with Xdebug's default develop mode12. When I set the mode to debug using either of these methods the problem does not show up:

XDEBUG_MODE=debug php -S localhost:8080 -t public
php -d xdebug.mode=debug -S localhost:8080 -t public

Footnotes

  1. https://xdebug.org/docs/all_settings#mode

  2. https://xdebug.org/docs/develop

from framework.

luceos avatar luceos commented on June 2, 2024

@n-peugnet how much is your nesting level for php configured at?

from framework.

linc avatar linc commented on June 2, 2024

For what it's worth, I also ran into this with xdebug.mode=develop and switching to debug worked. PHP 8.1 on a forum I've been running import tests on and hadn't loaded in a few months, so who knows what triggered it. It was specifically being logged in already as a non-admin, I think.

from framework.

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.