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 mautic can't edit form

    Mautic
    5
    11
    288
    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.
    • andreasdueren
      andreasdueren last edited by andreasdueren

      I wanted to edit a form since it didn't behave the way I wanted it to but it wouldn't open the edit page. When I edited the url to get there, mautic threw a 500 Internal Server Error at me.

      The logs are actually giving out a 304 Error:

      "GET /s/forms/view/5 HTTP/1.1" 200 179670 "-" 
      "GET /index.php/s/login HTTP/1.1" 301 320 "-" "Mozilla (CloudronHealth)"
      "GET /plugins/MauticCustomSmsBundle/Assets/js/customsms.js?vc794449c HTTP/1.1" 200 296 "https://domain.com/s/forms/view/5" 
      "GET /media/js/libraries.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /media/js/app.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/froala_editor.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/align.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/code_beautifier.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/code_view.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/colors.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/font_family.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/font_size.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/fullscreen.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/image.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/filemanager.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/inline_style.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/line_breaker.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/link.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/lists.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/paragraph_format.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/quick_insert.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/paragraph_style.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/quote.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/table.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/url.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/token.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/gatedvideo.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/froala/plugins/dynamic_content.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/ckeditor/ckeditor.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /app/bundles/CoreBundle/Assets/js/libraries/ckeditor/adapters/jquery.js?vc794449c HTTP/1.1" 304 - "https://domain.com/s/forms/view/5" 
      "GET /media/images/favicon.ico?vc794449c HTTP/1.1" 404 65829 "https://domain.com/s/forms/view/5" 
      "GET /media/images/favicon.ico?vc794449c HTTP/1.1" 404 65829 "https://domain.com/s/forms/view/5" 
      "GET /s/forms/edit/5?_=1644690360171&mauticUserLastActive=2&mauticLastNotificationId= HTTP/1.1" 500 195 "https://domain.com/s/forms/view/5" 
      

      So I went to look why it can't access those files but they actually don't exist whatsoever.

      • /app/bundles and
      • /media/js are not existant
      • and the /media/images is empty

      I also can't duplicate existing forms or create new ones either.
      Any idea what's wrong here?

      luckow 1 Reply Last reply Reply Quote 0
      • Moved from Support by  girish girish 
      • luckow
        luckow translator @andreasdueren last edited by

        @andreasdueren Sorry, I didn't understand the context. As I understand it, the "design" of a form is based on templates (see screenshot taken from New Standalone Form / same for New Campaign Form)
        0379fc5f-4f72-40f9-a3a1-9404fcea50ab-image.png
        If you don't like the design, build your own theme and upload it via the Cloudron file manager (https://docs.mautic.org/en/themes).
        The 500 error may have something to do with the error described here -> https://forum.cloudron.io/topic/6270/installing-mautic-4-x/7?_=1644758122831

        Pronouns: he/him | Primary language: German

        andreasdueren 1 Reply Last reply Reply Quote 0
        • andreasdueren
          andreasdueren @luckow last edited by

          @luckow No i didn't mean the theme or design but the actual items within my forms.
          Screenshot 2022-02-14 at 08.39.02.png
          Thanks for the link, it seems to be a different issue. However it's generating different error messages there:

          [2022-02-14 13:40:25] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:40:25] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:40:25] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:40:25] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:40:25] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:40:25] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 13:41:52] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:45:03] mautic.NOTICE: TypeError: Argument 2 passed to JMS\Serializer\Handler\DateHandler::serializeDateTime() must be an instance of DateTime, string given, called in /app/code/vendor/jms/serializer/src/GraphNavigator/SerializationGraphNavigator.php on line 206 (uncaught exception) at /app/code/vendor/jms/serializer/src/Handler/DateHandler.php line 98 while running console command `mautic:social:monitoring` [] []
          [2022-02-14 14:45:03] mautic.WARNING: Command `mautic:social:monitoring` exited with status code 1 [] []
          [2022-02-14 15:00:02] mautic.NOTICE: TypeError: Argument 2 passed to JMS\Serializer\Handler\DateHandler::serializeDateTime() must be an instance of DateTime, string given, called in /app/code/vendor/jms/serializer/src/GraphNavigator/SerializationGraphNavigator.php on line 206 (uncaught exception) at /app/code/vendor/jms/serializer/src/Handler/DateHandler.php line 98 while running console command `mautic:social:monitoring` [] []
          [2022-02-14 15:00:02] mautic.WARNING: Command `mautic:social:monitoring` exited with status code 1 [] []
          [2022-02-14 15:15:03] mautic.NOTICE: TypeError: Argument 2 passed to JMS\Serializer\Handler\DateHandler::serializeDateTime() must be an instance of DateTime, string given, called in /app/code/vendor/jms/serializer/src/GraphNavigator/SerializationGraphNavigator.php on line 206 (uncaught exception) at /app/code/vendor/jms/serializer/src/Handler/DateHandler.php line 98 while running console command `mautic:social:monitoring` [] []
          [2022-02-14 15:15:03] mautic.WARNING: Command `mautic:social:monitoring` exited with status code 1 [] []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 14:29:05] mautic.NOTICE: PHP Notice - Trying to access array offset on value of type bool - in file /app/data/plugins/MauticFocusBundle/Include/lessc.inc.php - at line 719 {"args":[],"orderedValues":[],"keywordValues":[],"assignedValues":[],"i":0,"last":false} []
          [2022-02-14 15:30:03] mautic.NOTICE: TypeError: Argument 2 passed to JMS\Serializer\Handler\DateHandler::serializeDateTime() must be an instance of DateTime, string given, called in /app/code/vendor/jms/serializer/src/GraphNavigator/SerializationGraphNavigator.php on line 206 (uncaught exception) at /app/code/vendor/jms/serializer/src/Handler/DateHandler.php line 98 while running console command `mautic:social:monitoring` [] []
          [2022-02-14 15:30:03] mautic.WARNING: Command `mautic:social:monitoring` exited with status code 1 [] []
          
          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff last edited by

            This looks like the same error as https://forum.mautic.org/t/log-flooded-with-mautic-notice-php-notice-trying-to-access-array-offset-on-value-of-type-bool-redlining-server/19320 . @andreasdueren Can you try disabling the Focus bundle plugin or is this enabled by default ?

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

              @girish Unfortunately it can't be disabled Screenshot 2022-02-17 at 09.08.24.png

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

                @andreasdueren Is this a fresh instance or an instance upgraded from Mautic 3.x ?

                I tried to create 2 forms now - standalone and campaign. And I can add fields, preview them, edit them again. Does this happen only with existing forms or also new forms? I guess I don't really know how to reproduce this. Do you think you can try this on the demo instance - https://my.demo.cloudron.io (username/password: cloudron) ?

                rmdes andreasdueren 2 Replies Last reply Reply Quote 0
                • rmdes
                  rmdes @girish last edited by

                  @girish I had to remove old themes I had manually added from Mautic 3.x to regain the ability to edit previous email campaigns, not sure if this is related in any way, but once the offending themes removed, everything went fine !

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

                    @girish It‘s an older installation. A fresh installation on the same server works just fine.

                    @rmdes Thank you, I‘ll see if any manually added items could be the problem. I didn‘t install any themes, only plugins. But I‘ll go through and check that out

                    rmdes 1 Reply Last reply Reply Quote 0
                    • rmdes
                      rmdes @andreasdueren last edited by

                      @andreasdueren I fixed my Mautics instances by checking out the log provided inside the Mautic app, there I found a lot of errors related to theme's I had added manually when Mautic moved from the old email builder to GrapeJS, once the old themes removed, everything went back to normal !

                      nebulon 1 Reply Last reply Reply Quote 1
                      • nebulon
                        nebulon Staff @rmdes last edited by

                        @andreasdueren did you manage to find the outdated files, causing the issue?

                        andreasdueren 1 Reply Last reply Reply Quote 0
                        • andreasdueren
                          andreasdueren @nebulon last edited by

                          @nebulon I deleted the theme that was throwing an error (even though it was not in use) and that for some reason fixed it 🤷

                          1 Reply Last reply Reply Quote 2
                          • First post
                            Last post
                          Powered by NodeBB