Giter Club home page Giter Club logo

Comments (5)

acodispo avatar acodispo commented on June 12, 2024 1

from tabby.

bertvandepoel avatar bertvandepoel commented on June 12, 2024

Hi there. This is an interesting bug (or at least it sounds like a bug). I think I know what might be causing it, but I'm surprised that you're running into this. Perhaps it only causes issues when using mod_fcgid or with specific PHP configuration.

Since I'm not 100% sure how to replicate this issue, it would be nice if you could perform a basic change for me in the code to see if that resolves your issue. Based on your GitHub profile, I'm hoping you'd be able to, but if not then let me know and I will try to find another way. Could you edit index.php and swap lines 149 and 150 (so the include of resources/init.php before the include of templates/header.php). Could you let me know if that fixes the issue? If not, then let me know if you get any other errors in your logs or if any behaviour changes. Thx!

from tabby.

acodispo avatar acodispo commented on June 12, 2024

@bertvandepoel Ah, thanks for your reply! I hadn't seen your message until just now, and I already tested the fix you suggested and have made a pull request. So please disregard my note in the PR about "whether you'd like to investigate further." :)

from tabby.

acodispo avatar acodispo commented on June 12, 2024

My host's PHP config is probably causing the error, by the way, it is a little unorthodox. :)

from tabby.

bertvandepoel avatar bertvandepoel commented on June 12, 2024

No problem! I'm actually surprised that on my two setups, as well as those of other users, this is not a problem. In the past (at least when I started in the day with PHP 4), you couldn't have any output (buffered) before running session_start, clearly now it's sometimes allowed.

Thx for the PR, but I would also need to adapt init.php and I want to check if there are any similar cases out there that could cause issues, so I will probably make a commit myself if you don't mind.

Have you checked if you have any other issues on other pages?

from tabby.

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.