Archived topic
Website crashed.... Any Idea what happened?
3 replies · Started by robert on November 30, 2021
hi,
my website has crashed... i was wondering if anyone could help?.. I have reinstalled the theme...
Fatal error: Uncaught Error: Class 'GeneratePress_Typography_Migration' not found in /home/customer/www/aranislands.ie/public_html/wp-content/themes/generatepress/inc/customizer/helpers.php:316 Stack trace: #0 /home/customer/www/aranislands.ie/public_html/wp-includes/class-wp-hook.php(303): generate_do_control_inline_scripts('') #1 /home/customer/www/aranislands.ie/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #2 /home/customer/www/aranislands.ie/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #3 /home/customer/www/aranislands.ie/public_html/wp-admin/customize.php(123): do_action('customize_contr...') #4 {main} thrown in /home/customer/www/aranislands.ie/public_html/wp-content/themes/generatepress/inc/customizer/helpers.php on line 316
Hi there,
Does this line exist in your installation?: https://github.com/tomusborne/generatepress/blob/3.1.0/functions.php#L92
If so, does this file exist?: https://github.com/tomusborne/generatepress/blob/3.1.0/inc/class-typography-migration.php
Hi Tom,
It turns out I have migration.php file but it is not included in the functions.php file. Should I add this line in? Why would this have not been included in the update?
Many thanks
Hi, after some investigation it turns out that I had uploaded an older version of functions.php (3.0.4) from my local dev because I recently added some new shortcodes for my client. I hadn't realised production was now at 3.1.0 and my local dev theme was out of date with prod. Thanks for the help with this!