Files field: API could not be parsed

Hello,

I have problems with saving the panel form when I have selected an image. Uploading / selecting the picture works, the problem is only with save. Other fields do not produce errors. The same website works fine on a different server.

PHP 7.4
Kirby 3.3.6

Exception: undefined

The JSON response from the API could not be parsed. Please check your API connection.

greetings perry

Is debugging enabled in config? If not, enable it and then please check if you see something more useful in your browser console.

Screenshot from 2020-07-04 19-49-32

Hm, that’s not really useful. Does this generally happen with files fields or only in this specific page type? Could you post your blueprint?

However, if it works on a different server, it might be an issue with that server. But I don’t really understand why it should only happen with that particular field.

Could you test if the error also persists if you update to 3.4-rc2?

what is the url for 3.4.rc2 ?

#!/bin/sh
sudo rm -rfv kirby
git clone https://github.com/getkirby/kirby/
cd "$(dirname "$0")/kirby"
rm -rf .git exit;

blueprint

title: Site

tabs:
  content:
    label: Content
    icon: text
    columns:  

      # main
      left:

        width: 2/3
        sections:
        
          paneluser:
            headline: Profil 
            
          info:
            label: 
              de: Willkommen
              fr: Willkommen
              it: Willkommen
            type: info
            text: |
              Willkommen<br>
              Um deine Profil zu editieren klicke bitte [hier](account). oder auf den Profil-Button.<br>

            

          published:
            headline: 
              de: Seiten
              fr: Seiten
              it: Seiten
            type: pages
            status: all
            image: false


  # seo tab
  meta:
    label: Meta
    icon: text

    columns:  

      # main
      left:
        width: 2/3

        fields:
          description:
            label: Description
            type: text
            width: 1/1


          tags:
            label: Tags
            type: tags
            width: 1/1

          logo:
            label: Logo
            type: files
            query: site.images
            multiple: false
            width: 1/2

          facebook:
            label: Facebook
            type: url
            width: 1/2

          instagram:
            label: Instagram
            type: url
            width: 1/2

          newsletter:
            label: Newsletter
            type: url
            width: 1/2



          favicon:
            label: Favicon
            type: files
            query: site.images
            multiple: false
            width: 1/2

          line:
            type: line

          adress:
            label: Adress
            type: headline
            numbered: false

          name:
            label: Name
            type: text

          street:
            label: Street
            type: text

          city:
            label: City
            type: text

          telephone:
            label: Telephone
            type: text

          email_1:
            label: E-Mail
            type: email

          email_2:
            label: E-Mail
            type: email

          email_3:
            label: E-Mail
            type: email

          website:
            label: Website
            type: url


      #right
      right:
        width: 1/3
        
        sections:
          sidebar:
            headline: Files
            type: files
            layout: list

You can download it here, if you want to use git, you have to checkout the tag.

no with the version it does not work either, but I have the following in the error log of the server:
ModSecurity: Cannot add scalar value without an associated key....

And that error message pops up when the Panel error occurs?

I was able to solve it by deactivating the modsec rule.

And that error message pops up when the Panel error occurs?

no that is the message in the error.log file on the server