Title: errors after moving server
Last modified: August 21, 2016

---

# errors after moving server

 *  Resolved [haleeben](https://wordpress.org/support/users/haleeben/)
 * (@haleeben)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/errors-after-moving-server-2/)
 * I am getting errors after moving from a server that had finfo: Missing to a server
   that has finfo: OK
 * See [HERE](http://pastebin.com/866uCTJY) for errors
 * See [HERE](http://pastebin.com/bpbc127i) for Debug info
 * I’ve disabled the plugin and even deleted and reinstalled but still get the errors.
 * [http://wordpress.org/plugins/ewww-image-optimizer/](http://wordpress.org/plugins/ewww-image-optimizer/)

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

 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/errors-after-moving-server-2/#post-4411032)
 * That’s an error with your php configuration somewhere. Either the mime magic 
   database is missing, php doesn’t have permissions to access it, or php needs 
   to be told to look somewhere else. I’ve never had that happen before, is this
   on shared hosting, vps, dedicated server? What OS?
 *  Thread Starter [haleeben](https://wordpress.org/support/users/haleeben/)
 * (@haleeben)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/errors-after-moving-server-2/#post-4411064)
 * Shared host, Linux.
 * My provider is Site5.com
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/errors-after-moving-server-2/#post-4411112)
 * Then I would contact your webhost, they have something misconfigured (unless 
   you are using your own custom php.ini).
 *  Thread Starter [haleeben](https://wordpress.org/support/users/haleeben/)
 * (@haleeben)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/errors-after-moving-server-2/#post-4411267)
 * I contacted the webhost and found the location for the magic database is usr/
   share/magic
    not usr/share/misc/magic
 * Where do I need to change this?
 *  Thread Starter [haleeben](https://wordpress.org/support/users/haleeben/)
 * (@haleeben)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/errors-after-moving-server-2/#post-4411294)
 * So my host found a fix for this problem but it’s not a very good one as it changes
   line 465 in the ewww-image-optimizer.php file from this
    `$finfo = finfo_open(
   FILEINFO_MIME);` to this `$finfo = finfo_open(FILEINFO_MIME, '/usr/share/magic');`
 * it solves the problem but it will get overridden with the next update.
 * and after reading the php docs for the finfo_open() function and it says this
   for the second parameter
 * “Name of a magic database file, usually something like /path/to/magic.mime. **
   If not specified, the MAGIC environment variable is used.** If the environment
   variable isn’t set, then PHP’s bundled magic database will be used. Passing NULL
   or an empty string will be equivalent to the default value.”
 * I checked $SERVER[‘MAGIC’] and it is NULL, is this why I’m getting the error?
 * This is all a bit beyond me.
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/errors-after-moving-server-2/#post-4411310)
 * That is possible. Can you create a file with this:
 * `<?php phpinfo(); ?>`
 * and post the link to it?
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/errors-after-moving-server-2/#post-4411344)
 * Did you figure out what the problem was?
 *  Thread Starter [haleeben](https://wordpress.org/support/users/haleeben/)
 * (@haleeben)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/errors-after-moving-server-2/#post-4411345)
 * Sorry I didn’t get back to you earlier.
    The host admitted that after further
   investigation there is a problem with the the setup. Here is what they said
 * “it might be indeed related that fileinfo is not yet fully enabled on this shared
   server, and I’ve checked also with our systems team regarding this extension 
   and got the confirmation that the fileinfo will be soon re-deployed via RPM on
   all server in our fleet, until that the additional specification over to /usr/
   share/magic is required.”
 * The strange thing is that I have reseller account and around 10 sites on the 
   same server and only some of them show the error but other ones are fine and 
   one site that did have the error is now working correctly, strange.
 * Anyway here is the [phpinfo](http://ebenhale.com/fi.php) for one of the sites
   that still has the error.
 *  Plugin Author [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/errors-after-moving-server-2/#post-4411351)
 * Yeah, that’s definitely a configuration error on their end. I don’t see anything
   on your phpinfo that indicates the /usr/share/misc/magic path. However, PHP throws
   a warning at the very bottom of that page which would indicate it is indeed mis-
   configured.

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

The topic ‘errors after moving server’ is closed to new replies.

 * ![](https://ps.w.org/ewww-image-optimizer/assets/icon-256x256.png?rev=1582276)
 * [EWWW Image Optimizer](https://wordpress.org/plugins/ewww-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ewww-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ewww-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ewww-image-optimizer/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [nosilver4u](https://wordpress.org/support/users/nosilver4u/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/errors-after-moving-server-2/#post-4411351)
 * Status: resolved