500 error when saving article or news

Hi

 

When I'm trying to update and save an article or news I got an 500 error like this.

 

www.mysite.com can't handle the request

HTTP ERROR 500

 

When i check the error log I got this.

 

[Mon Nov 26 07:58:08.753659 2018] [:error] [pid 3390] [client my.ip:53349] PHP Fatal error:  Call to undefined method BxDolDb::arrayToSQL() in /var/www/html/mysite.com/inc/classes/BxDolTags.php on line 248, referer: https://www.mysite.com/m/articles/edit/587

 

On line 248 I have this

 

            $sQuery = "SELECT COUNT(*) FROM `sys_tags` WHERE " . $this->oDb->arrayToSQL(array(

                $this->aTagFields['id'] => $aTagsSet['id'],

                $this->aTagFields['type'] => $aTagsSet['type'],

                $this->aTagFields['tag'] => $sTag,

            ), ' AND ');

 
Anyone knows what'sm wrong?

All help is appreciated

Quote · 26 Nov 2018

Hello darkbread!

 

First of all, you need to check if this code exists in your inc/classes/BxDolDB.php file:

 

    public function arrayToSQL($a, $sDiv = ',')

    {

        $s = '';

        foreach($a as $k => $v)

            $s .= "`{$k}` = '" . $this->escape($v) . "'" . $sDiv;

 

        return trim($s, $sDiv);

    }


If no - then upload the proper file to your server from this place https://github.com/boonex/dolphin.pro/blob/master/inc/classes/BxDolDb.php. If yes, then PM me with the Control Panel access of your site.

Quote · 26 Nov 2018

Hi and thank you very mutch. That did it.

 

Regards
Eddie

Quote · 26 Nov 2018
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.