mundschenk-at / wp-typography

Improve your WordPress micro typography.
https://code.mundschenk.at/wp-typography/
Other
22 stars 3 forks source link

Fatal error - "call to undefined function", WP 5.8.3 with plugin 5.8.0 (5.8.1 fixes?) #304

Closed ChristopherW closed 2 years ago

ChristopherW commented 2 years ago

Issue Overview

I received an automated email advising that WordPress had detected a fatal error with wp-typography:

Error Details
=============
An error of type E_ERROR was caused in line 162 of the file /home/foobar/example.com/wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/check-wp-requirements/class-wp-requirements.php. Error message: Uncaught Error: Call to undefined function WP_Typography\Vendor\get_bloginfo() in /home/foobar/example.com/wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/check-wp-requirements/class-wp-requirements.php:162
Stack trace:
#0 /home/foobar/example.com/wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/check-wp-requirements/class-wp-requirements.php(101): WP_Typography\Vendor\Mundschenk\WP_Requirements->check_utf8_support()
#1 /home/foobar/example.com/wp-content/plugins/wp-typography/wp-typography.php(71): WP_Typography\Vendor\Mundschenk\WP_Requirements->check()
#2 /home/foobar/example.com/wp-content/plugins/wp-typography/wp-typography.php(82): WP_Typography\wp_typography_run()
#3 /home/foobar/example.com/wp-settings.php(409): include_once('/home/foobar...')
#4 /home/foobar/example.com/wp-config.php(92): require_once('/home/foobar...')
#5 /home/foobar/example.com/wp-load.php(50): require_once('/home/foobar...')
#6 /home/

Steps to Reproduce (for bugs)

  1. attempt to load the site.

WordPress version 5.8.3 Current theme: Primepress Child (version 1.0.2) Current plugin: wp-Typography (version 5.8.0) PHP version 7.3.27

Expected Behavior

The site should load.

Current Behavior

The site fatal errors. Attempting to open recovery mode results in a too_many_redirects error.

With WordPress in Recovery Mode, this additional info is available:



An error of type E_ERROR was caused in line 162 of the file /home/foobar/example.com/wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/check-wp-requirements/class-wp-requirements.php. Error message: Uncaught Error: Call to undefined function WP_Typography\Vendor\get_bloginfo() in /home/foobar/example.com/wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/check-wp-requirements/class-wp-requirements.php:162 Stack trace: #0 /home/foobar/example.com/wp-content/plugins/wp-typography/vendor-scoped/mundschenk-at/check-wp-requirements/class-wp-requirements.php(101): WP_Typography\Vendor\Mundschenk\WP_Requirements->check_utf8_support() #1 /home/foobar/example.com/wp-content/plugins/wp-typography/wp-typography.php(71): WP_Typography\Vendor\Mundschenk\WP_Requirements->check() #2 /home/foobar/example.com/wp-content/plugins/wp-typography/wp-typography.php(82): WP_Typography\wp_typography_run() #3 /home/foobar/example.com/wp-settings.php(409): include_once('/home/foobar...') #4 /home/foobar/example.com/wp-config.php(92): require_once('/home/foobar...') #5 /home/foobar/example.com/wp-load.php(50): require_once('/home/foobar...') #6 /home/```

However, WordPress also notified me that v5.8.1 of the plugin was available and I was able to auto-update. 
mundschenk-at commented 2 years ago

The issue is fixed in 5.8.1. If you updated to that and still get a crash, you will need to clear the PHP opcode cache.

mundschenk-at commented 2 years ago

Duplicate of #301