Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Array and string offset access syntax with curly b
Author « Topic »  

ebp
Advanced Member

136 Posts

Pre-sales questions only
(More Details...)

Posted - 05/26/2021 :  13:22:16  
Hi, I'm getting following errors on cart page after PHP 7.4 which bluehost is not requiring. There are few other places with similar errors. I believe I can fix them by replacing curly braces with square, but I want to see if there is something else I need to do. I looked at the newest version of Ecommerce Plus PHP v7.2.6 and looking at the inc files I still see curly braces. Is there something I'm missing or should I be fixing these manually?


Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/vsadmin/inc/inccart.php on line 1586
Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/vsadmin/inc/inccart.php on line 1587
Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/vsadmin/inc/inccart.php on line 1592
Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/vsadmin/inc/inccart.php on line 1594
Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/vsadmin/inc/inccart.php on line 1596

Thank you for any assistance.

Vince
Administrator

42756 Posts

Posted - 05/27/2021 :  03:07:42  
Hi Ebp
The current release should be compatible with PHP 8 so could you let me know what is on those lines (and the line number) after updating to the v7.2.6 version?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

ebp
Advanced Member

136 Posts

Pre-sales questions only
(More Details...)

Posted - 05/27/2021 :  07:43:29  
Here is a quick example of what it was on the incemail.php.

Line: 21, 22, 27, 30. They have {} curly braces (as seen below). After I replaced them with [] in my code now it fixed the issues (so far I had to fix incart.php ,incemail.php and incprducts.php). I don't have the exact line number for incproducts.php but I can revert back to give you that if needed. It was 1 line only.


for($i=0; $i< strlen($hkey); $i++){
$ipad[$i] ^= ord($hkey{$i});
$opad[$i] ^= ord($hkey{$i});
$idata[$i]=($ipad[$i] & 0xFF);
$odata[$i]=($opad[$i] & 0xFF);
}
for($i=0; $i< strlen($text); $i++){
$idata[64+$i]=ord($text{$i}) & 0xFF;
}
for($i=0; $i< strlen($idatastr); $i++){
$idatastr{$i}=chr($idata[$i] & 0xFF);
}
for($i=0; $i< strlen($odatastr); $i++){
$odatastr{$i}=chr($odata[$i] & 0xFF);
}

Vince
Administrator

42756 Posts

Posted - 05/27/2021 :  08:46:16  
Hi Ebp
This has been changed as of v7.2.1. Are you sure you are copying the new files for the updater to the correct location?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

ebp
Advanced Member

136 Posts

Pre-sales questions only
(More Details...)

Posted - 05/27/2021 :  13:04:11  
Thanks Vince! I'm not sure how I missed that. I have now updated and it all looks good on my test site.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000