WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Warning: implode() [function.implode]: Invalid arguments passed in...line 283 (2 posts)

  1. perryhua
    Member
    Posted 1 year ago #

    Hi I'm having problems with a plugin. It says Warning: implode() [function.implode]: Invalid arguments passed in /home/.../font/Font.php on line 283.

    The code on that line is

    if($this->editorStyles) { $editorStyles = implode('', $this->editorStyles);

    Does anyone know how to fix this?

  2. s_ha_dum
    Member
    Posted 1 year ago #

    '$this->editorStyles` is not set or isn't an array. I'd bet on the first so...

    if(!empty($this->editorStyles)) { $editorStyles = implode('', $this->editorStyles);

    The other option is ...

    if(is_array($this->editorStyles)) { $editorStyles = implode('', $this->editorStyles);

    Or both ...

    if(!empty($this->editorStyles) && is_array($this->editorStyles)) { $editorStyles = implode('', $this->editorStyles);

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.