Ultimate SEO Urls

[1.0.8.20]Ultimate SEO Urls problem using php8.0 - Ultimate SEO Urls

[1.0.8.20]Ultimate SEO Urls problem using php8.0

by bitit » Tue Nov 21, 2023 10:04 am

hi every one , when i set Ultimate SEO Urls to Force www.mysite.com/index.php to 301 redirect to www.mysite.com/
the admin dashboard have a problem,
original url included index..php and return a blank page, for see the dashboard i need to remove index.it from
mysite.com/admin/index.php

and in the log i have the following error:

Code: Select all

	mod_fcgid: stderr: PHP Warning: Undefined variable $PHP_SELF in /var/www/vhosts/mysite.it/httpdocs/shoes/includes/apps/ultimate_seo_urls/canonical_modules/stock_pages.php on line 18
bitit
Member
Posts: 84
Joined: Thu Jun 24, 2021 4:00 pm
Phoenix Version:
Contact:

Re: [1.0.8.20]Ultimate SEO Urls problem using php8.0

by bitit » Wed Jan 03, 2024 5:43 pm

ok, i have a others lot of problems

Google find a error 500 with this log

Code: Select all

[Wed Jan 03 09:34:26.710767 2024] [fcgid:warn] [pid 823643] [client 66.249.70.4:63975] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Undefined constant "SID" in /var/www/vhosts/mysite.it/httpdocs/catalog/includes/classes/usu_init.php:36
[Wed Jan 03 09:34:26.710805 2024] [fcgid:warn] [pid 823643] [client 66.249.70.4:63975] mod_fcgid: stderr: Stack trace:
[Wed Jan 03 09:34:26.710809 2024] [fcgid:warn] [pid 823643] [client 66.249.70.4:63975] mod_fcgid: stderr: #0 /var/www/vhosts/mysite.it/httpdocs/catalog/includes/system/versioned/1.0.8.1/hooks.php(160): usu_init::i()
[Wed Jan 03 09:34:26.710813 2024] [fcgid:warn] [pid 823643] [client 66.249.70.4:63975] mod_fcgid: stderr: #1 /var/www/vhosts/mysite.it/httpdocs/catalog/includes/application_top.php(30): hooks->generate()
[Wed Jan 03 09:34:26.710816 2024] [fcgid:warn] [pid 823643] [client 66.249.70.4:63975] mod_fcgid: stderr: #2 /var/www/vhosts/mysite.it/httpdocs/catalog/product_info.php(13): require('...')
[Wed Jan 03 09:34:26.710820 2024] [fcgid:warn] [pid 823643] [client 66.249.70.4:63975] mod_fcgid: stderr: #3 {main}
[Wed Jan 03 09:34:26.710823 2024] [fcgid:warn] [pid 823643] [client 66.249.70.4:63975] mod_fcgid: stderr:   thrown in /var/www/vhosts/mysite.it/httpdocs/catalog/includes/classes/usu_init.php on line 36
usu_init.php:36 have :

Code: Select all

  ->setVar( 'sid', SID ) 
inside the function :

Code: Select all

  usu_Main::i()->setVar( 'version', usu_Main::$usu_version)
                     ->setVar( 'request_type', $GLOBALS['request_type'] )
                     ->setVar( 'session_started', $GLOBALS['session_started']?? null ) // cambio 1.0.8.19
                     ->setVar( 'sid', SID ) // cambio 1.0.8.19
                     ->setVar( 'languages_id', $_SESSION['languages_id'] )
                     ->setVar( 'language', isset ($_SESSION['language']) ? $_SESSION['language'] : DEFAULT_LANGUAGE)
                     ->setVar( 'filename', basename($GLOBALS['PHP_SELF']) )
                     ->setvar( 'filepath' , pathinfo($GLOBALS['PHP_SELF'])['dirname'])
                     ->initiate( ( isset( $GLOBALS['$lng'] ) && ( $GLOBALS['$lng'] instanceof language ) ) ? $GLOBALS['$lng'] : [], $_SESSION['languages_id'], $_SESSION['language'] );
 

And log:

Code: Select all

	mod_fcgid: stderr: PHP Warning: Undefined variable $PHP_SELF in /var/www/vhosts/mysite.it/httpdocs/catalog/includes/apps/ultimate_seo_urls/canonical_modules/specials.php on line 16, referer: http://m.facebook.com

	mod_fcgid: stderr: PHP Warning: Undefined variable $PHP_SELF in /var/www/vhosts/mysite.it/httpdocs/catalog/includes/apps/ultimate_seo_urls/canonical_modules/stock_pages.php on line 18, referer: http://m.facebook.com
those last, of sure, also with php 7.4.x

Enrico
bitit
Member
Posts: 84
Joined: Thu Jun 24, 2021 4:00 pm
Phoenix Version:
Contact:

Re: [1.0.8.20]Ultimate SEO Urls problem using php8.0

by bitit » Wed Jan 03, 2024 6:14 pm

other problem :

Code: Select all

 PHP Fatal error:  Uncaught Error: Call to undefined function ctype_alpha() in /archivio/html/mysite.it/catalog/includes/apps/ultimate_seo_urls/main/bootstrap.php:377\nStack trace:\n#0 /archivio/html/mysite.it/catalog/includes/apps/ultimate_seo_urls/main/bootstrap.php(70): usu_Bootstrap->actionMultiLanguageSupport()\n#1 /archivio/html/mysite.it/catalog/includes/apps/ultimate_seo_urls/main/usu_main.php(106): usu_Bootstrap->bootStrapper()\n#2 /archivio/html/mysite.it/catalog/includes/classes/usu_init.php(41): usu_Main->initiate()\n#3 /archivio/html/mysite.it/catalog/includes/system/versioned/1.0.8.1/hooks.php(160): usu_init::i()\n#4 /archivio/html/mysite.it/catalog/includes/application_top.php(30): hooks->generate()\n#5 /archivio/html/mysite.it/catalog/product_info.php(13): require('...')\n#6 {main}\n  thrown in /archivio/html/mysite.it/catalog/includes/apps/ultimate_seo_urls/main/bootstrap.php on line 377, referer: http://localhost/mysite.it/catalog/index.php/en
ctype_alpha isn't present in the core and in other parts of ultimate SEO URL

enrico
bitit
Member
Posts: 84
Joined: Thu Jun 24, 2021 4:00 pm
Phoenix Version:
Contact:

Re: [1.0.8.20]Ultimate SEO Urls problem using php8.0

by bitit » Thu Jan 04, 2024 3:31 pm

bitit wrote: And log:

Code: Select all

	mod_fcgid: stderr: PHP Warning: Undefined variable $PHP_SELF in /var/www/vhosts/mysite.it/httpdocs/catalog/includes/apps/ultimate_seo_urls/canonical_modules/specials.php on line 16, referer: http://m.facebook.com

	mod_fcgid: stderr: PHP Warning: Undefined variable $PHP_SELF in /var/www/vhosts/mysite.it/httpdocs/catalog/includes/apps/ultimate_seo_urls/canonical_modules/stock_pages.php on line 18, referer: http://m.facebook.com
ok, this, i have fixed in this way, that seem work :

in all file inside : /includes/apps/ultimate_seo_urls/canonical_modules/

i have add on the start : $PHP_SELF=$_SERVER['PHP_SELF'];
bitit
Member
Posts: 84
Joined: Thu Jun 24, 2021 4:00 pm
Phoenix Version:
Contact:

Re: [1.0.8.20]Ultimate SEO Urls problem using php8.0

by bitit » Fri Jan 05, 2024 8:57 am



in all file inside : /includes/apps/ultimate_seo_urls/canonical_modules/

i have add on the start : $PHP_SELF=$_SERVER['PHP_SELF'];
[/quote]

ok this can create some lop problem so i have change in :

Code: Select all

 if (isset($PHP_SELF)){$PHP_SELF=$PHP_SELF;}else {$PHP_SELF=''; }
seem work better

Enrico
bitit
Member
Posts: 84
Joined: Thu Jun 24, 2021 4:00 pm
Phoenix Version:
Contact: