Title: Fatal error
Last modified: August 21, 2016

---

# Fatal error

 *  Resolved [tulatype](https://wordpress.org/support/users/tulatype/)
 * (@tulatype)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-992/)
 * Fatal error:
 * > require_once(): Failed opening required ‘/wck-template-api/wck-template-api.
   > php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/www/tulatype/
   > data/www/tulatype.ru/wp-content/plugins/wck-custom-fields-and-custom-post-types-
   > creator/wck.php on line 57
 * [http://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/](http://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/)

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

 *  Plugin Author [madalin.ungureanu](https://wordpress.org/support/users/madalinungureanu/)
 * (@madalinungureanu)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-992/#post-4333061)
 * Hi,
 * Sorry about that, there was a 5 minute period after I made the initial update
   in which I forgot to include that folder. All should be fixed now and working.
   
   Can you please download it again and sorry for the inconvenience!
 *  [randdusing](https://wordpress.org/support/users/randdusing/)
 * (@randdusing)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-992/#post-4333135)
 * I redownloaded and still get the issue. After updating line 57 in wck.php to **
   require_once(dirname(__FILE__).’/wck-template-api/wck-template-api.php’);**, 
   I was able to activate.
 *  [ultraloveninja](https://wordpress.org/support/users/ultraloveninja/)
 * (@ultraloveninja)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-992/#post-4333179)
 * Thanks!
 * Yeah, I went through the same procedure of re-downloading the plugin files again
   and it was still throwing the error.
 * randdusing fix worked for me.
 *  [ollybach](https://wordpress.org/support/users/ollybach/)
 * (@ollybach)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-992/#post-4333196)
 * same here:
 * original code in plugin:
 *     ```
       if( file_exists( dirname(__FILE__).'/wck-template-api/wck-template-api.php' ) )
       	require_once('/wck-template-api/wck-template-api.php');
       ```
   
 * probably should be
 *     ```
       if( file_exists( dirname(__FILE__).'/wck-template-api/wck-template-api.php' ) )
       	require_once( dirname(__FILE__).'/wck-template-api/wck-template-api.php');
       ```
   
 * i would have thought….
    (at least that fixed it for me…..how did you even ever
   get this to work with the original require_once there….?!)
 *  Plugin Author [madalin.ungureanu](https://wordpress.org/support/users/madalinungureanu/)
 * (@madalinungureanu)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-992/#post-4333234)
 * I’ve issued an update that will fix the error.
    I’m really sorry for my error
   and the inconvenience it may have caused you.
 * The error passed through because the development and testing was done on windows
   localhost and that require_once statement was processing as expected.
 * Lesson learned: test under unix as well before issuing an update

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

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

 * ![](https://ps.w.org/wck-custom-fields-and-custom-post-types-creator/assets/icon-
   256x256.png?rev=2257602)
 * [Custom Post Types and Custom Fields creator - WCK](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/)
 * [Active Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wck-custom-fields-and-custom-post-types-creator/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 5 replies
 * 5 participants
 * Last reply from: [madalin.ungureanu](https://wordpress.org/support/users/madalinungureanu/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-992/#post-4333234)
 * Status: resolved