Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Disable your ad blocker to continue using our website.
Ultimate SEO Urls
Force www.mysite.com/ when www.mysite.com/index.php - Ultimate SEO Urls
by tessthepup » Wed Apr 26, 2023 6:24 pm
Hi,
When trying to use the option of 'Force
www.mysite.com/ when
www.mysite.com/index.php' the site breaks and this is the warning in the error log
[26-Apr-2023 19:18:53 Europe/London] PHP Warning: Undefined variable $Linker in /home/***/public_html/includes/apps/ultimate_seo_urls/main/validator.php on line 190
[26-Apr-2023 19:18:53 Europe/London] PHP Fatal error: Uncaught Error: Call to a member function build() on null in /home/***/public_html/includes/apps/ultimate_seo_urls/main/validator.php:190
Stack trace:
#0 /home/***/public_html/includes/apps/ultimate_seo_urls/main/validator.php(55): Usu_Validator->homePageRedirect()
#1 /home/***/public_html/includes/apps/ultimate_seo_urls/main/bootstrap.php(78): Usu_Validator->initiate()
#2 /home/***/public_html/includes/apps/ultimate_seo_urls/main/usu_main.php(106): usu_Bootstrap->bootStrapper()
#3 /home/***/public_html/includes/classes/usu_init.php(41): usu_Main->initiate()
#4 /home/***/public_html/includes/system/versioned/1.0.8.1/hooks.php(160): usu_init::i()
#5 /home/***/public_html/includes/application_top.php(30): hooks->generate()
#6 /home/***/public_html/index.php(13): require('/home/oliviasgi...')
#7 {main}
thrown in /home/***/public_html/includes/apps/ultimate_seo_urls/main/validator.php on line 190
-
tessthepup
- VIP Member
- Posts: 253
- Joined: Mon Mar 01, 2021 5:55 pm
-
Contact:
by Piernas » Mon May 01, 2023 1:47 am
It doesn't show up in the error log of my local setup. What version are you using? line 190 is a comment line on latest version:
Code: Select all
* @return mixed - bool false / void
-
Piernas
- Posts: 96
- Joined: Thu Mar 11, 2021 2:16 am
-
Contact:
by tessthepup » Mon May 01, 2023 10:56 am
Piernas wrote:It doesn't show up in the error log of my local setup. What version are you using? line 190 is a comment line on latest version:
Code: Select all
* @return mixed - bool false / void
Unfortunately I can not check now as I had to remove the addon and revert back to an older one by ***_mcs as I found the Google Search Console could not read the site and was throwing a 500 error but once removed the site started being indexed.
-
tessthepup
- VIP Member
- Posts: 253
- Joined: Mon Mar 01, 2021 5:55 pm
-
Contact:
by Denzel » Mon Nov 13, 2023 4:47 pm
Hi, I got the same error: Blank frontend and the following error-log:
Code: Select all
[13-Nov-2023 17:40:46 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to a member function build() on null in .../nazzalstraumhochzeit.de/includes/apps/ultimate_seo_urls/main/validator.php:194
Stack trace:
#0 .../nazzalstraumhochzeit.de/includes/apps/ultimate_seo_urls/main/validator.php(55): Usu_Validator->homePageRedirect()
#1 .../nazzalstraumhochzeit.de/includes/apps/ultimate_seo_urls/main/bootstrap.php(78): Usu_Validator->initiate()
#2 .../nazzalstraumhochzeit.de/includes/apps/ultimate_seo_urls/main/usu_main.php(106): usu_Bootstrap->bootStrapper()
#3 .../nazzalstraumhochzeit.de/includes/classes/usu_init.php(41): usu_Main->initiate()
#4 .../nazzalstraumhochzeit.de/includes/system/versioned/1.0.8.1/hooks.php(160): usu_init::i()
#5 .../nazzalstraumhochzeit.de/includes/application_top.php(30): hooks->generate()
#6 .../nazzalstraumhochzeit.de/index.php(13): require('/homepages/1/d6...')
#7 {main}
thrown in .../nazzalstraumhochzeit.de/includes/apps/ultimate_seo_urls/main/validator.php on line 194
Code: Select all
$this->redirect( str_replace( 'index.php', '', htmlspecialchars_decode( $Linker->build( 'index.php' ) ) ) );
I'm on Phoenix V1.0.8.20 PHP 8.2 and USU 3.0.7 any clues ?
Regards,
Denzel
-
Denzel
- VIP Member
- Posts: 98
- Joined: Sat Oct 31, 2020 7:22 pm
-
Contact:
by Denzel » Mon Nov 13, 2023 4:59 pm
Allready got it: The expected line 194 in ../includes/apps/ultimate_seo_urls/main/validator.php should be:
Code: Select all
$this->redirect( str_replace( 'index.php', '', htmlspecialchars_decode( $GLOBALS['Linker']->build( 'index.php' ) ) ) );
It's necessary to use $GLOBALS['Linker']->build()
Regards,
Denzel
-
Denzel
- VIP Member
- Posts: 98
- Joined: Sat Oct 31, 2020 7:22 pm
-
Contact:
by tessthepup » Tue Nov 28, 2023 6:46 pm
Denzel wrote:Allready got it: The expected line 194 in ../includes/apps/ultimate_seo_urls/main/validator.php should be:
Code: Select all
$this->redirect( str_replace( 'index.php', '', htmlspecialchars_decode( $GLOBALS['Linker']->build( 'index.php' ) ) ) );
It's necessary to use $GLOBALS['Linker']->build()
Regards,
Denzel
Hi Denzel, I just stumbled across your post and can confirm it works for me
One little problem I have found is that the admin logo link now does not work and presents a blank page instead of the admin/index.php
-
tessthepup
- VIP Member
- Posts: 253
- Joined: Mon Mar 01, 2021 5:55 pm
-
Contact: