Code Monkey home page Code Monkey logo

Comments (6)

bnomei avatar bnomei commented on June 10, 2024 1

@bnomei Could you please post this as a new issue. It's hard to keep track of closed issues and I think mixing up topics a bit. Thank you 🙏

decided to post final findings here since the issue is resolved for me now.

from kirby.

afbora avatar afbora commented on June 10, 2024

I tried a lot but cannot reproduce the issue. May be need more information about your enviorement.

from kirby.

afbora avatar afbora commented on June 10, 2024

Closing for now. Feel free post new replicate info when you find more clues 👍

from kirby.

bnomei avatar bnomei commented on June 10, 2024

osx 14.1.2, laravel herd, php8.2
did not verify in live production server.

i have a tab with sections of pages and if i keep clicking the tab head "articles" or if i navigate to the page it hapend seemingly at random
CleanShot 2023-12-06 at 14 08 42 2

that the sections fail to load
CleanShot 2023-12-06 at 14 09 05 2

the responses for repeated clicking of the tab "articles" look like this
CleanShot 2023-12-06 at 13 47 40

  1. the current panel view get redirected to something like http://XXX.test/api/site/sections/articles_drafts?page=1
{"status":"error","message":"Unauthenticated","code":401,"exception":"Kirby\\Exception\\AuthException","key":"error.auth","file":"..\/kirby\/config\/api\/authentication.php","line":15,"details":[],"route":"site\/sections\/([a-zA-Z0-9\\.\\-_%= \\+\\@\\(\\)]+)"}
  1. or rarely a 30 sec php timeout even though only 2 seconds have passed.
  2. or a could not write to file (could not trace which file since tracing all f::writes until i could reproduce was too much for ray.app)

from kirby.

distantnative avatar distantnative commented on June 10, 2024

@bnomei Could you please post this as a new issue. It's hard to keep track of closed issues and I think mixing up topics a bit. Thank you 🙏

from kirby.

bnomei avatar bnomei commented on June 10, 2024

the sections themself are simple and each extending this one only changing the status

base

headline: Articles
type: pages
layout: list
image: false
parent: site.find('articles')

one section

      articles_drafts:
        label: Drafts (hidden)
        extends: sections/articles
        status: drafts

changing the section type from pages to files or info does not prevent the issue from appearing. nor does removing all other tabs and fields from the site blueprint fix it.

an totally empty site blueprint (yielding the info section in the panel) does successfully avoid the issue.

a single to level fields: definition seems to avoid the issue as well.

a long time later digging code...
i think i found it. classical dev error. seems like i had a site()->index() call deep down in my code on the route:after hook with $final === true and that applied to the multiple requests in the panel. like 5 for refreshing that one view. thus the heavy load and the php fpm stopping processes and causing errors.

from kirby.

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.