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.

menuNewGuiLeft.php ...
 
Notifications
Clear all

menuNewGuiLeft.php can't load if connection fails

3 Posts
2 Users
0 Reactions
1,462 Views
(@coasterman)
Posts: 127
Active Member
Topic starter
 
[#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.


 
Posted : 02 Feb 2021 17H49
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 02 Feb 2021 17H59
(@coasterman)
Posts: 127
Active Member
Topic starter
 

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
 


 
Posted : 02 Feb 2021 20H01
Share:

Scroll to Top