An unexpected response was received from the server.
-
When i launch the compression of the images after some seconds i receive this message:
“An unexpected response was received from the server.”i press ok but then after some few seconds the message reappear..
The plugin seems to be work correctly.
the message is annoyingLet me know thanks
-
Can you please enable debugging mode, Please add following lines to wp-config.php just before where it says: /* That’s all, stop editing! Happy publishing. */
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_DISPLAY’, false );
define( ‘WP_DEBUG_LOG’, true );Then try to run the image compression again.
A debug.log file should be created inside wp-content folder,which should contain error information in it, Please share the file with us.
Thanks,
HarshadI see the same issue with your plugin aswell. Just not image compression. Also “Run Now” on preload and other things.
Both on Apache servers and LiteSpeed servers with different PHP versions.
No debug log is created.- This reply was modified 4 years, 1 month ago by Mortn.
this is the debug file log:
[26-Oct-2020 13:17:35 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:17:35 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:17:35 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:17:35 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:17:49 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:18:00 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:18:07 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:18:09 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:18:15 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:18:18 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:18:18 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:18:21 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:18:50 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:18:50 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:19:51 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46
[26-Oct-2020 13:21:05 UTC] PHP Notice: Undefined index: post_type in /var/www/wp-content/plugins/plugin-name/includes/Admin/Hooks.php on line 46i tried to test it again..
I have deleted the first debug.log file in the wp-content folder and i’ve retried to compress other images.. obviously the message is still shown but the log file is not created like Mortn (@hedloff) say..Let me know
ThanksCould you send me a copy of your server’s PHP Error log?
You can find this log through your web hosting control panel (typically cPanel). If you are unsure where to find the PHP Error log, you can ask your hosts to provide it.here is the debug file log:
https://www.dropbox.com/s/xhuerg3mje0vhz6/debug.log.txt?dl=0
I also tried to delete the content of debug.log.. the upload some images and then compress theme but nothing is written to the log file..
@guitarman01 the issue is that the MySQL server is unstable “PHP Warning: mysqli_query(): MySQL server has gone away” So you are seeing the message “An unexpected response was received from the server”.
Make sure your MySQL server is up and running.
Do you think i need to contact my hosting?
now in the debug file log there’s this line:
[27-Oct-2020 07:09:38 UTC] PHP Warning: mysqli_query(): Error reading result set’s header in /var/www/wp-includes/wp-db.php on line 2033[27-Oct-2020 20:09:21 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/worker/src/MWP/Action/IncrementalBackup/Stats.php on line 46
My Hosting “GoDaddy” says that is the plugin..
Let me know Thanks
@guitarman01 The warning is generated from the must user Godaddy plugin, Can you please try to disable other plugins one by one and then to re-run the compression of images and check if it helps to fix the issue?
Mu-plugins are must use plugin of wordpress..
I dont know how to disable these plugin..
I’ve already tried to rename the folder but after a few minutes abituer one “mu plugin” folder is generated.Let me know
Still getting this message:
An unexpected response was received from the server. More information has been logged in the browser console.
this time i’ve opened the browser console like the message says and these are the lines in the browser console:
Loading information about uncompressed images.
wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1 Information about uncompressed images loaded.
wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1 smush_manager_send_command AJAX parse error: error ()
wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1 Object
/wp-admin/admin-ajax.php?_fs_blog_admin=true:1 Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR
wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1 Loading information about uncompressed images.
wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1 Information about uncompressed images loaded.
wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1 smush_manager_send_command AJAX parse error: error ()
wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1 {readyState: 0, getResponseHeader: ?, getAllResponseHeaders: ?, setRequestHeader: ?, overrideMimeType: ?,?…}
jquery.js?ver=1.12.4-wp:4 POST https://mysite.it/wp-admin/admin-ajax.php?_fs_blog_admin=true net::ERR_HTTP2_PROTOCOL_ERROR 200
send @ jquery.js?ver=1.12.4-wp:4
ajax @ jquery.js?ver=1.12.4-wp:4
O @ wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1
a @ wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1
(anonimo) @ wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1
success @ wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1
i @ jquery.js?ver=1.12.4-wp:2
fireWith @ jquery.js?ver=1.12.4-wp:2
x @ jquery.js?ver=1.12.4-wp:4
c @ jquery.js?ver=1.12.4-wp:4
XMLHttpRequest.send (asincrona)
send @ jquery.js?ver=1.12.4-wp:4
ajax @ jquery.js?ver=1.12.4-wp:4
O @ wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1
(anonimo) @ wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1
dispatch @ jquery.js?ver=1.12.4-wp:3
r.handle @ jquery.js?ver=1.12.4-wp:3
wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1 Loading information about uncompressed images.
wposmush-3-1-4.min.js?ver=3.1.4.1603982168:1 Information about uncompressed images loaded.Please also let me know how to disable the mu-plugins
I’ve found the problem.
It was a plugin confoguration conflict..@guitarman01 Glad to hear the issue is now fixed ?? If you have any more questions, please feel free to write back to us.
I’m getting this error now:
PHP Notice: Undefined index: result in /var/www/wp-content/plugins/wp-optimize/cache/class-cache-commands.php on line 39
- The topic ‘An unexpected response was received from the server.’ is closed to new replies.