Recently I installed DrupalChat. When this module is turned on, all content sites are down with the message below (adm sites are still up working):

Error: [] operator not supported for strings in zeropoint_image() (line 471 of /var/www/html/sites/all/themes/zeropoint/template.php)

Here are a few trying results:

  1. If I turn the module off, sites are back to normal;
  2. If I switch to other themes, DrupalChat works fine;
  3. When I set the DrupalChat's option to integrating with iFlyChat within Zero Point, it seems working fine. But I need the setting of Normal.

Really appreciate if someone could help out.

Regards,

CommentFileSizeAuthor
#7 add_class-3176138.patch1.31 KBjgreep

Comments

sdsc created an issue. See original summary.

sdsc’s picture

Title: Zero Point site down for DrupalChat » Zero Point site down with DrupalChat
Issue summary: View changes
avpaderno’s picture

Version: 7.x-4.15 » 7.x-4.x-dev
Issue tags: -zero point, -Drupalchat

  • Florian committed 1af9196 on 7.x-4.x
    #3176138: Zero Point site down with DrupalChat
    #3139153: .error class in...
florian’s picture

Status: Active » Fixed

No more issues now.
Please use version 7.x-4.16 or the updated 7.x-4.x-dev.

jgreep’s picture

The problem is really with DrupalChat. They are calling the image theme function with the class attribute as a string instead of the expected array, as is normal with Drupal.

This fix reverts and breaks issue #3027414.

Suggested fix would be to check if the class is not an array and then convert it.

  if (isset($attributes['class']) && !is_array($attributes['class'])) {
    $attributes['class'] = [$attributes['class']];
  }
  $attributes['class'][] = 'pure-img';
jgreep’s picture

StatusFileSize
new1.31 KB

I've created a patch file to address the issue.

jgreep’s picture

Status: Fixed » Needs review
sdsc’s picture

Thank you, jgreep! I'll have my team dig into it and report back if this works. Thanks again!

sdsc’s picture

Florian, I just noticed that there is a new version posted yesterday (7.x-4.16). However I tried to download 7.x-4.16 and 7.x-4.x-dev, both failed to download. The version I have is 7.x-4.15.

I'll have my team try fix with patch to see whether I have any luck. Thank you!!

sdsc’s picture

I apologize to Florian. I realized I used the module install link to download zeropoint earlier. Now I have successfully updated my zeropoint to the newest version, and it WORKs!!!!! Thank all of you very much!!!!!!

Now this issue can be closed.

florian’s picture

Status: Needs review » Closed (works as designed)