Ultimate SEO Urls

error - Ultimate SEO Urls

error

by Omar_one » Wed Mar 19, 2025 6:05 pm

in those files
shop/notfound_404.php:20
templates/default/includes/pages/notfound_404.php:26

Code: Select all

require $Template->map_to_template
it should be

Code: Select all

require $Template->map


Code: Select all

PHP Deprecated:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/xxxx/public_html/shop/includes/apps/ultimate_seo_urls/page_modules/product_info.php on line 108
changing lines 106-111

Code: Select all

$final_text_array = array();
    foreach ( $text_array as $key => $text ) {
      if ( !is_null( trim( $text ) ) ) {
        $final_text_array[$key] = $text;
      }
    }
to this

Code: Select all

$final_text_array = array();
    foreach ($text_array as $key => $text) {
    // Check if $text is not null and the trimmed value is not an empty string
    if ($text !== null && trim($text) !== '') {
        $final_text_array[$key] = $text;
    }
}
this fix the issue

Br
Omar
Omar_one
Senior Contributor
Posts: 677
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Contact:

Re: error

by Piernas » Tue Mar 25, 2025 4:33 pm

Thank you, I'll update the addon with your fixes.
Piernas
Member
Posts: 98
Joined: Thu Mar 11, 2021 2:16 am
Phoenix Version:
Contact:

Re: error

by radhavallabh » Fri May 02, 2025 9:14 am

Piernas wrote:Thank you, I'll update the addon with your fixes.
Hi dear;
Will it work seamlessly with 1.1.0.2 as well?
Thank you inadvance;
Very Warm Regds.
radhavallabh
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Contact: