[wp-trac] [WordPress Trac] #41092: PHP Fatal error: Uncaught Error: Call to undefined function get_bloginfo
WordPress Trac
noreply at wordpress.org
Wed Sep 5 13:38:21 UTC 2018
#41092: PHP Fatal error: Uncaught Error: Call to undefined function get_bloginfo
-------------------------------------------------+-------------------------
Reporter: parsmizban | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Bootstrap/Load | Version: 4.8
Severity: critical | Resolution:
Keywords: has-patch needs-testing reporter- | Focuses: rtl
feedback |
-------------------------------------------------+-------------------------
Comment (by shazdeh):
This happens in `wp-includes/load.php::wp_check_php_mysql_versions()`
function. The function itself is called in wp-settings.php, before any of
the general functions are loaded, so if there is an error (for example the
"Your server is running PHP version %1$s but WordPress %2$s requires at
least %3$s." message) that needs to be translated, the function generates
the fatal error instead of showing the actual error message as intended.
I think this can be replicated easily if you edit this line:
{{{#!php
if ( version_compare( $required_php_version, $php_version, '>' ) ) {
}}}
And change the condition to `true`, simulating what would happen if those
conditions were true.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41092#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list