PHP-Error -> HTTP 500 when sending Mail



  • Hey Guys,

    I get an error when sending Mails from WebApp (HTTP 500). Apache Error.log sais

    [Sun Jan 21 09:46:59.378959 2018] [:error] [pid 1111] [client 95.222.30.124:5156] PHP Fatal error: Call to undefined function dump() in /usr/share/kopano-webapp/server/includes/core/class.operations.php on line 4003, referer: https://*************/webapp/

    It used to work perfectly. Seems to be a Problem related to latest System/Kopano-Updateds.

    May you plz check this.

    Thank you verry much!

    KR
    Thorsten


  • Kopano

    Hi @faithless1108 ,

    which version of Kopano Core and WebApp are you running? On which os?



  • Hi there,

    the Versions are…

    ii python-kopano 8.4.5.0-0+33.1 all High-level Python bindings for Kopano
    ii z-push-backend-kopano 2.3.8+0-0 all Z-Push Kopano backend
    ii z-push-kopano 2.3.8+0-0 all Z-Push for Kopano
    ii kopano-backup 8.4.5.0-0+33.1 amd64 Utility to back up and restore Kopano stores
    ii kopano-client 8.4.5.0-0+33.1 amd64 Kopano MAPI provider library
    ii kopano-common 8.4.5.0-0+33.1 amd64 Shared files for Kopano Core services.
    ii kopano-contacts 8.4.5.0-0+33.1 amd64 MAPI provider adding contact folders in the addressbook
    ii kopano-dagent 8.4.5.0-0+33.1 amd64 E-Mail Delivery Agent for the Kopano Core
    ii kopano-gateway 8.4.5.0-0+33.1 amd64 POP3 and IMAP Gateway for the Kopano Core
    ii kopano-ical 8.4.5.0-0+33.1 amd64 ICal and CalDAV Gateway for Kopano Core
    ii kopano-lang 8.4.5.0-0+33.1 all Translations for Kopano Core components
    ii kopano-migration-pst 8.4.5.0-0+33.1 amd64 Utility to import PST files
    ii kopano-monitor 8.4.5.0-0+33.1 amd64 Quota Monitor for Kopano Core
    ii kopano-presence 8.4.5.0-0+33.1 amd64 kopano presence daemon
    ii kopano-search 8.4.5.0-0+33.1 amd64 Indexed search engine for Kopano Core
    ii kopano-server 8.4.5.0-0+33.1 amd64 Server component for Kopano Core
    ii kopano-server-packages 8.4.5.0-0+33.1 all Metapackage to install the entire Kopano Core stack
    ii kopano-spooler 8.4.5.0-0+33.1 amd64 E-mail Spooler for Kopano Core
    ii kopano-utils 8.4.5.0-0+33.1 amd64 Admin command-line utils for Kopano Core
    ii kopano-webapp 3.4.3.1137+42.1 all New and improved WebApp for Kopano
    ii kopano-webapp-plugin-mdm 2.0.1.0+25.2 all Kopano WebApp MDM plugin

    And the OS is Debian 8 (8.10)

    Thank you!


  • Kopano

    Hi @faithless1108 ,

    we looked into this and at first could not reproduce it. Looking a bit further into this it seems you are missing the following lines in your config.php. Once you have added them you should be able to send mails again.

    https://stash.kopano.io/projects/KW/repos/kopano-webapp/browse/config.php.dist?at=v3.4.4#243-248



  • Hi @fbartels,

    i already got these lines in my config.php

    if (file_exists('debug.php')){
    	include_once('debug.php');
    }else{
    	// define empty dump function in case we still use it somewhere
    	function dump(){}
    }
    

    What now?

    KR
    Thorsten


  • Kopano

    @faithless1108 said in PHP-Error -> HTTP 500 when sending Mail:

    What now?

    Since you are running our supported packages I assume you also have a valid subscription. Therefore I would recommend to get in contact with our support and have someone look at your system.

    https://portal.kopano.com/sdtickets


Log in to reply