• Resolved ILLIA POLIANSKYI

    (@polianskiiilia)


    Good day,

    I developed my own http server with php support through php-fpm.

    I wish to support WordPress by my server, since there only 2: apache and nginx, may be people will like my 3rd alternative multiplatform one. it’s free and after I fix WP, it will be online and with “WordPress Supported” ad note))

    after local install of wordpress latest 2023 it was working like a charm, sites in front-end are loading fine, and wp-admin also.

    I have problem only with /wp-admin/post-new.php url. it’s blank, and is successfully loading only after several [F5]/”browser reload” clicks. then working fine. I compared network resources, on blank page there were not all resources even asked to load, it was not my servers problem to respond with 500 or similar. the resources were not even asked to load. and after several reload page clicks, there were many more js and css resources requested and successfully loaded with 200 status. Chrome and Firefox the same. browser JS console is without any red errors or yellow warnings, where i could notice if something was wrong with fetch XHR or so. the only thing helps is in chrome right click on refresh browser button then in context menu “clear cache and hard reload”.

    the question is, how to fix a problem to load all bound resources on the specific url: /wp-admin/post-new.php without several reload clicks. maybe its DOMContentLoaded event handler or so?

    I can provide for the consulting WP developer my http server installation package with all instructions how to run a php app under it. we could fix this problem together. I’m an experienced PHP developer.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • I suspect this is related to the HTTP headers your server returns. Maybe there is one that causes the UserAgent (=browser) not to load included files. At the moment I can only think of different cache headers.

    Your question has little to do with WordPress itself. Rather with how browsers handle HTTP headers.

    Thread Starter ILLIA POLIANSKYI

    (@polianskiiilia)

    AN HTML BY PHP-FPM
    http://wp-test.loc/wp-admin/post-new.php
    Cache-Control: no-cache, must-revalidate, max-age=0
    Content-Encoding: gzip
    Content-Length: 18989
    Content-Type: text/html; charset=UTF-8;
    Date: Sat, 04-Feb-2023 17:03:27 GMT
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Referrer-Policy: strict-origin-when-cross-origin
    Server: JAISOCX API Web Server 2021/5.5 (Java MVC, PHP, SQL-to-JSON, JS Frameworks support)
    Set-Cookie: wp-settings-1=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/
    Set-Cookie: wp-settings-time-1=1675530207; expires=Sun, 04-Feb-2024 17:03:27 GMT; Max-Age=31536000; path=/
    X-Frame-Options: SAMEORIGIN
    
    A JS BY PHP-FPM
    http://wp-test.loc/wp-admin/load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.0.1
    Cache-Control: public, max-age=31536000
    Content-Encoding: gzip
    Content-Length: 66735
    Content-Type: application/javascript; charset=UTF-8;
    Date: Sat, 04-Feb-2023 17:03:27 GMT
    Etag: 6.0.1
    Expires: Sun, 04 Feb 2024 17:03:27 GMT
    Server: JAISOCX API Web Server 2021/5.5 (Java MVC, PHP, SQL-to-JSON, JS Frameworks support)
    
    A JS BY PHP-FPM
    http://wp-test.loc/wp-admin/load-scripts.php?c=0&load[chunk_0]=hoverIntent,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.0.1
    Cache-Control: public, max-age=31536000
    Content-Encoding: gzip
    Content-Length: 11313
    Content-Type: application/javascript; charset=UTF-8;
    Date: Sat, 04-Feb-2023 17:03:27 GMT
    Etag: 6.0.1
    Expires: Sun, 04 Feb 2024 17:03:27 GMT
    Server: JAISOCX API Web Server 2021/5.5 (Java MVC, PHP, SQL-to-JSON, JS Frameworks support)
    
    OTHER STATIC JS FILES, handled by my server core. e.g.
    http://wp-test.loc/wp-includes/js/dist/dom-ready.min.js?ver=d996b53411d1533a84951212ab6ac4ff
    Content-Encoding: gzip
    Content-Length: 331
    Content-Type: text/javascript; charset=UTF-8
    Date: Sat, 04-Feb-2023 17:03:27 GMT
    Last-Modified: Mon, 11-Apr-2022 12:04:30 GMT
    Server: JAISOCX API Web Server 2021/5.5 (Java MVC, PHP, SQL-to-JSON, JS Frameworks support)

    Hello, here are my response headers. by such headers this time the screen was blank. the first 3 resources were generated by php-fpm, and response headers were just copied into response stream from php-fpm. the last resource is one of js static files, the headers are generated by my server core, and are always the same except Content-Length.

    Please let me know if you notice smth. on response headers or there some missing ones for WP. thank You!

    Thread Starter ILLIA POLIANSKYI

    (@polianskiiilia)

    Hello @threadi

    thank You very much for answering my question. please provide me an info, which caching headers should have which values, expected by WP.

    thank You!

    Thread Starter ILLIA POLIANSKYI

    (@polianskiiilia)

    Sorry guys,

    it’s php-fpm read for writing to response err. it’s my bug.

    http://wp-test.loc/wp-admin/post-new.php

    OK FULL
    Content-Length: 118’275

    ERR BLANK:
    Content-Length: 18’989

    only 10% of post-new.php content was fetched, it’s my bug, sorry.

    Thread Starter ILLIA POLIANSKYI

    (@polianskiiilia)

    bug fixed in my app properly read php-fpm response.

    ticket closed

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘/wp-admin/post-new.php is blank since not all .js imports and similar is loaded’ is closed to new replies.