Critical Error | Invalid require_once() call

[ad_1]

Hi guys,

your latest update (9.0.25) has a fatal error in it’s code, which makes the wordpress page fail to load.
I don’t know if this only affects me, if not, here is my fix.

Error log:
[11-Oct-2023 08:26:04 UTC] PHP Fatal error: require_once(): Failed opening required ‘/home/XXX/public_html/wp-content/plugins/wp-google-maps/includes/../class.selector-to-xpath.php’ (include_path=’.:/opt/alt/php73/usr/share/pear’) in /home/XXX/public_html/wp-content/plugins/wp-google-maps/includes/class.dom-element.php on line 8

I already found the issue and was able to solve this by editing the includes/class.dom-element.php

Issuer: Bad require_once() call in class.dom-element.php:15
require_once(plugin_dir_path(__FILE__) . ‘../class.selector-to-xpath.php’);

How have I fixed this?
require_once(plugin_dir_path(__FILE__) . ‘class.selector-to-xpath.php’);

  • This topic was modified 2 hours, 7 minutes ago by klein1.
  • This topic was modified 2 hours, 7 minutes ago by klein1. Reason: Formatting

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer