Forum

menuNewGuiLeft.php ...
 
Notifications
Retirer tout

menuNewGuiLeft.php can't load if connection fails

3 Posts
2 Utilisateurs
0 Reactions
1,447 Vu
(@coasterman)
Posts: 127
Active Member
Début du sujet
 
[#7263]

Hello

In the new GUI the Left menu can't load "http://projeqtor.org/admin/getPlugins.php"2021-02-02 16:13:12.393 ** ERROR ** [V9.0.3] on file '/var/www/projeqtor/view/menuNewGuiLeft.php' at line (365)
If lucky it comes an error and it can be switched to old GUI else it hangs and wait until reload (depends a bit on the browser)
Old GUI works fine because no access to external sources needed.


 
Posté : 2 Fév PM 17:022
(@babynus)
Posts: 14952
Membre Admin
 

Hi,
Your server cannot acces the internet.
Specify it on the php.ini file with 
allow_url_fopen=off

You can also change global parameter "check version" to NO.


 
Posté : 2 Fév PM 17:022
(@coasterman)
Posts: 127
Active Member
Début du sujet
 

Hello

Yes, this is true that the server couldn't access at that time. But the problem/question is, if it realy has to fail loading the complete menu just because it couldn't get the information about the plugin once? Because the information of new version available is a nice feature and saves daily manual check.

If it could be discovered and aborted already inbetween line 360 and 366
  if (ini_get('allow_url_fopen')) {
    enableCatchErrors();
    enableSilentErrors();
    $currentVersion=file_get_contents($urlPlugins);       
    disableCatchErrors();
    disableSilentErrors();
  }

or the lines 367 - 369 are skipped if no internet to let the list empty, the problem wouldn't apear...

Regards
 


 
Posté : 2 Fév PM 20:022
Share:
Retour en haut