Site experiencing a technical issue
-
Getting a type E_COMPILE_ERROR was caused in line 902
-
Hey @sociallyfound !
Thanks for your message.
Can you please share the full error message and your WordPress + PHP version?
Regards,
Matthew 🙂Thanks Matthias
Error message: An error of type E_COMPILE_ERROR was caused in line 902 of the file /home/vtrporga/public_html/wp-content/plugins/real-media-library/vendor/devowl-wp/utils/src/Assets.php. Error message: require_once(): Failed opening required ‘/home/vtrporga/public_html/wp-includes/Requests/Iri.php’ (include_path=’.:/opt/alt/php73/usr/share/pear’)
WordPress version – 5.9.1
PHP version – 7.3.33
Can you please check if the file
/home/vtrporga/public_html/wp-includes/Requests/Iri.phpexists? What is your Real Media Library version?Just hit the same problem.
In a clean install of WP (idk if it changed recently) its IRI.php (All caps.)
Same with another file called. Its IDNAEncoder.
The plugin calls the wrong file and crashes if above PHP 5.9.
My quick dirty fix was to comment the first half of the IF on /wp-content/plugins/real-media-library/vendor/devowl-wp/utils/src/Assets.php Line 898
public function getAsciiUrl($url) { global $wp_version; /*if (\version_compare($wp_version, '5.9.0', '>=') || \strpos($wp_version, '5.9-alpha') === 0) { if (!\class_exists(\WpOrg\Requests\Iri::class)) { require_once ABSPATH . WPINC . '/Requests/Iri.php'; } if (!\class_exists(\WpOrg\Requests\IdnaEncoder::class)) { require_once ABSPATH . WPINC . '/Requests/IdnaEncoder.php'; } $iri = new \WpOrg\Requests\Iri($url); $iri->host = \WpOrg\Requests\IdnaEncoder::encode($iri->host); return $iri->uri; } else {*/ if (!\class_exists('Requests_IRI')) { require_once ABSPATH . WPINC . '/Requests/IRI.php'; } if (!\class_exists('Requests_IDNAEncoder')) { require_once ABSPATH . WPINC . '/Requests/IDNAEncoder.php'; } $iri = new \Requests_IRI($url); $iri->host = \Requests_IDNAEncoder::encode($iri->host); return $iri->uri; //} }In fact, this is fixed in the current version of the code canyon version of the plugin.
Hey @frederic-pilon !
Thanks for your follow-up!
Yeah, the bug was fixed in mid of December, also for the free version: https://plugins.trac.ww.wp.xz.cn/browser/real-media-library-lite/trunk/vendor/devowl-wp/utils/src/Assets.php#L934
@sociallyfound What version of Real Media Library are you using and can you please try to update?
The topic ‘Site experiencing a technical issue’ is closed to new replies.