Drupal Ajax Error 200 Unsupported Operand common.inc


Drupal Ajax Error 200 Unsupported Operand common.inc


I have display suite and field group installed on drupal 7, when I click the cog icon, i getting error with message like this :

An Ajax HTTP error occured.
HTTP Result Code: 200 Debugging information follows.
Path : system/ajax
Status Text : OK
ResponeText :
Fatal error : Unsupported operand types in : ..... common.inc on line 6697

After that, I try to check the one that made error as described in the the error message. I open common.inc and scroll to line 6697, I see the code on line 6697 like this

$child_weights[$key] = floor($weight * 1000) + $i / $count;

I tried changing the line like the example above becomes like this :

if (is_scalar($weight)) {
      	$child_weights[$key] = floor($weight * 1000) + $i / $count;
    }


After that, the error is gone

0 Response to "Drupal Ajax Error 200 Unsupported Operand common.inc"

Post a Comment

Komentar yang Anda kirim akan terlebih dahulu di moderasi oleh Admin