images – wp_get_attachment_image_src calling an incorrect location

We are using the frame of the Exopite Simple Options Framework in our add-on. One of the fields is an image loading metabox:

enter the description of the image here

This works well and the images are uploaded and attached to the publication as expected.

When we try this in a subsitio In a network of multiple sites we encounter a problem. It's fine on the website of the parent network

enter the description of the image here
It seems that it does not appear. After inspecting we see that he is giving / sites / 4 / sites / 4 / instead of just / sites / 4 /.

enter the description of the image here

If we manually change the URL to / sites / 4 / works.

enter the description of the image here

Some points:

  • We have disabled all other add-ons.
  • We are using a default theme
  • wp_get_attachment_image_src () get the wrong way to the image but get_attached_media () get the right paths
  • It is stored correctly in the database, but on the media page it is the wrong path

Maybe it's a htaccess thing?

If you need more information, let me know.