Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Leo
Topic Author
Posts: 21
Joined: 02 Feb 2009, 11:50

Panel page is blank

15 Jun 2016, 04:20

Hi Carl,
I tried to open X3 0.18 version today, when I access to the panel page, it appears a blank page. What could be the problem of that?

Leo
------http://xiya.photo.gallery-----To memorize my angel,Xiya
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13997
Joined: 30 Sep 2006, 03:37

Re: Panel page is blank

15 Jun 2016, 07:54

I don't know, I can't possibly diagnose these things without a link.

It suddenly happened without your intervention? Maybe something changed on server.
 
User avatar
Leo
Topic Author
Posts: 21
Joined: 02 Feb 2009, 11:50

Re: Panel page is blank

16 Jun 2016, 04:00

Hi Karl,
It's a fresh new install on my laptop as testing. I am located in Shanghai, so I am not sure whether some scripts could not be load because of the firewall, neither I visit the https://demo.photo.gallery/panel/, it displays the blank page.
I also tried to over-wall via VPN, the panel page can display properly.
The main problem is the backend panel page could not pop up in my area, while the website can browse perfectly.
If that is the reason, how many script files need be localized, will they effect the performance?
Thanks
leo
------http://xiya.photo.gallery-----To memorize my angel,Xiya
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13997
Joined: 30 Sep 2006, 03:37

Re: Panel page is blank

16 Jun 2016, 05:50

Leo wrote:Hi Karl,
It's a fresh new install on my laptop as testing. I am located in Shanghai, so I am not sure whether some scripts could not be load because of the firewall, neither I visit the https://demo.photo.gallery/panel/, it displays the blank page.
You mean you don't even see the login page?
Image
Leo wrote:I also tried to over-wall via VPN, the panel page can display properly.
The main problem is the backend panel page could not pop up in my area, while the website can browse perfectly.
Ok so I guess it can be confirmed that the problem is the CDN provider, perhaps only temporarily. They claim to cover China:
http://www.jsdelivr.com/features/cdn-in-asia-and-china

The frontend works fine? Also the popup when clicking an image? The frontend actually has a redundancy fallback, so that if the CDN fails, it will load local-hosted version of a script.
Leo wrote:If that is the reason, how many script files need be localized, will they effect the performance?
The only reason is that it is fast and practical, loading a large amount of JS/CSS resources from a CDN provider on fast networks, through the new http/2 protocol. It would not affect performance too much though, if you host the files on your own server ... Especially since it's mostly a single user from a close location to the server that is using the panel.

It would require some working editing the templates and downloading all scripts to have a local-hosted setting. I can look into a non-CDN panel setting for next release, but it will be a while since we are busy with a new website right now.

Must say I'm a bit surprised that the CDN is not accessible, considering what they say, and their network map. What browser do you use? If Chrome, could you go to view -> developer -> developer tools -> network tab, and reload the page? It should show clearly in red what resources are failing to load.
 
User avatar
Leo
Topic Author
Posts: 21
Joined: 02 Feb 2009, 11:50

Re: Panel page is blank

17 Jun 2016, 07:09

Hi Karl, thanks it arouse your attention. :)
The frontend page works perfect here with the lastest version comparing the old ones, images displays properly, together with cool effects.
I tried to access the demo.photo.gallery/panel with my chrome browser with develop tool. Here are three error message recoding while the backend page is loading,
1. GET https://ajax.googleapis.com/ajax/libs/j ... ery.min.js
net::ERR_CONNECTION_TIME_OUT
2. Uncaught ReferenceError: jQuery is not defined
(anonymous function) @ bootstrap.min.js:6
3. Uncaught ReferenceError: $ is not defined
(anonymous function) @ (index):123
Besides, in the Elements tab of develop tool of Chrome, I found the jquery.min.js is not hosted by https://cdn.jsdelivr.net
Will it be the reason.
Hope this problem could be resolved in the next released version.
------http://xiya.photo.gallery-----To memorize my angel,Xiya
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13997
Joined: 30 Sep 2006, 03:37

Re: Panel page is blank

17 Jun 2016, 10:17

Leo wrote:1. GET https://ajax.googleapis.com/ajax/libs/j ... ery.min.js
net::ERR_CONNECTION_TIME_OUT
2. Uncaught ReferenceError: jQuery is not defined
(anonymous function) @ bootstrap.min.js:6
3. Uncaught ReferenceError: $ is not defined
(anonymous function) @ (index):123
Hmm, that's interesting ... It is actually the GOOGLE CDN that fails for your location. I thought since it's Google, it would be reliable, but seems not. You can fix it for your local version ... Open panel/footer.php, line 80:
Code
<script src='https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js'></script>
Replace with the following:
Code
<script src='https://cdn.jsdelivr.net/jquery/2.2.2/jquery.min.js'></script>
I will look into this for next release, maybe implement a fallback. We actually load the JQUERY script from Google CDN, because it is most widespread. We might change to jsdelivr, which seems to work from your location.
 
User avatar
Leo
Topic Author
Posts: 21
Joined: 02 Feb 2009, 11:50

Re: Panel page is blank

19 Jun 2016, 23:17

Thanks ! It works ! in addition, it also need edit in the panel/login.php.
------http://xiya.photo.gallery-----To memorize my angel,Xiya
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13997
Joined: 30 Sep 2006, 03:37

Re: Panel page is blank

20 Jun 2016, 08:12

Leo wrote:Thanks ! It works ! in addition, it also need edit in the panel/login.php.
right ...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13997
Joined: 30 Sep 2006, 03:37

Re: Panel page is blank  Topic is solved

07 Sep 2016, 13:35

Leo wrote:1. GET https://ajax.googleapis.com/ajax/libs/j ... ery.min.js
    net::ERR_CONNECTION_TIME_OUT
This is now fixed in X3 Release [0.19]. We have changed from Google CDN to JSDelivr, which seems to work nicely in China.