Share icon

Hey,

This is error caused by php7 and later,many application will face this error Reason behind is that the php 7 will not convert the blank variable with is define as string to array:

Suppose you define a variable like below code and later you use it as array, then this error come in the picture:

$object = "";

for($x > 1){

$object[] = $x;

}

form above example you defne the $object to blank varible and later you use it as array that why you will face the error.

Solution : if you want to use variable as array define as array like below, will remove your error 

$object = array();

for($x > 1){

$object[] = $x;

}

This is it.

Many of cms pulgins like wordpress,joomla etc facing this issue, untill they udpate you can fix like above way.

Thanks

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.