Title: Stuck on optimizing, php error
Last modified: September 20, 2018

---

# Stuck on optimizing, php error

 *  Resolved [ihoneyman](https://wordpress.org/support/users/ihoneyman/)
 * (@ihoneyman)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/stuck-on-optimizing-php-error/)
 * Hi, I installed resmush.it but can’t get it to work. If I optimize a simgle image,
   it just says “optimizing” and stays there. If I click Optimize All Pictures, 
   it gets stuck on “Examining existing attachments”. In that case I get an error
   in the js console:
 * [Error] Failed to load resource: the server responded with a status of 404 (HTTP/
   2.0 404) (material.min.js.map, line 0) [https://kks.axt.mybluehost.me/wp-content/plugins/wp-media-folder/assets/js/modal-dialog/material.min.js.map](https://kks.axt.mybluehost.me/wp-content/plugins/wp-media-folder/assets/js/modal-dialog/material.min.js.map)
 * and a line in the PHP error log:
 * PHP Warning: Error while sending QUERY packet. PID=825639 in /home3/kksaxtmy/
   public_html/wp-includes/wp-db.php on line 1924
 * Can you help? Thank you!!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [ihoneyman](https://wordpress.org/support/users/ihoneyman/)
 * (@ihoneyman)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/stuck-on-optimizing-php-error/#post-10708768)
 * Also, here is line 1923 – 1928 of the wp-db.php file:
 *  if ( ! empty( $this->dbh ) && $this->use_mysqli ) {
    $this->result = mysqli_query(
   $this->dbh, $query ); } elseif ( ! empty( $this->dbh ) ) { $this->result = mysql_query(
   $query, $this->dbh ); } $this->num_queries++;
 *  [Christian Zimpel](https://wordpress.org/support/users/christianzimpel/)
 * (@christianzimpel)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/stuck-on-optimizing-php-error/#post-10710439)
 * I have the Same problem…
 *  Plugin Contributor [reSmush.it](https://wordpress.org/support/users/resmushit/)
 * (@resmushit)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/stuck-on-optimizing-php-error/#post-10715378)
 * Hi Guys,
 * Your problem was due to an availaibility of our service. We had a big issue this
   last few days due to a DDOS attack, which should be fixed right now. This was
   the biggest unavailability of our API since the creation (3 days), and we’re 
   currently working on it to avoid this kind of problems in the future.
 * Thanks for your patience,
    Cheers, Charles
 *  Thread Starter [ihoneyman](https://wordpress.org/support/users/ihoneyman/)
 * (@ihoneyman)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/stuck-on-optimizing-php-error/#post-10718477)
 * Sucks that people are attacking you. Works now, thank you for the reply.
 * Ian

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Stuck on optimizing, php error’ is closed to new replies.

 * ![](https://ps.w.org/resmushit-image-optimizer/assets/icon-256x256.png?rev=3049668)
 * [reSmush.it : The original free image compressor and optimizer plugin](https://wordpress.org/plugins/resmushit-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/resmushit-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/resmushit-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/resmushit-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/resmushit-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/resmushit-image-optimizer/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [ihoneyman](https://wordpress.org/support/users/ihoneyman/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/stuck-on-optimizing-php-error/#post-10718477)
 * Status: resolved