Skip to content
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

When i save, The style of PHP is missing #5750

Open
aliuzzz opened this issue May 15, 2024 · 25 comments
Open

When i save, The style of PHP is missing #5750

aliuzzz opened this issue May 15, 2024 · 25 comments
Labels
bug Undesired behaviour unverified Some days we don't have a clue

Comments

@aliuzzz
Copy link
Contributor

aliuzzz commented May 15, 2024

image
when i save,The style of the page's PHP will be lost

image

@aliuzzz aliuzzz added bug Undesired behaviour unverified Some days we don't have a clue labels May 15, 2024
@aliuzzz
Copy link
Contributor Author

aliuzzz commented May 15, 2024

image
this page

@aliuzzz
Copy link
Contributor Author

aliuzzz commented May 15, 2024

Including creating new images, styles will also be lost after clicking on create graphs_new.php

@xmacan
Copy link
Member

xmacan commented May 15, 2024

Cannot reproduce on actual 1.2.27? What cacti version?

@aliuzzz
Copy link
Contributor Author

aliuzzz commented May 15, 2024

rocky9.4+php8.2.13+cacti1.2.27+mariadb10.5.22+net-snmp5.9.1+httpd2.4.57

@aliuzzz
Copy link
Contributor Author

aliuzzz commented May 15, 2024

i this the question is here, "header=false" show be "header=true"
image

@xmacan
Copy link
Member

xmacan commented May 15, 2024

last screenshot has different url. Still cannot reproduce. Please describe all steps, something like:

  1. go to templates -> graphs
  2. choose any graph
  3. click save...

@aliuzzz
Copy link
Contributor Author

aliuzzz commented May 16, 2024

Management-->Device-->Create Graphs for this Device-->Create graphs
After clicking Create, the image was successfully added, but the style was lost
image

image

@aliuzzz
Copy link
Contributor Author

aliuzzz commented May 16, 2024

image
In version 1.2.26, this bug was not found after clicking "Create"

@xmacan
Copy link
Member

xmacan commented May 16, 2024

still cannot reproduce. Try clear browser cache, try another browser

@aliuzzz
Copy link
Contributor Author

aliuzzz commented May 17, 2024

I changed devices and browsers and the problem recurred.This problem occurs every time
Apache/2.4.57 +PHP 8.2.13 (cli)+mysql Ver 15.1 Distrib 10.5.22-MariaDB+
NET-SNMP version: 5.9.1+RRDtool 1.8.0

Maybe it has something to do with it?

@aliuzzz
Copy link
Contributor Author

aliuzzz commented May 17, 2024

Maybe I'm trying to use an older version of which file? For example graphs_new?

@TheWitness
Copy link
Member

Any JavaScript errors? Where is header=true set?

@aliuzzz
Copy link
Contributor Author

aliuzzz commented May 18, 2024

I'm not sure, but the fact is that changing the header=false to true in the link can restore it. However, in version 1.2.26, when performing the above operation, the "header" will not be seen in the link

TheWitness added a commit that referenced this issue May 18, 2024
Remove header=true from page.  The default is header=true.
@TheWitness
Copy link
Member

Pull the latest graphs_new.php and see if it's reproducible.

@TheWitness
Copy link
Member

Are you using MacTrack also?

@aliuzzz
Copy link
Contributor Author

aliuzzz commented May 20, 2024

I did not use mactrack
I replaced the latest graphs new. php, but it did not fix this bug

But I found a problem, which occurs when I use Chinese as my GUI language. When using other languages (such as English and Spanish), it works fine

@aliuzzz
Copy link
Contributor Author

aliuzzz commented May 25, 2024

In Chinese language, it is also not possible to create aggregation templates

@TheWitness
Copy link
Member

Maybe that's the source of the issue. Is it fine if English?

@aliuzzz
Copy link
Contributor Author

aliuzzz commented May 27, 2024

Yes,it is fine in English、French 、German, I'm curious, is this influenced by UTF-8?

@linqianye
Copy link

It doesn't seem to solve the problem. In fact, after submitting data on any page that requires submission, the style will be lost. It seems to be a global setting issue.

@aliuzzz
Copy link
Contributor Author

aliuzzz commented Jun 11, 2024

Yes, It is a global setting issue.But in Chinese state, this issue does not exist.
I really hope the author will also consider Chinese users.
Here, Cacti is a widely recognized monitoring platform, which is why I have always insisted on using platforms such as Zabbix to replace Cacti

@TheWitness
Copy link
Member

Did you pull the latest graphs_new.php?

@aliuzzz
Copy link
Contributor Author

aliuzzz commented Jun 12, 2024

Yes, I download the latest graphs_new.php in version 1.2.x and i have restarted the system and services, but the issue has not been resolved in the Chinese environment.

@TheWitness
Copy link
Member

Show the latest URL that generates the error.

@aliuzzz
Copy link
Contributor Author

aliuzzz commented Jun 17, 2024

image
For example, when I put the newly added switch on the tree .Then i click confirm and the URL chagne to this
I don't know where the problem is,but other languages are fine, only Chinese has such poor display status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour unverified Some days we don't have a clue
Projects
None yet
Development

No branches or pull requests

4 participants