Upgrade ISC from PHP 7.3 to PHP 7.4

PHP Deprecated: Function get_magic_quotes_runtime() is deprecated in /public_html/lib/database/mysqli.php on line 87

//$this->magic_quotes_runtime_on = get_magic_quotes_runtime();
$this->magic_quotes_runtime_on = FALSE;

(Reference: https://www.php.net/manual/en/function.get-magic-quotes-runtime.php)

PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/includes/classes/class.checkoutprovider.php on line 680

//if (isset($combinedId{30})) {
if (isset($combinedId[30])) {

PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/lib/multibyte.php on line 201~214

function uniord($c)
{
	//$h = ord($c{0});
	$h = ord($c[0]);
	if ($h <= 0x7F) {
		return $h;
	} else if ($h < 0xC2) {
		return false;
	} else if ($h <= 0xDF) {
		//return ($h & 0x1F) << 6 | (ord($c{1}) & 0x3F);
		return ($h & 0x1F) << 6 | (ord($c[1]) & 0x3F);
	} else if ($h <= 0xEF) {
		//return ($h & 0x0F) << 12 | (ord($c{1}) & 0x3F) << 6
		return ($h & 0x0F) << 12 | (ord($c[1]) & 0x3F) << 6
		//						 | (ord($c{2}) & 0x3F);
								 | (ord($c[2]) & 0x3F);
	} else if ($h <= 0xF4) {
		//return ($h & 0x0F) << 18 | (ord($c{1}) & 0x3F) << 12
		return ($h & 0x0F) << 18 | (ord($c[1]) & 0x3F) << 12
		//						 | (ord($c{2}) & 0x3F) << 6
								 | (ord($c[2]) & 0x3F) << 6
		//						 | (ord($c{3}) & 0x3F);
								 | (ord($c[3]) & 0x3F);
	} else {
		return false;
	}
}

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function ISC_CHECKOUT_PROVIDER::GetPropertiesSheet(), 1 passed in /public_html/admin/includes/classes/class.settings.checkout.php on line 118 and at least 4 expected in /public_html/includes/classes/class.checkoutprovider.php:166

(when access Admin > Settings > Checkout Settings)

//  public function GetPropertiesSheet($tabId, $doHeaderRows=true, $moduleId='')
public function GetPropertiesSheet($tabId, $idGlobal = NULL, $jsGlobal = NULL, $jsSelectedFunction = NULL, $customVars = array(), $moduleId = NULL)

PHP Deprecated: Function get_magic_quotes_gpc() is deprecated in /public_html/lib/init.php on line 50

//if (get_magic_quotes_gpc()) {
//	$_POST = stripslashes_deep($_POST);
//	$_GET		= stripslashes_deep($_GET);
//	$_COOKIE	= stripslashes_deep($_COOKIE);
//	$_REQUEST	= stripslashes_deep($_REQUEST);
//}

(There is no magic_quotes in PHP 7)

Trying to access array offset on value of type bool in /public_html/lib/general.php at 4422

//$currentCustomerGroupId = $currentCustomerGroup['customergroupid'];
$currentCustomerGroupId = $currentCustomerGroup['customergroupid'] ?? null;

Trying to access array offset on value of type null in /public_html/admin/includes/classes/class.product.php at 3908

//if($existingProduct['productid']) {
if(isset($existingProduct['productid'])) {

(when access Admin > Products > Edit > Save & Exit)

Trying to access array offset on value of type bool in /public_html/lib/currency.php at 250

//if($currency['currencyid']) {
if(isset($currency['currencyid'])) {

PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/includes/classes/class.captcha.php on line 364′

//imagettftext($img_handle, $this->fontSize, rand(-4, 3), $x, 30+rand(-1, 1), $text_color, $this->font, $this->__secret{$i});
imagettftext($img_handle, $this->fontSize, rand(-4, 3), $x, 30+rand(-1, 1), $text_color, $this->font, $this->__secret[$i]);

PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/admin/includes/classes/class.layout.php on line 794

//if ($template == "." || $template == ".." || $template == "CVS" || $template == ".svn" || $template == 'blank.dat' || $template{0} == '_') {
if ($template == "." || $template == ".." || $template == "CVS" || $template == ".svn" || $template == 'blank.dat' || $template[0] == '_') {

PHP message: PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/admin/includes/classes/class.layout.php on line 967′, referer: https://www.domain.com/admin/index.php?ToDo=systemLog

//if ($file != "." && $file != ".." && $file != "CVS" && $file != ".svn" && $file != 'blank.dat' && $file{0} != '_') {
if ($file != "." && $file != ".." && $file != "CVS" && $file != ".svn" && $file != 'blank.dat' && $file[0] != '_') {

“NOTICE: PHP message: PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/lib/email.php on line 1171”

//$type = strtolower($type{0});
$type = strtolower($type[0]);

“NOTICE: PHP message: PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/lib/email.php on line 609”

//$bodytype = strtolower($bodytype{0});
$bodytype = strtolower($bodytype[0]);

PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/lib/email.php on line 581

//$bodytype = strtolower($bodytype{0});
$bodytype = strtolower($bodytype[0]);

Trying to access array offset on value of type bool in /public_html/includes/classes/class.checkout.php at 1740

//if (isset($_POST['store_credit']) && $_POST['store_credit'] == 1 && $customer['custstorecredit'] > 0) {
if (isset($_POST['store_credit']) && $_POST['store_credit'] == 1 && isset($customer['custstorecredit']) && $customer['custstorecredit'] > 0) {

Trying to access array offset on value of type bool in /public_html/includes/classes/class.checkout.php at 2572

//if ($customer['custstorecredit'] > 0) {
if (isset($customer['custstorecredit']) && $customer['custstorecredit'] > 0) {

Trying to access array offset on value of type int in /public_html/includes/classes/class.checkout.php at 1824

Trying to access array offset on value of type int in /public_html/includes/classes/class.checkout.php at 1825

//$createAccount['password'] = $_SESSION['CHECKOUT']['CREATE_ACCOUNT']['password'];
//$createAccount['customFormFields'] = $_SESSION['CHECKOUT']['CREATE_ACCOUNT']['customFields'];
$createAccount['password'] = $_SESSION['CHECKOUT']['CREATE_ACCOUNT']['password'] ?? null;
$createAccount['customFormFields'] = $_SESSION['CHECKOUT']['CREATE_ACCOUNT']['customFields'] ?? null;

Trying to access array offset on value of type null in /public_html/includes/classes/class.quote.address.php at 566

//if ($state['statecountry'] == $countryId && $state['stateid'] != $this->state['id']) {
if (isset($state['statecountry']) && $state['statecountry'] == $countryId && $state['stateid'] != $this->state['id']) {

Trying to access array offset on value of type null in /public_html/includes/classes/class.product.php at 587

Trying to access array offset on value of type null in /public_html/includes/classes/class.product.php at 583

Trying to access array offset on value of type null in /public_html/includes/classes/class.product.php at 545

Trying to access array offset on value of type null in /public_html/includes/classes/class.product.php at 541

Trying to access array offset on value of type null in /public_html/includes/classes/class.product.php at 505

Trying to access array offset on value of type null in /public_html/includes/classes/class.product.php at 504

//public function GetCombinationDetails($combination, $customerGroupId = null) {
public function GetCombinationDetails($combination, $customerGroupId = null) {
	if (!is_array($combination)) {
		$combination = array(
			'vcsku'			=> '',
			'combinationid'	=> '',
			'vcimage'		=> '',
			'vcweight'      => '',
			'vcweightdiff'	=> '',
			'vcprice'		=> '',
			'vcpricediff'	=> ''
		);
	}

PHP Deprecated: Array and string offset access syntax with curly braces is deprecated in /public_html/admin/includes/classes/class.layout.php on line 391

//if($file{0} == "." || $file{0} == "0" || $file == "CVS") {
if($file[0] == "." || $file[0] == "0" || $file == "CVS") {

Trying to access array offset on value of type null in /public_html/admin/includes/classes/class.product.php at 5957

//if($existingProduct['productid']) {
if(isset($existingProduct['productid'])) {

Trying to access array offset on value of type null in /public_html/admin/includes/classes/class.product.php at 1476

//if($row !== false) {
if($row !== false && isset($row['brandid'])) {

Trying to access array offset on value of type null in /public_html/includes/classes/class.product.image.php at 1978

Trying to access array offset on value of type null in /public_html/includes/classes/class.product.image.php at 1973

//if ($row !== false) {
if ($row !== false && isset($row['imageid'])) {

Declaration of ISC_FORMFIELD_RADIOSELECT::getFieldRequestValue() should be compatible with ISC_FORMFIELD_BASE::getFieldRequestValue($fieldName = ”) in /public_html/lib/formfields/formfield.radioselect.php at 53

Declaration of ISC_FORMFIELD_DATECHOOSER::getFieldRequestValue() should be compatible with ISC_FORMFIELD_BASE::getFieldRequestValue($fieldName = ”) in /public_html/lib/formfields/formfield.datechooser.php at 55

Declaration of ISC_FORMFIELD_CHECKBOXSELECT::getFieldRequestValue() should be compatible with ISC_FORMFIELD_BASE::getFieldRequestValue($fieldName = ”) in /public_html/lib/formfields/formfield.checkboxselect.php at 53

//public function getFieldRequestValue()
public function getFieldRequestValue($fieldName = '')

Trying to access array offset on value of type null in /public_html/includes/classes/class.coupon.php at 18

//$email = $customer['custconemail'];
$email = $customer['custconemail'] ?? ''; 

Undefined index: PayPalExpressCheckout in /public_html/modules/checkout/paypalexpress/module.paypalexpress.php at 607

Trying to access array offset on value of type null in /public_html/modules/checkout/paypalexpress/module.paypalexpress.php at 627

Trying to access array offset on value of type null in /public_html/modules/checkout/paypalexpress/module.paypalexpress.php at 628

//$response = $_SESSION['CHECKOUT']['PayPalExpressCheckout'];
if(isset($_SESSION['CHECKOUT']['PayPalExpressCheckout'])){
	$response = $_SESSION['CHECKOUT']['PayPalExpressCheckout'];
}else{
	$response['TOKEN'] = '';
	$response['PAYERID'] = '';
}

Leave a Reply

Your email address will not be published. Required fields are marked *