New to PHP Desktop Error When runinng my app

1,435 views
Skip to first unread message

pmoh...@gmail.com

unread,
Oct 10, 2017, 6:56:18 AM10/10/17
to PHP Desktop
- 12:39:00.031 ERROR: Opening log file for appending failed
- 12:39:00.031 INFO: --------------------------------------------------------
- 12:39:00.031 INFO: Started application
- 12:39:00.031 INFO: Logging to: C:\Program Files (x86)\doh\debug.log
- 12:39:00.031 INFO: Log level = DEBUG4
- 12:39:00.031 INFO: Starting Mongoose 3.9c web server
- 12:39:00.031 INFO: WWW directory: C:\Program Files (x86)\doh\www
- 12:39:00.031 INFO: Index files: index.html,index.php
- 12:39:00.031 INFO: CGI interpreter: C:\Program Files (x86)\doh\php\php-cgi.exe

- 12:39:00.031 INFO: CGI pattern: **.php$
- 12:39:00.031 INFO: Hide files patterns:
- 12:39:00.031 DEBUG: The temp directory returned by OS contains unicode charact
ers: C:\Users\P0324~1.MOH\AppData\Local\Temp\
- 12:39:00.031 INFO: CGI environment variables set: TMP=C:\windows\Temp,TEMP=C:\
windows\Temp,TMPDIR=C:\windows\Temp,SERVER_NAME=127.0.0.1,PHPDESKTOP_VERSION=47.
5
- 12:39:00.031 INFO: Web server url: http://127.0.0.1:59095/
- 12:39:00.031 INFO: remote_debugging_port = 63441
- 12:39:00.031 DEBUG: Command line string for the browser process: "C:\Program F
iles (x86)\doh\doh.exe" --no-sandbox --lang=en-US --log-file="C:\Program Files (
x86)\doh\debug.log" --remote-debugging-port=63441
- 12:39:00.078 DEBUG: App::OnContextInitialized()
- 12:39:00.078 DEBUG: Window max width/height = 1286/680
- 12:39:00.094 DEBUG: GetBrowserWindow(): not found, hwnd = 9832156
- 12:39:00.094 DEBUG: WindowProc(): event WM_GETMINMAXINFO: could not fetch Brow
serWindow
- 12:39:00.094 DEBUG: BrowserWindow::CreateBrowserControl()
- 12:39:00.094 DEBUG: StoreBrowserWindow(): hwnd = 9832156
- 12:39:00.109 DEBUG: ClientHandler::OnAfterCreated()
- 12:39:00.109 DEBUG: SetCefBrowser() called in ClientHandler::OnAfterCreated()
- 12:39:00.125 DEBUG: OnLoadingStateChange: loading=1, url=
- 12:39:01.187 INFO: GET 404 /
- 12:39:01.203 DEBUG: OnLoadingStateChange: loading=0, url=http://127.0.0.1:5909
5/
- 12:40:00.703 INFO: GET 404 /
- 12:40:00.734 INFO: GET 404 /favicon.ico

Czarek Tomczak

unread,
Oct 10, 2017, 7:04:54 AM10/10/17
to PHP Desktop

Czarek Tomczak

unread,
Oct 10, 2017, 7:06:22 AM10/10/17
to PHP Desktop
See if the error also occurs in phpdesktop binaries with untouched www directory or the settings.json file.

pmoh...@gmail.com

unread,
Oct 10, 2017, 7:54:31 AM10/10/17
to PHP Desktop
Thank you so much for your prompt response

I download the latest and still get the same result. When I run it on binary, I get this error message

Page failed to load.
URL: http://www.google.com/
Error: ERR_NAME_NOT_RESOLVED (-105)
ERR_NAME_NOT_RESOLVED

Czarek Tomczak

unread,
Oct 10, 2017, 8:27:30 AM10/10/17
to PHP Desktop
Does Google Chrome work on your computer? The error you pasted is a DNS resolution error. By default CEF/phpdesktop will use Internet Explorer proxy settings. Try setting --no-proxy-server switch in settings.json:

command_line_switches: {
    "no-proxy-server": ""
},
Ref: https://github.com/cztomczak/phpdesktop/wiki/Chrome-settings#command_line_switches

pmoh...@gmail.com

unread,
Oct 10, 2017, 9:16:32 AM10/10/17
to PHP Desktop
I'm still getting the same problem. When I copy the console url to chrome, it says
Error 404: Not Found
File not found

and on the console I get:

INFO: GET 404 /favicon.ico


- 15:11:40.016 ERROR: Opening log file for appending failed
- 15:11:40.016 INFO: --------------------------------------------------------
- 15:11:40.016 INFO: Started application
- 15:11:40.016 INFO: Logging to: C:\Program Files (x86)\doh\debug.log
- 15:11:40.016 INFO: Log level = DEBUG4
- 15:11:40.016 INFO: Starting Mongoose 3.9c web server
- 15:11:40.016 INFO: WWW directory: C:\Program Files (x86)\doh\www
- 15:11:40.016 INFO: Index files: index.html,index.php
- 15:11:40.016 INFO: CGI interpreter: C:\Program Files (x86)\doh\php\php-cgi.exe

- 15:11:40.016 INFO: CGI pattern: **.php$
- 15:11:40.016 INFO: Hide files patterns:
- 15:11:40.016 DEBUG: The temp directory returned by OS contains unicode charact


ers: C:\Users\P0324~1.MOH\AppData\Local\Temp\

- 15:11:40.016 INFO: CGI environment variables set: TMP=C:\windows\Temp,TEMP=C:\
windows\Temp,TMPDIR=C:\windows\Temp,SERVER_NAME=127.0.0.1,PHPDESKTOP_VERSION=57.
0
- 15:11:40.016 INFO: Web server url: http://127.0.0.1:60798/
- 15:11:40.016 INFO: remote_debugging_port = 57981
- 15:11:40.016 DEBUG: Command line string for the browser process: "C:\Program F
iles (x86)\doh\phpdesktop-chrome.exe" --no-sandbox --lang=en-US --log-file="C:\P
rogram Files (x86)\doh\debug.log" --remote-debugging-port=57981 --no-proxy-serve
r
- 15:11:40.094 DEBUG: App::OnContextInitialized()
- 15:11:40.094 DEBUG: Window max width/height = 1286/680
- 15:11:40.094 DEBUG: GetBrowserWindow(): not found, hwnd = 9966348
- 15:11:40.094 DEBUG: WindowProc(): event WM_GETMINMAXINFO: could not fetch Brow
serWindow
- 15:11:40.094 DEBUG: BrowserWindow::CreateBrowserControl()
- 15:11:40.094 DEBUG: StoreBrowserWindow(): hwnd = 9966348
- 15:11:40.109 DEBUG: ClientHandler::OnAfterCreated()
- 15:11:40.109 DEBUG: SetCefBrowser() called in ClientHandler::OnAfterCreated()
- 15:11:40.125 DEBUG: OnLoadingStateChange: loading=1, url=
- 15:11:42.609 INFO: GET 404 /
- 15:11:42.625 DEBUG: OnLoadingStateChange: loading=0, url=http://127.0.0.1:6079
8/
- 15:12:08.250 INFO: GET 404 /
- 15:12:08.344 INFO: GET 404 /favicon.ico

Czarek Tomczak

unread,
Oct 10, 2017, 9:20:04 AM10/10/17
to PHP Desktop
Are you loading default scripts that are shipped with phpdesktop binaries?

pmoh...@gmail.com

unread,
Oct 10, 2017, 9:28:54 AM10/10/17
to PHP Desktop
Ohw ma bad, on phpdesktop binaries it loaded the google page without an error

pmoh...@gmail.com

unread,
Oct 10, 2017, 9:30:05 AM10/10/17
to PHP Desktop
It works fine with binaries with default files

Czarek Tomczak

unread,
Oct 10, 2017, 9:42:23 AM10/10/17
to PHP Desktop
Then you have to fix your scripts or settings.json configuration.

pmoh...@gmail.com

unread,
Oct 10, 2017, 9:54:20 AM10/10/17
to PHP Desktop
OK will try to find the solution to this problem.

alkoon...@gmail.com

unread,
Feb 17, 2019, 9:04:28 AM2/17/19
to PHP Desktop
for was cef.pak missing from PHP Desktop .

sameera Buddhi

unread,
May 27, 2021, 9:51:42 AM5/27/21
to PHP Desktop
sgsgagsasgagsa.JPG

gopsa modi

unread,
Sep 16, 2021, 5:18:26 AM9/16/21
to PHP Desktop
bhai ise error solution mila kya
Reply all
Reply to author
Forward
0 new messages