Forum

Bug: New Setup does...
 
Notifications
Retirer tout

Bug: New Setup does not include projeqtor.php

4 Posts
2 Utilisateurs
0 Reactions
806 Vu
(@agony4173)
Posts: 4
Active Member
Début du sujet
 
[#9836]

Hey all,

I am currently trying to automatically build ProjeQtOr into a docker container. While executing, I sumbled upon the following error message:

Fatal error: Uncaught Error: Call to undefined function enableCatchErrors() in /var/www/html/tool/file.php:299
Stack trace:
#0 /var/www/html/tool/file.php(322): getStaticFileNameWithCacheMgt('js/dynamicCss.j...')
#1 /var/www/html/index.php(77): echoStaticFileNameWithCacheMgt('view/js/dynamic...')
#2 {main}
thrown in /var/www/html/tool/file.php on line 299

Looking at the code, the error is obvious. Inside the index.php, the projeqtor.php does not get included, if it is a new installation. See the else clause here:
https://sourceforge.net/p/projectorria/code/HEAD/tree/branches/V12.1/projeqtor/index.php#l5

if (is_file ( "../tool/parametersLocation.php" )) {
include_once '../tool/projeqtor.php';
$theme=getTheme();
if (RequestHandler::isCodeSet('nosso') or (isset($paramNoSSO) and $paramNoSSO===true)) {
SSO::setAvoidSSO();
}
if(isNewGui())$firstColor=Parameter::getUserParameter('newGuiThemeColor');
else $firstColor='545381';
$background=(isNewGui())?'#'.$firstColor.' !important':' #C3C3EB';
$initialisation=false;
} else {
function isNewGui() {
return true;
}
function getTheme() {
return 'ProjeQtOrFlatBlue';
}
function isFF() {
return true;
}
$theme=getTheme();
$background="#545381";
$initialisation=true;
$version=0;
$build=0;
$svnRevision=0;
$firstColor='545381';
$background='#545381 !important';
include_once '../tool/file.php';
}

I just wanted to quickly check if I am missing anything here.

Best,
Agony


 
Posté : 28/04/2025 11:18 am
(@agony4173)
Posts: 4
Active Member
Début du sujet
 

After further looking into this, the main issue is the functions:

- enableCatchErrors();
- disableCatchErrors();

Those are referenced in the file

tools/projeqtor.php

. This file does not get referenced, as you see in the above code.

From my point of view, there are two solutions:
1) Quick & Dirty: Replace those functions with the following code, depending on if it should be enabled or disabled:

global $globalCatchErrors;
$globalCatchErrors=true;

2) Refactor tools/projeqtor.php so it can be referenced at the beginning of index.php


 
Posté : 28/04/2025 2:46 pm
(@agony4173)
Posts: 4
Active Member
Début du sujet
 

Okay installing Projeqtor 12.1.1 is kind of a mess. I jump from error to error.

When is the last time _anyone_ actually tried to install this from scratch? Are there no CI/CD tests?


 
Posté : 29/04/2025 10:47 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

You're righ, it seems that new js caching set issues with fresh installs.
We'll fix this.

As a workaround, directly go to url http://localhost/projeqtor/view/main.php


 
Posté : 04/05/2025 2:58 am
Share:
Retour en haut