[PAID] Custom Fancybox snippet with phpthumbon

yes and yes.
I would call it cached and if the TV is empty, it will not output anything

1 Like

Hi @bruno17 , I have followed the tutorial above.

Every works so far, but I am getting an error in the logs:
ERROR @ …/core/xpdo/om/xpdoobject.class.php : 811) modTemplateVar: Attempt to set NOT NULL field type to NULL

Do you have any idea where this may come from ?

   [{
  "caption": "Image",
  "fields": [{
      "field": "placeholder",
      "caption": "Placeholder",
      "inputTV": "placeholderTV"
    },
    {
      "field": "title",
      "caption": "Title",
      "description": "Title for the image."
    },
    {
      "field": "alt",
      "caption": "Alt",
      "description": "Alt for the image."
    },    
    {
      "field": "caption",
      "caption": "Caption",
        "inputTV": "",
        "inputTVtype": "listbox",
        "inputOptionValues": "no==0||yes==1"
    },      
    {
      "field": "image",
      "caption": "Image",
      "inputTV": "imageTV"
    }

  ]
}]


[{
  "caption": "Image",
  "fields": [{
      "field": "placeholder",
      "caption": "Placeholder",
      "inputTV": "placeholderTV"
    },
    {
      "field": "title",
      "caption": "Title",
      "description": "Title for the image."
    },
    {
      "field": "alt",
      "caption": "Alt",
      "description": "Alt for the image."
    },    
    {
      "field": "caption",
      "caption": "Caption",
        "inputTV": "",
        "inputTVtype": "listbox",
        "inputOptionValues": "no==0||yes==1"
    },      
    {
      "field": "image",
      "caption": "Image",
      "inputTV": "imageTV"
    }

  ]
}]

The chunck is below:

I can’t think, how this could be related to the MIGX setup.
Seems something is trying to save NULL into a not NULL field type at the modTemplateVar - table.
When exactly does it happen?

I think it’s my fault :man_facepalming:, I left "inputTV": "" in the code. I removed, and I believe it fixed the issue.

P.S. I celebrated too soon, the error still there.