Title: Fetal Error when activated
Last modified: August 21, 2016

---

# Fetal Error when activated

 *  [pirate988](https://wordpress.org/support/users/pirate988/)
 * (@pirate988)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fetal-error-when-activated/)
 * Hello,
    I was trying your plugin and whenever i activate it i get this error
 * Fatal error: Call to undefined function yit_add_thumbnails_slider_direction()
   in <WP-content path>/plugins/yith-woocommerce-zoom-magnifier/init.php on line
   47
 * after that I’m unable to access the back-end or front-end and I’ll have to delete
   the plugin using the FTP access in order to regain access to my site.
    Any suggestion?
 * [https://wordpress.org/plugins/yith-woocommerce-zoom-magnifier/](https://wordpress.org/plugins/yith-woocommerce-zoom-magnifier/)

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

 *  [trapuh](https://wordpress.org/support/users/trapuh/)
 * (@trapuh)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fetal-error-when-activated/#post-4707813)
 * Hi,
 * Experiencing the same error and looking for a way to sort it out ! Have you found
   any solution for this ? I’ll let you know as soon as i manage to sort it out …
   or not !
 * Thanks, best regards!
 *  [trapuh](https://wordpress.org/support/users/trapuh/)
 * (@trapuh)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fetal-error-when-activated/#post-4707818)
 * Hi !
 * Just comment out that line, or alternatively, try moving line 47 ( the call to
   yit_add_thumbnails_slider_direction() ) to after these lines at the bottom of
   the init.php file :
 *  global $yith_wcmg;
    $yith_wcmg = new YITH_WCMG(); /* insert call for add_thumbnails_slider_direction
   here () */
 * Haven’t tried the last method but should work. Commenting out that line definitely
   works! 🙂
 *  Thread Starter [pirate988](https://wordpress.org/support/users/pirate988/)
 * (@pirate988)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/fetal-error-when-activated/#post-4707827)
 * Thank you trapuh,
    I tried to move that line to the end of the function and it
   worked. I still don’t know what’s wrong and why this issue is not more common
   Thanks a lot
 *  [Carstenm](https://wordpress.org/support/users/carstenm-1/)
 * (@carstenm-1)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fetal-error-when-activated/#post-4707911)
 * hi and hello,
    i have the same problem:
 * Fatal error: Call to undefined function yit_add_thumbnails_slider_direction()
   in /home/content/53/11316553/html/……../wp-content/plugins/yith-woocommerce-zoom-
   magnifier/init.php on line 47
 * i dont now how to fix that problem trapuh, PLEASE can you explain one more time
   for dummies how it works.
 * best regards
 *  Thread Starter [pirate988](https://wordpress.org/support/users/pirate988/)
 * (@pirate988)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fetal-error-when-activated/#post-4707913)
 * Hello Carstenm,
    download the zip archive to your laptop. after that open the
   zip archive and you will find a file called init.php open that file and go to
   the line number 47 add_option( ‘yith_wcmg_slider_direction’, apply_filters( ‘
   yith_wcmg_slider_direction’, ‘left’ ) );
 * and move it to the end of the function before the } and after these two lines
   
   global $yith_wcmg; $yith_wcmg = new YITH_WCMG(); after that save the file
 * Finally, go back to your wordpress back-end and upload the modified zip file
 *  [Carstenm](https://wordpress.org/support/users/carstenm-1/)
 * (@carstenm-1)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/fetal-error-when-activated/#post-4707918)
 * thank you pirate… for fast replay… yes the problem is fixed now
    kindly

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

The topic ‘Fetal Error when activated’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-zoom-magnifier/assets/icon.svg?rev=3055439)
 * [YITH WooCommerce Product Gallery & Image Zoom](https://wordpress.org/plugins/yith-woocommerce-zoom-magnifier/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-zoom-magnifier/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-zoom-magnifier/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-zoom-magnifier/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-zoom-magnifier/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-zoom-magnifier/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Carstenm](https://wordpress.org/support/users/carstenm-1/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/fetal-error-when-activated/#post-4707918)
 * Status: not resolved