Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Roundcube: Adding identity results in error

    Roundcube
    3
    6
    391
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • necrevistonnezr
      necrevistonnezr last edited by

      Hi,

      when I try to add an identity to Roundcube, I get an error:

      Oops... something went wrong!
      An internal error has occurred. Your request cannot be processed at this time.
      
      For administrators: Please check the application and/or server error logs for more information.
      

      The application log shows:

      Mar 31 13:04:00 94.199.89.123 - - [31/Mar/2022:11:04:00 +0000] "GET /?_task=settings&_action=identities HTTP/1.1" 200 4959 "https://[mydomain].com/?_task=settings" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36 Edg/99.0.1150.55"
      Mar 31 13:04:02 94.199.89.123 - - [31/Mar/2022:11:04:02 +0000] "GET /?_task=settings&_action=add-identity&_iid=0&_framed=1 HTTP/1.1" 500 426 "https://[mydomain].com/?_task=settings&_action=identities" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36 Edg/99.0.1150.55"
      Mar 31 13:04:10 - - - [31/Mar/2022:11:04:10 +0000] "GET / HTTP/1.1" 200 2915 "-" "Mozilla (CloudronHealth)"
      Mar 31 13:04:20 - - - [31/Mar/2022:11:04:20 +0000] "GET / HTTP/1.1" 200 2914 "-" "Mozilla (CloudronHealth)"
      Mar 31 13:04:30 - - - [31/Mar/2022:11:04:30 +0000] "GET / HTTP/1.1" 200 2913 "-" "Mozilla (CloudronHealth)"
      
      nebulon girish 2 Replies Last reply Reply Quote 0
      • nebulon
        nebulon Staff @necrevistonnezr last edited by

        @necrevistonnezr this sounds a bit like an upstream app error. Have you checked their issue tracker about this?

        1 Reply Last reply Reply Quote 0
        • Topic has been marked as a question  nebulon nebulon 
        • girish
          girish Staff @necrevistonnezr last edited by

          @necrevistonnezr Tried this on our install and it works fine. Can you try adding $config['debug_level'] = 4; in the custom config and then you will find the logs in /tmp/roundcube/logs.

          necrevistonnezr 1 Reply Last reply Reply Quote 0
          • necrevistonnezr
            necrevistonnezr @girish last edited by necrevistonnezr

            @girish Thanks for looking into this!

            [31-Mar-2022 18:32:10 UTC] PHP Fatal error:  Uncaught Error: Unsupported operand types in /app/data/plugins/identity_smtp/identity_smtp.php:194
            Stack trace:
            #0 /app/code/program/lib/Roundcube/rcube_plugin_api.php(513): identity_smtp->identityFormWillBeDisplayed()
            #1 /app/code/program/actions/settings/identity_edit.php(168): rcube_plugin_api->exec_hook()
            #2 /app/code/program/include/rcmail_output_html.php(1484): rcmail_action_settings_identity_edit::identity_form()
            #3 [internal function]: rcmail_output_html->xml_command()
            #4 /app/code/program/include/rcmail_output_html.php(1322): preg_replace_callback()
            #5 /app/code/program/include/rcmail_output_html.php(825): rcmail_output_html->parse_xml()
            #6 /app/code/program/include/rcmail_output_html.php(654): rcmail_output_html->parse()
            #7 /app/code/program/actions/settings/identity_edit.php(78): rcmail_output_html->send()
            #8 /app/code/program/include/rcmail.php(275): rcmail_action_settings_identity_edit->run()
            #9 /app/code/index.php(283): rcmail->action_handler()
            #10 {main}
              thrown in /app/data/plugins/identity_smtp/identity_smtp.php on line 194
            
            girish 1 Reply Last reply Reply Quote 0
            • girish
              girish Staff @necrevistonnezr last edited by

              @necrevistonnezr Oh, this is SMTP identity plugin (https://github.com/CocytusServices/Roundcube-Identity-SMTP) ? You might have to ask there. I was testing with the identity feature in Roundcube.

              necrevistonnezr 1 Reply Last reply Reply Quote 0
              • necrevistonnezr
                necrevistonnezr @girish last edited by

                @girish Thanks, that put me on the right path...
                For the record:
                Even the current forked version of the identity_smtp plugin (https://github.com/CocytusServices/Roundcube-Identity-SMTP forked from https://github.com/deflomu/Roundcube-SMTP-per-Identity-Plugin) has a bug.

                The fix proposed here works: https://github.com/deflomu/Roundcube-SMTP-per-Identity-Plugin/commit/411a33432ab1ba7fdb6004f6b2b66bd3601dff9f

                1 Reply Last reply Reply Quote 2
                • Topic has been marked as solved  girish girish 
                • First post
                  Last post
                Powered by NodeBB