Hi good day!
Yesterday I presented some problems with the reports and KPI's of ProjeQtOr, after making some changes in the temporary directory for the reports and document root (These are in the global settings) the error stopped appearing but now the detail is The image does not appear, only the icon that is missing is displayed.Reviewing, we have realized that when we run the report, if it is sent at the time the report is run but in the records it marks a very different time, in the same way if we review the Log file (in platform management) in the Execution of the report shows a totally different time and therefore does not find the images.
Is there any configuration that needs to be done?
I attach the image and the text that is shown in the Log file.
2021-08-06 09:24:16.581 ===== TRACE ===== NEW CONNECTED USER 'admin' (using remember me feature)2021-08-06 11:03:53.275 ** ERROR ** [V9.1.2] ERROR **2021-08-06 11:03:53.275 ** ERROR ** [V9.1.2] on file '/var/www/html/external/pChart2/class/pImage.class.php' at line (164)2021-08-06 11:03:53.275 ** ERROR ***** [V9.1.2] cause = imagepng(/var/log/projeqtor/documents/files/report/user1_globalCostPlanning_20210806_110353_1.png): failed to open stream: No such file or directory
Thanks!
the php user (www-data or apache) must have write rights to directory /var/log/projeqtor/documents/files/report/
Do these permissions have to be given from a confirmation within ProjeQtOr? that is, from global settings or something like that?
No, it is access rights on the system.
Thanks for your comments.
Were given write rights but still the image does not appear, we try using another browser but the problem is the same.
In brower inspector we saw the URL of the imagen and the file name are the same, but i cant see the image.
I think its because the URL point to the file path "/var/log..../user.....jpg" and not to an http address
Is it necessary to make another additional configuration to be able to display the image?
I attach the image.
URL in the browser: src="/var/log/projeqtor/files/report/user1_globalCostPlanning_20210817_123116_1.png"
It's because you changed the path to reports (in global parameters / system)
You must define a location "in the web root" so that apache can serve it to users.
Thanks for your help and comments.
We did the last comment, but it still shows error, I attach the following images.
In this first image you can see where the "documente root" is located.
In the second image you can see that "document root" has the permissions
But in this third image you can see the specific new path for the folders, and as you can see, all have the permissions and ownership.
If the folders were created, the directories were placed inside "document root", why does it say it has no permissions when you can see that it does?
Also I attach one image of the error in the reports and the last log
2021-08-24 13:09:34.988 ** ERROR ** [V9.1.2] on file '/var/www/html/external/pChart2/class/pImage.class.php' at line (164)
2021-08-24 13:09:34.988 ** ERROR ** [V9.1.2] cause = imagepng(/var/www/html/files/report/user1_globalCostPlanning_20210824_130934_1.png): failed to open stream: Permission denied
Strange... if user that runs PHP is apache, it should work.
(this is default php user for RedHat-like distros, such as Centos)
Try and chmod 777 the directory report for testing.
Sorry, I mistakenly wrote in this thread, moved my question to a separate topic.
Hello! Please tell me how to fix this error?
2021-08-25 13:50:39.329 ** ERROR ** [V9.2.2] on file '/var/www/html/projeqtor/tool/html.php' at line (2432)
2021-08-25 13:50:39.329 ** ERROR ** [V9.2.2] cause = Undefined variable: title
Anybody knows what could be the problem?
Possibly you have SELINUX running that blocks access.
Hi, good day.
Thanks for your comments and your help.
Effectively, if SELINUX was activated, we followed an tutorial that only disable selinux for projeqtor, we disable all the selinux and the error stopped, Now we see only an icon:
Also we check the Log inside ProjeQtOr but nothing was shown.
Is there any other option or recommendation for this problem?






