-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New item form instead of item view for everything #16559
Comments
Hi, Did you tried to restart php-fpm? |
Yes, tried once again to be 100 % sure and no change. I tried it on normal user, superadmin, tried to logout & login, clear cache and all other basic ways to resolve problem but no success. |
Do you have any URL redirection set up in your web server configuration? It appears you use nginx, and it's quite frequent users have a setup that seems to work; but cause some issues. Please double check your web server setup. As we do not know well nginx, we cannot help on that (also that's out of the scope of a GLPI communituy support). You can maybe try with an as clean as possible setup, or even better with apache to see if you reproduce. |
No, there is no URL redirection. I'm using same config as recommended on https://glpi-install.readthedocs.io/en/latest/prerequisites.html#nginx-configuration But I think the problem has to be elsewhere. When I hover over name of item, this is how target link looks like: Btw. one more clue I forgot to mention is that I also can't see dashboards since that problematic upgrade. When I open the page, I can se for fraction of second there are some data but they dissappears aftert. It looks like there is something rendered above, I can't see toolbar, dashboard, anything. I tried to play with devtools to find exact problem, but no luck. Thanks for any idea. |
Are you sure there is nothing logged in the GLPI log files (files/_log folder inside your GLPI install by default) or the nginx error log? You can also enable debug mode while logged in with a super-admin profile from the top-right menu and then go to the requests widget on the debug toolbar, then the "Globals" tab followed by the "GET" tab to see what data from the URL is being sent to PHP. If there is no "id" when trying to view an existing item, then it is likely that there is an issue on the web server side or a bad PHP config. |
there is one NOTICE in logs:
Ok, now I understand where you are heading with the nginx config... Main problem for me was that I wasn't sure that i.e. computer.form.php is correct file, but I see that problem is with arguments are not passed, it is same with your ?name=... This should take minutes to fix, hopefully... and voilá, finaly fixed! Huge thanks everybody and especially @cconard96 for the problem. Looks like whole problem is Working nginx config:
|
Code of Conduct
Is there an existing issue for this?
Version
10.0.12
Bug description
When I try to preview any item in GLPI, i receive New item form instead of details of selected item.
This happens not only for assets, but also for users, groups, entities and everything else where there is a table from which I should click on name to do something.
I'm not 100 % sure when this started to happen, but same problem was on 10.0.10 which I upgraded to 10.0.12 just now. All files are clean installed, database is updated and checked for inconsistencies.
Relevant log output
no errors in log
Page URL
https://it.igloonet.cz/front/profile.phpf
Steps To reproduce
Your GLPI setup information
Information about system installation and configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
I have
glpi/inc/inc_downstream.php
config/local_defined.php
and ofc
config/config_db.php
The text was updated successfully, but these errors were encountered: