PHP Desktop 404 error

1,325 views
Skip to first unread message

Wes Kosgey

unread,
Apr 4, 2016, 5:17:53 AM4/4/16
to PHP Desktop
I have been running this desktop program and all of a sudden I get '404 error page not found' 
Here is the log on the debug console
- 12:14:26.109 INFO: Started application
- 12:14:26.109 INFO: Logging to: C:\Program Files\Myp\debug.log
- 12:14:26.109 INFO: Log level = DEBUG4
- 12:14:26.125 INFO: Starting Mongoose 3.9c web server
- 12:14:26.125 INFO: WWW directory: C:\Program Files\Myp\www
- 12:14:26.125 INFO: Index files: index.html,index.php
- 12:14:26.125 INFO: CGI interpreter: C:\Program Files\Myp\php\php-cgi.exe
- 12:14:26.125 INFO: CGI pattern: **.php$
- 12:14:26.125 INFO: Hide files patterns:
- 12:14:26.125 INFO: CGI environment variables set: TMP=C:\Users\WESLEY\AppData\
Local\Temp\,TEMP=C:\Users\WESLEY\AppData\Local\Temp\,TMPDIR=C:\Users\WESLEY\AppD
ata\Local\Temp\,SERVER_NAME=127.0.0.1,PHPDESKTOP_VERSION=47.5
- 12:14:26.140 INFO: Web server url: http://127.0.0.1:53817/
- 12:14:26.140 INFO: remote_debugging_port = 65209
- 12:14:26.390 DEBUG: Command line string for the browser process: "C:\Program F
iles\Myp\phpdesktop-chrome.exe" --no-sandbox --lang=en-US --log-file="C:\Program
 Files\Myp\debug.log" --remote-debugging-port=65209
- 12:14:28.979 DEBUG: App::OnContextInitialized()
- 12:14:28.979 DEBUG: Window max width/height = 1286/680
- 12:14:28.979 DEBUG: GetBrowserWindow(): not found, hwnd = 1319390
- 12:14:28.979 DEBUG: WindowProc(): event WM_GETMINMAXINFO: could not fetch Brow
serWindow
- 12:14:28.979 DEBUG: BrowserWindow::CreateBrowserControl()
- 12:14:28.979 DEBUG: StoreBrowserWindow(): hwnd = 1319390
- 12:14:30.087 DEBUG: ClientHandler::OnAfterCreated()
- 12:14:30.087 DEBUG: SetCefBrowser() called in ClientHandler::OnAfterCreated()
- 12:14:30.290 DEBUG: OnLoadingStateChange: loading=1, url=
- 12:14:32.614 INFO: GET 404 /
- 12:14:32.942 DEBUG: OnLoadingStateChange: loading=0, url=http://127.0.0.1:5381

Wes Kosgey

unread,
Apr 4, 2016, 5:22:00 AM4/4/16
to PHP Desktop
debug log 

INFO: --------------------------------------------------------
- 12:06:51.375 INFO: Started application
- 12:06:51.375 INFO: Logging to: C:\Program Files\phpn\debug.log
- 12:06:51.375 INFO: Log level = DEBUG4
- 12:06:51.375 INFO: Starting Mongoose 3.9c web server
- 12:06:51.375 INFO: WWW directory: C:\Program Files\phpn\www
- 12:06:51.375 INFO: Index files: index.html,index.php
- 12:06:51.375 INFO: CGI interpreter: C:\Program Files\phpn\php\php-cgi.exe
- 12:06:51.375 INFO: CGI pattern: **.php$
- 12:06:51.375 INFO: Hide files patterns: 
- 12:06:51.375 INFO: CGI environment variables set: TMP=C:\Users\WESLEY\AppData\Local\Temp\,TEMP=C:\Users\WESLEY\AppData\Local\Temp\,TMPDIR=C:\Users\WESLEY\AppData\Local\Temp\,SERVER_NAME=127.0.0.1,PHPDESKTOP_VERSION=47.5
- 12:06:51.375 INFO: Web server url: http://127.0.0.1:53763/
- 12:06:51.375 INFO: remote_debugging_port = 51228
- 12:06:51.375 DEBUG: Command line string for the browser process: "C:\Program Files\phpn\phpdesktop-chrome.exe" --no-sandbox --lang=en-US --log-file="C:\Program Files\phpn\debug.log" --remote-debugging-port=51228
[0404/120651:WARNING:resource_bundle.cc(305)] locale_file_path.empty() for locale 
[0404/120651:ERROR:main_delegate.cc(722)] Could not load locale pak for en-US
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
- 12:06:51.437 DEBUG: App::OnContextInitialized()
- 12:06:51.437 DEBUG: Window max width/height = 1286/680
- 12:06:51.437 DEBUG: GetBrowserWindow(): not found, hwnd = 1379254
- 12:06:51.437 DEBUG: WindowProc(): event WM_GETMINMAXINFO: could not fetch BrowserWindow
- 12:06:51.437 DEBUG: BrowserWindow::CreateBrowserControl()
- 12:06:51.437 DEBUG: StoreBrowserWindow(): hwnd = 1379254
- 12:06:51.468 DEBUG: ClientHandler::OnAfterCreated()
- 12:06:51.468 DEBUG: SetCefBrowser() called in ClientHandler::OnAfterCreated()
- 12:06:51.468 DEBUG: OnLoadingStateChange: loading=1, url=
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
[0404/120651:WARNING:resource_bundle.cc(503)] locale resources are not loaded
- 12:06:51.000 DEBUG: Command line string for the renderer process: "C:\Program Files\phpn\phpdesktop-chrome.exe" --type=renderer --no-sandbox --lang=en-US --lang=en-US --log-file="C:\Program Files\phpn\debug.log" --device-scale-factor=1 --num-raster-threads=2 --content-image-texture-target=3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553 --video-image-texture-target=3553 --disable-accelerated-video-decode --disable-webrtc-hw-encoding --disable-gpu-compositing --channel="1416.0.956523580\742723331" /prefetch:673131151
[0404/120651:WARNING:resource_bundle.cc(305)] locale_file_path.empty() for locale 
[0404/120651:ERROR:main_delegate.cc(722)] Could not load locale pak for en-US
- 12:06:51.015 DEBUG: OnBrowserCreated()
- 12:06:51.515 INFO: GET 404 /
- 12:06:51.531 DEBUG: OnLoadingStateChange: loading=0, url=http://127.0.0.1:53763/
- 12:06:56.273 DEBUG: WM_DESTROY
- 12:06:56.273 DEBUG: RemoveBrowserWindow(): hwnd = 1379254
- 12:06:56.273 INFO: Stopping Mongoose web server
- 12:06:56.273 DEBUG: Mongoose webserver stopped immediately
- 12:06:56.273 DEBUG: OnBeforeClose() hwnd=2433486
- 12:06:56.273 DEBUG: RemoveBrowserWindow(): hwnd = 2433486
- 12:06:56.273 DEBUG: GetBrowserWindow(): not found, hwnd = 2433486
- 12:06:56.273 WARNING: RemoveBrowserWindow() failed: GetBrowserWindow() failed
- 12:06:56.273 DEBUG: Calling CefQuitMessageLoop()
- 12:06:56.289 INFO: Ended application
- 12:06:56.289 INFO: --------------------------------------------------------

Czarek Tomczak

unread,
Apr 4, 2016, 7:26:02 AM4/4/16
to PHP Desktop
Try loading page in Google Chrome. Url is in debug console or you can use mouse context menu.

There are errors saying resources loading failed - check if you're not missing any files.

Download original phpdesktop binaries and see if they work. Restore the original settings.json file. Find which change you made that broke it.


On Monday, April 4, 2016 at 9:17:53 AM UTC, Wes Kosgey wrote:
I have been running this desktop program and all of a sudden I get '404 error page not found' 
Here is the log on the debug console
...

Wes Kosgey

unread,
Apr 4, 2016, 11:16:28 AM4/4/16
to PHP Desktop
Sorted...My bad... the way was selecting files to include

Czarek Tomczak

unread,
Apr 4, 2016, 11:50:33 AM4/4/16
to PHP Desktop
So it was a PHP error? But in such case 500 error code should be displayed.
Message has been deleted

mosesnj...@gmail.com

unread,
Mar 8, 2018, 8:20:42 PM3/8/18
to PHP Desktop
Hello am stuck with the same problem so how do i select the files am using an output folder of phprunner. The app runs well but after inno compiling the app gives a 404 error.

daya...@gmail.com

unread,
Aug 17, 2018, 12:21:39 AM8/17/18
to PHP Desktop
how did you do that. iam facing the same problrm

daya...@gmail.com

unread,
Aug 17, 2018, 12:22:37 AM8/17/18
to PHP Desktop
did you find any solutions ?. please help me if so

Czarek Tomczak

unread,
Aug 17, 2018, 4:40:22 AM8/17/18
to PHP Desktop
Please create separate topics for your problems.

mnog...@gmail.com

unread,
Aug 12, 2019, 1:36:04 PM8/12/19
to PHP Desktop
Hi, i just downloaded your phpdesktop-chrome-57.0-rc-php-7.1.3
I am creating a laravel application's desktop version. it hits the default route correctly but if i perform any other action, gives
Error 404: Not Found
File not found

here are the changes i made in json 
"web_server": {
"listen_on": ["127.0.0.1", 8000],
"www_directory": "www/public/",
"index_files": ["index.php"],
"cgi_interpreter": "php/php-cgi.exe",
"cgi_extensions": ["php"],
"cgi_temp_dir": "",
"404_handler": "/pretty-urls.php",
"hide_files": []
},
Kindly help me out

dexdes...@gmail.com

unread,
Jun 5, 2020, 12:29:26 PM6/5/20
to PHP Desktop
well.... after multiple failed attempts to compile a custom package using phpdesktop and Inno setup compiler I've downloaded a fresh copy of php-desktop and tried again without altering/editing any of the files... all original as they come from github ...  and the error is the same 
Error 404: Not Found
File not found

Hopefully there's a fiable solution rather than punching my laptop :)
Kind regards
Dan N
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages