Fatal Error
-
Hi there, we have been getting a fatal error from the plugin. This has caused everything below the location section on an individual property page to stop loading. Using the debug I managed to trace it to this bit of code in includes/functions.php (37)
case ‘url’:
$formatted_value = sprintf( “%s“, esc_url( $value ), $value );
break;This seems to be causing an issue with a core WP file and throwing a fatal error. The issue is that when I remove these lines, the site breaks again when you release an updated version of the plugin.
Here is the first few lines from the debug file[29-Jun-2023 17:36:33 UTC] PHP Fatal error: Uncaught TypeError: ltrim(): Argument #1 ($string) must be of type string, array given in /homepages/12/d949202424/htdocs/clickandbuilds/MillerandGerrard/wp-includes/formatting.php:4415
Stack trace:0 /homepages/12/d949202424/htdocs/clickandbuilds/MillerandGerrard/wp-includes/formatting.php(4415): ltrim()
1 /homepages/12/d949202424/htdocs/clickandbuilds/MillerandGerrard/wp-content/plugins/estatik/includes/functions.php(38): esc_url()
The page I need help with: [log in to see the link]
- The topic ‘Fatal Error’ is closed to new replies.