We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Attempting to use Image+. Crop it in the backend fine but the following error on the front end:

    Image+ Error: Invalid Media Source


    Server: MODX Cloud
    Image+ TV: 2.1
    PHPThumbOf: 1.4
    MODX: 2.2.8 (same issue with 2.2.6)

    Any tips? Media Sources are set to the Filesystem.
      • 37942
      • 30 Posts
      Quite a while ago but i seem to be stuck on this aswel? Hope you've got it fixed and might have an idea why mine isn't working?

      Image+ Error: Invalid Media Source


      JSON for Formtabs:

      [
      {"caption":"Afbeelding", "fields":[
          {
          "field":"image",
          "caption":"ImagePlus Afbeelding",
      "inputTV":"tv_auto_foto",
      "inputTVtype":"imageplus",
      "sourceFrom": "migx",
      "sources": [{
          "context": "web",
          "sourceid": "1"
      }]
          }]
      }]


      JSON for Grid columns:
      [
      {
      "header": "Afbeeldingen", 
      "width": "250", "sortable": "false", 
      "dataIndex": "image",
      "renderer": "ImagePlus.MIGX_Renderer"
      }
      ]


      I have tried calling this MIGX TV with:

      [[*tv_auto_gallery]]
      
      and
      
      [[ImagePlus? &tvname=`tv_auto_gallery` &type=`tpl` &tpl=`ImagePlus.demo`]]
      
      and
      
      [[!getImageList? &tvname=`tv_auto_gallery` &tpl=`@CODE:<li>[[+idx]]<img src="[[+image]]"/><p>[[+title]]</p></li>`]]


      Anyone got an idea what i'm doing wrong?

      Thanks in advance,

      Nin
        • 4172
        • 5,888 Posts
        I think:

        [[getImageList? &tvname=`tv_auto_gallery` &tpl=`imageTpl`]]


        and inside your imageTpl

        [[ImagePlus? 
        &value=`[[+image]]`
        &options=`w=100` 
        &type=`tpl` 
        &tpl=`ImagePlus.demo`
        ]]
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 37942
          • 30 Posts
          Quote from: Bruno17 at Jan 26, 2016, 08:58 AM
          I think:

          [[getImageList? &tvname=`tv_auto_gallery` &tpl=`imageTpl`]]


          and inside your imageTpl

          [[ImagePlus? 
          &value=`[[+image]]`
          &options=`w=100` 
          &type=`tpl` 
          &tpl=`ImagePlus.demo`
          ]]

          Hi Bruno,

          Thanks for your reply, unfortunately this doesn't seem to work aswel. Now i got no output whatsoever, strange thing however is that i can see the images within the MIGX but for some reason doesn't output anything. I just can't get my head around it, JSON seems fine and i tried removing the 'source' statements aswel. No result unfortunately.

          Just for my info, normally i don't have to set a media source through JSON?