Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[9.3.2] Projeqtor r...
 
Notifications
Clear all

[9.3.2] Projeqtor require a proxy to run normally

3 Posts
2 Users
0 Reactions
1,528 Views
(@asslr)
Posts: 2
New Member
Topic starter
 
[#7897]

Hello,

i've install projeqtor in the latest version with apache2 and Mariadb. I work on enterprise network with a proxy who need authentification. If i launch projeqtor on a webpage and i want to create item, the page stuck because app have a failed return of proxy for $currrentVersion or $json, the log file say "error  cause = Trying to get property 'items' of non-object".
So, i think it's go to add a proxy variable maybe directly in the app or just in a conf.php file.

For exemple (and it's working) i've added this lines for auth me on proxy and allow app can check his variables :

$ emacs ../projeqtor/tool/projeqtor.php

[...](Line 4357) function checkVersion
$auth = base64_encode('USER:PASSWORD');

  $aContext = array(
    'http' => array(
    'proxy'           => 'tcp://proxy:3128',
    'request_fulluri' => true,
    'header'          => "Proxy-Authorization: Basic $auth",
                      ),
    );
  $cxContext = stream_context_create($aContext);
[...]
[...] (Line 4382)
$currentVersion=file_get_contents($checkUrl, False, $cxContext);
[...]


$ emacs  ...projeqtor/view/menuNewGuiLeft.php

[...] (Line 370)
$auth = base64_encode('USER:PASSWORD');
  $aContext = array(
    'http' => array(
        'proxy'           => 'tcp://proxy:3128',
        'request_fulluri' => true,
        'header'          => "Proxy-Authorization: Basic $auth",
                          ),
        );
  $cxContext = stream_context_create($aContext);
[...]
[...](Line 389)
    $currentVersion=file_get_contents($urlPlugins, False, $cxContext);
    $json = file_get_contents($urlPlugins, False, $cxContext);
[...]

$ /etc/init.d/apache2 restart

and after all it work. it's possible to add this variable ?

Thank for all (it's a good product) !
 


 
Posted : 16 Nov 2021 18H23
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

Remote connexion (that requires proxy) is needed only to check latest deployed version, to add a notification if newer version exists.
This is only executed when an admin connects.
Better that trying to configure a proxy, it is possible to disable this feature in global parameters, tab "System", set "check version" to NO.


 
Posted : 16 Nov 2021 18H28
(@asslr)
Posts: 2
New Member
Topic starter
 

Thank you for this quickly return !!

I have try this function and i've delete my code and this work too. But i can't have notifications when a new version is out 😉

Thank you.

Best Regards


 
Posted : 16 Nov 2021 18H42
Share:

Scroll to Top