View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Bug: New Setup does not include projeqtor.php - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

Bug: New Setup does not include projeqtor.php

More
28 Avr 2025 09:18 - 28 Avr 2025 10:57 #1 by Agony4173
Hey all,

I am currently trying to automatically build ProjeQtOr into a docker container. While executing, I sumbled upon the following error message:
<b>Fatal error</b>: 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 <b>/var/www/html/tool/file.php</b> on line <b>299</b><br />

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:
sourceforge.net/p/projectorria/code/HEAD...ojeqtor/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
Last edit: 28 Avr 2025 10:57 by Agony4173. Reason: Tried reformatting code

Please Connexion or Create an account to join the conversation.

More
28 Avr 2025 12:46 - 28 Avr 2025 12:46 #2 by Agony4173
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
Last edit: 28 Avr 2025 12:46 by Agony4173.

Please Connexion or Create an account to join the conversation.

More
Yesterday 20:47 #3 by Agony4173
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?

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.031 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.