Forum

[9.3.2] Projeqtor r...
 
Notifications
Retirer tout

[9.3.2] Projeqtor require a proxy to run normally

3 Posts
2 Utilisateurs
0 Reactions
1,512 Vu
(@asslr)
Posts: 2
New Member
Début du sujet
 
[#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) !
 


 
Posté : 16 Nov PM 18:1111
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 16 Nov PM 18:1111
(@asslr)
Posts: 2
New Member
Début du sujet
 

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


 
Posté : 16 Nov PM 18:1111
Share:
Retour en haut