partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.38k stars 401 forks source link

display blank page on Centos7 after installation #687

Closed gaobo07 closed 8 years ago

gaobo07 commented 8 years ago

Hi,

My system is configured with Centos7, PHP7.0 and nginx. I can go through the installation of partkeepr1.0, but after I push the submit button the explorer returns a blank page. below is the source of the blank page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>PartKeepr</title>

    <base href=""/>

    <link href="https://fonts.googleapis.com/css?family=Ubuntu:400,700italic"
          rel="stylesheet" type="text/css">

    <!-- Include the ExtJS CSS Theme -->
        <link rel="stylesheet" href="/css/dec566c.css"/>

        <link rel="icon" href="/images/245ec67.ico"/>

    <script type="javascript">
        var Ext = Ext || {};
        Ext.manifest = { // the same content as "app.json"
            compatibility: {
                ext: '4.2'
            }
        }
    </script>
                    <script type="text/javascript" src="/js/compiled/extjs.js"></script>

            <script type="text/javascript" src="/js/compiled/main.js"></script>
            <script type="text/javascript" src="/js/compiled/models.js"></script>

        <script type="text/javascript" src="/js/compiled/main2.js"></script>
    </head>
<body>
<div id="loading"><span class="logo"></span></div>
<script type="text/javascript">
    window.parameters = {"doctrine_orm_version":"2.5.4","doctrine_dbal_version":"2.5.2","doctrine_common_version":"2.6.0-DEV","php_version":"7.0.6","auto_start_session":true,"maxUploadSize":2097152,"availableImageFormats":["JPG","GIF","PNG"],"max_users":"unlimited","authentication_provider":"PartKeepr.Auth.HTTPBasicAuthenticationProvider","tip_of_the_day_uri":"https:\/\/partkeepr.org\/tips\/%s","password_change":true};
</script>
</body>
</html>

Can anyone help this?

BR, David

Drachenkaetzchen commented 8 years ago

Check if you get any javascript errors in your browser's JS console (typically F12). Also report which browser you are using.

gaobo07 commented 8 years ago

My browser is google chrome, version 51.0.2704.103 m, I got error

GET http://www.google.com/jsapi?_dc=1468458346918 net::ERR_CONNECTION_RESET       extjs.js:22 
evaluateLoadElement @ extjs.js:22
loadCrossDomain @ extjs.js:22
load @ extjs.js:22
loadEntries @ extjs.js:22
processRequest @ extjs.js:22
load @ extjs.js:22
loadScripts @ extjs.js:22
b.onCreated @ extjs.js:22
g.onCreated @ extjs.js:22
onBeforeCreated @ extjs.js:22
doProcess @ extjs.js:22
(anonymous function) @ extjs.js:22
load @ extjs.js:22
require @ extjs.js:22
(anonymous function) @ extjs.js:22
(anonymous function) @ extjs.js:22
doProcess @ extjs.js:22
process @ extjs.js:22
d @ extjs.js:22
create @ extjs.js:22
define @ extjs.js:22
(anonymous function) @ extjs.js:23
content.scripts.c.js:11 TableManager::findTables()

below infomation is from browser network

css?family=Ubuntu:400,700italic 200 stylesheet  (index):12  (from cache)    1 ms  
dec566c.css 200 stylesheet  (index):15  (from cache)    25 ms 
main.js 200 script  (index):29  (from cache)    18 ms 
extjs.js    200 script  (index):27  (from cache)    150 ms    
models.js   200 script  (index):36  (from cache)    13 ms 
main2.js    200 script  (index):38  (from cache)    20 ms 
jsapi?_dc=1468458346918 (failed)        extjs.js:22 0 B   603 ms    
data:image/gif;base…  200 gif extjs.js:22 (from cache)    0 ms  
data:image/gif;base…  200 gif extjs.js:22 (from cache)    0 ms  
Drachenkaetzchen commented 8 years ago

Is the installation reachable over the internet, so I can have a look?

gaobo07 commented 8 years ago

yes, I can install a teamviewer or your preferable way, when are you available?

Drachenkaetzchen commented 8 years ago

I meant if the URL of your PartKeepr installation is reachable over the internet

Drachenkaetzchen commented 8 years ago

It seems that the culprit is the connection reset to google.com/jsapi, I believe that's the issue you need to fix

gaobo07 commented 8 years ago

image

do you mean the above infomation?

gaobo07 commented 8 years ago

image

gaobo07 commented 8 years ago

image database configuration has a warning

gaobo07 commented 8 years ago

image some time pops up an error of warming up the cache.

gaobo07 commented 8 years ago

Re-run setup, cache successfully warmed up image

gaobo07 commented 8 years ago

then submit got the blank page. image

Drachenkaetzchen commented 8 years ago

Your problem is GET http://www.google.com/jsapi?_dc=1468458346918 net::ERR_CONNECTION_RESET extjs.js:22 which you need to fix. It seems that your network is broken.

You could try to open https://demo.partkeepr.org from the exact same browser and see if the same happens as well.

gaobo07 commented 8 years ago

I can open the website, and I downloaded the partkeepr vitual machine, I can open it too.

Drachenkaetzchen commented 8 years ago

I'm talking about https://demo.partkeepr.org - the demo site, not the regular web site. Can you go there and see if the demo system works for you?

gaobo07 commented 8 years ago

Thanks felicitus, you are right, it's the network problem. now I can open the website. Apache 2.4 is tested ,and website is working too. Could you explain why does v0.1.9 virtual machine image can work in my local network. but the 1.0.0 version need internet request? Is it possible to put the internet request file to virtual machine?

Drachenkaetzchen commented 8 years ago

It's due to the changes in ExtJS. I haven't investigated it yet, but I will keep the issue open to see why that's happening

gaobo07 commented 8 years ago

Below link talked about the connection problem. which suggests to rebuild the ux package without the things that require google APIs https://www.sencha.com/forum/showthread.php?304968-Application-hangs-when-trying-to-load-google-jsapi-without-internet-connection.

Drachenkaetzchen commented 8 years ago

I believe the issue is now fixed as we're now only including the Ext.ux files we need instead of including all. Please test it with the upcoming version and re-open if necessary