Giter VIP home page Giter VIP logo

Comments (4)

siamon123 avatar siamon123 commented on July 21, 2024

Check out this Function

page_require_level(2);

This function redirecting user according to user level.

from warehouse-inventory-system.

bateller avatar bateller commented on July 21, 2024

@Syedwaheed The issue is with the line return at the top of the file "includes/load.php"

If you remove this, it'll work fine.

The problem is the headers are already sent (because the web server sees a blank, non PHP line) so when the 'redirect' function is triggered, its unable to do anything since headers have already been sent to the client.

I've proposed a pull-request to fix the issue.
#21

from warehouse-inventory-system.

Syedwaheed avatar Syedwaheed commented on July 21, 2024

I think this was the caching problem on live server.. i have commented the session_start(); and run it. Got error. Then undo the comment again and everything is working fine on live server. Dont know why is it so.

from warehouse-inventory-system.

bateller avatar bateller commented on July 21, 2024

Sounds good!

To clarify my earlier post.. it appears the blank line issue is only on UNIX-based systems... possibly nginx only (haven't tested with Apache). Although the extra line was NOT an issue on Win32/64.

from warehouse-inventory-system.

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.