Title: PHP Fatal error
Last modified: March 20, 2019

---

# PHP Fatal error

 *  Resolved [joyryde](https://wordpress.org/support/users/joyryde/)
 * (@joyryde)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-166/)
 * We have this error repeated every day in our error logs:
 * [20-Mar-2019 09:47:25 UTC] PHP Fatal error: Uncaught Error: Call to a member 
   function find() on boolean in /wp-content/plugins/gallery-custom-links/mgcl_core.
   php:207
    Stack trace: #0 [internal function]: Meow_Gallery_Custom_Links->linkify(‘
   <?xml version=”…’, 9) #1 /wp-includes/functions.php(4212): ob_end_flush() #2 /
   wp-includes/class-wp-hook.php(286): wp_ob_end_flush_all(”) #3 /wp-includes/class-
   wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 /wp-includes/plugin.
   php(465): WP_Hook->do_action(Array) #5 /wp-includes/load.php(788): do_action(‘
   shutdown’) #6 [internal function]: shutdown_action_hook() #7 {main} thrown in/
   wp-content/plugins/gallery-custom-links/mgcl_core.php on line 207

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

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-166/#post-11352722)
 * Hi,
 * In the file mgcl_core.php, in the function “linkify”, right before “$hasChanges
   = false;”, can you try to add the following code?
 *     ```
       if ( empty( $html ) || is_bool( $html ) ) {
         return $buffer;
       }
       ```
   
 *  Thread Starter [joyryde](https://wordpress.org/support/users/joyryde/)
 * (@joyryde)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-166/#post-11353507)
 * I’ve made the changes and will report back in 24 hours. We still have the issue
   where the plugin is creating fake URL’s that we can only fix by creating 301 
   redirects for each one.
 *  Thread Starter [joyryde](https://wordpress.org/support/users/joyryde/)
 * (@joyryde)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-166/#post-11358521)
 * No errors in the last 24 hours, so you might want to update the plugin with this
   new code; seems to have resolved the issue!
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-166/#post-11369515)
 * Perfect 🙂 I pushed it as 1.1.3.

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

The topic ‘PHP Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/gallery-custom-links/assets/icon-256x256.png?rev=2588900)
 * [Gallery Custom Links](https://wordpress.org/plugins/gallery-custom-links/)
 * [Support Threads](https://wordpress.org/support/plugin/gallery-custom-links/)
 * [Active Topics](https://wordpress.org/support/plugin/gallery-custom-links/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gallery-custom-links/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gallery-custom-links/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/php-fatal-error-166/#post-11369515)
 * Status: resolved