Title: Fatal errors and Deprecated: Function create_function() &#8230;.
Last modified: July 5, 2023

---

# Fatal errors and Deprecated: Function create_function() ….

 *  [imenhard](https://wordpress.org/support/users/imenhard/)
 * (@imenhard)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-errors-and-deprecated-function-create_function/)
 * After a long time I want to login to my website but it doesn’t even load any 
   more. There are many errors shown and I don’t have a clue what it is. Can you
   help me?
 * >  
   > **Deprecated**: Function create_function() is deprecated in **/www/htdocs/
   > w00fd541/wp-includes/pomo/translations.php** on line **208****Deprecated**:
   > Function create_function() is deprecated in **/www/htdocs/w00fd541/wp-includes/
   > pomo/translations.php** on line **208****Deprecated**: Function get_magic_quotes_gpc()
   > is deprecated in **/www/htdocs/w00fd541/wp-includes/load.php** on line **649****
   > Deprecated**: Function create_function() is deprecated in **/www/htdocs/w00fd541/
   > wp-includes/pomo/translations.php** on line **208****Notice**: Trying to access
   > array offset on value of type bool in **/www/htdocs/w00fd541/wp-includes/theme.
   > php** on line **2246****Deprecated**: Function create_function() is deprecated
   > in **/www/htdocs/w00fd541/wp-includes/pomo/translations.php** on line **208****
   > Deprecated**: Function get_magic_quotes_gpc() is deprecated in **/www/htdocs/
   > w00fd541/wp-includes/formatting.php** on line **4371****Deprecated**: Function
   > create_function() is deprecated in **/www/htdocs/w00fd541/wp-includes/pomo/
   > translations.php** on line **208****Deprecated**: Function create_function()
   > is deprecated in **/www/htdocs/w00fd541/wp-includes/pomo/translations.php**
   > on line **208****Fatal error**: Uncaught Error: Call to undefined function 
   > register_post_meta() in /www/htdocs/w00fd541/wp-content/plugins/google-analytics-
   > for-wordpress/includes/admin/meta-box.php:46 Stack trace: #0 /www/htdocs/w00fd541/
   > wp-includes/class-wp-hook.php(298): MI_MetaBox->register_meta(”) #1 /www/htdocs/
   > w00fd541/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)#
   > 2 /www/htdocs/w00fd541/wp-includes/plugin.php(453): WP_Hook->do_action(Array)#
   > 3 /www/htdocs/w00fd541/wp-settings.php(448): do_action(‘init’) #4 /www/htdocs/
   > w00fd541/wp-config.php(90): require_once(‘/www/htdocs/w00…’) #5 /www/htdocs/
   > w00fd541/wp-load.php(37): require_once(‘/www/htdocs/w00…’) #6 /www/htdocs/w00fd541/
   > wp-blog-header.php(13): require_once(‘/www/htdocs/w00…’) #7 /www/htdocs/w00fd541/
   > index.php(17): require(‘/www/htdocs/w00…’) #8 {main} thrown in **/www/htdocs/
   > w00fd541/wp-content/plugins/google-analytics-for-wordpress/includes/admin/meta-
   > box.php** on line **46**
    -  This topic was modified 2 years, 10 months ago by [imenhard](https://wordpress.org/support/users/imenhard/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-errors-and-deprecated-function-create_function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [M. Nasikin](https://wordpress.org/support/users/silversh/)
 * (@silversh)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-errors-and-deprecated-function-create_function/#post-16872014)
 * did you perhaps using older version of wordpress, and using PHP 8.0 and beyond?
 * if so, try to change your PHP version to 5.6-ea
 *  Thread Starter [imenhard](https://wordpress.org/support/users/imenhard/)
 * (@imenhard)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-errors-and-deprecated-function-create_function/#post-16873888)
 * Changed to PHP 5.6, but still get those errors. Any further ideas?
 *  [M. Nasikin](https://wordpress.org/support/users/silversh/)
 * (@silversh)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-errors-and-deprecated-function-create_function/#post-16875200)
 * if still error, try deactivate google analytics for wordpress, or reinstall wordpress
   core may help
 * if you want to use analytics, maybe you should try Site Kit plugin by google
    -  This reply was modified 2 years, 10 months ago by [M. Nasikin](https://wordpress.org/support/users/silversh/).
 *  Thread Starter [imenhard](https://wordpress.org/support/users/imenhard/)
 * (@imenhard)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-errors-and-deprecated-function-create_function/#post-16875934)
 * Well now “only” this error appears:
 * > **Fatal error**: Call to undefined function register_post_meta() in **/www/
   > htdocs/w00fd541/wp-content/plugins/google-analytics-for-wordpress/includes/
   > admin/meta-box.php** on line **46**
 * How can I deactivate Google Analytics without login into my wordpress backend?
 *  [M. Nasikin](https://wordpress.org/support/users/silversh/)
 * (@silversh)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-errors-and-deprecated-function-create_function/#post-16875998)
 * go to your wordpress installation folder, then open /wp-content/plugins
 * search for **google-analytics-for-wordpress** folder, then rename it. Eg. **google-
   analytics-for-wordpress-old**
 *  Thread Starter [imenhard](https://wordpress.org/support/users/imenhard/)
 * (@imenhard)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-errors-and-deprecated-function-create_function/#post-16876953)
 * Great – it works!! 
   After renaming the google-analytics folder, the site loads
   again as usual.Thank you so much for your advices!

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

The topic ‘Fatal errors and Deprecated: Function create_function() ….’ is closed
to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [imenhard](https://wordpress.org/support/users/imenhard/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/fatal-errors-and-deprecated-function-create_function/#post-16876953)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
