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

Bug: New Setup does not include projeqtor.php

More
Yesterday 09:18 - Yesterday 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: Yesterday 10:57 by Agony4173. Reason: Tried reformatting code

Please Log in or Create an account to join the conversation.

More
Yesterday 12:46 - Yesterday 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: Yesterday 12:46 by Agony4173.

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.049 seconds

Cookies settings

×

Functional Cookies

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

Please login to see yours activities!

Other cookies

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