Ultimate SEO Urls
Use of undefined constant - Ultimate SEO Urls
Use of undefined constant
Phoenix 1.0.8.19 USU 3.0.7 PHP 7.4
Getting a lot of:
PHP Warning: Use of undefined constant SID - assumed 'SID' (this will throw an Error in a future version of PHP) in /home/****/public_html/includes/classes/usu_init.php on line 36
Getting a lot of:
PHP Warning: Use of undefined constant SID - assumed 'SID' (this will throw an Error in a future version of PHP) in /home/****/public_html/includes/classes/usu_init.php on line 36
Live shop Phoenix 1.0.9.0 on PHP 8.0
- mhsuffolk
- VIP Member
- Posts: 148
- Joined: Sat Oct 26, 2019 9:13 am
- Contact:
Re: Use of undefined constant
try to change line 36
to
to
Code: Select all
->setVar( 'sid', 'SID' ) // cambio 1.0.8.19
-
- VIP Member
- Posts: 483
- Joined: Fri Oct 25, 2019 5:06 pm
- Contact:
Re: Use of undefined constant
Thank you for the suggestion. Unfortunately this adds SID=&SID to the end of every rewritten URLOmar_one wrote:try to change line 36
toCode: Select all
->setVar( 'sid', 'SID' ) // cambio 1.0.8.19
Live shop Phoenix 1.0.9.0 on PHP 8.0
- mhsuffolk
- VIP Member
- Posts: 148
- Joined: Sat Oct 26, 2019 9:13 am
- Contact:
Re: Use of undefined constant
Solved it.
I am unsure if it is correct but the addon still works and the error has gone.
I am unsure if it is correct but the addon still works and the error has gone.
Code: Select all
->setVar( 'sid', $GLOBALS['SID'] ) // MH change
Live shop Phoenix 1.0.9.0 on PHP 8.0
- mhsuffolk
- VIP Member
- Posts: 148
- Joined: Sat Oct 26, 2019 9:13 am
- Contact:
Re: Use of undefined constant
Spoke too soon. Shop side (where the error was showing) is OK but when I access the USU admin I get this in the admin error log.mhsuffolk wrote:Solved it.
I am unsure if it is correct but the addon still works and the error has gone.
Code: Select all
->setVar( 'sid', $GLOBALS['SID'] ) // MH change
Code: Select all
PHP Notice: Undefined index: SID in /home/****/public_html/includes/classes/usu_init.php on line 36
Live shop Phoenix 1.0.9.0 on PHP 8.0
- mhsuffolk
- VIP Member
- Posts: 148
- Joined: Sat Oct 26, 2019 9:13 am
- Contact:
Re: Use of undefined constant
For me it's working fine. Anyone else experiencing this?
Anyway this should fix it:
Anyway this should fix it:
Code: Select all
->setVar( 'sid', defined('SID') ? SID : '' )
-
- Posts: 96
- Joined: Thu Mar 11, 2021 2:16 am
- Contact:
Re: Use of undefined constant
Thank you so much, all errors gone now.Piernas wrote:For me it's working fine. Anyone else experiencing this?
Anyway this should fix it:
Code: Select all
->setVar( 'sid', defined('SID') ? SID : '' )
Live shop Phoenix 1.0.9.0 on PHP 8.0
- mhsuffolk
- VIP Member
- Posts: 148
- Joined: Sat Oct 26, 2019 9:13 am
- Contact:
Re: Use of undefined constant
I have the same problem but with this edit nothing change... any fix? ThanksPiernas wrote:For me it's working fine. Anyone else experiencing this?
Anyway this should fix it:
Code: Select all
->setVar( 'sid', defined('SID') ? SID : '' )
-
- Posts: 8
- Joined: Sat Apr 22, 2023 11:18 am
- Contact:
Re: Use of undefined constant
Please post your related log linesuser57345930 wrote:I have the same problem but with this edit nothing change... any fix? Thanks
-
- Posts: 96
- Joined: Thu Mar 11, 2021 2:16 am
- Contact: