• Resolved randondev

    (@randondev)


    If you select a repeatable field and try to use it in Elementor you will get the following fatal error:

    “PHP Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in …/wp-includes/blocks.php:801”

    Instead of a fatal error, it would be nice to see a message saying that this type of field cannot be displayed this way

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @randondev

    We have no control of Elementor code and their internal compatibility code for Pods has had many issues in the past.Their compatibility is only partial unfortunately and I have no idea how focussend they are on maintaining this code. Please contact their support channel on this issue.

    Cheers, Jory

    Thread Starter randondev

    (@randondev)

    The problem is not in the Elementor code. Your plugin creates dynamic tags to retrieve the fields created, but if the user selects a repeatable field, the page breaks with the error I reported. You should add a check in the code of the dynamic tags you created to avoid this.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @randondev

    Your plugin creates dynamic tags to retrieve the fields created

    Our plugin does not create any dynamic tags, the Elementor Pro module does this itself.
    See elementor-pro/modules/dynamic-tags/pods/ to check their integration code. This integration is incomplete as it doesn’t include a relationship type.

    They include the following types (copied from their code):

    'Pods_Text',
    'Pods_Date',
    'Pods_Date_Time',
    'Pods_Image',
    'Pods_Gallery',
    'Pods_URL',
    'Pods_Numeric',

    As I mentioned, our plugin does not include any code that integrates into Elementor because they already did this. You can’t include it both because this will definitely create confusion and compatibility issues.
    Please contact their support on this issue.

    Cheers, Jory

    • This reply was modified 2 years, 12 months ago by Jory Hogeveen.
    Thread Starter randondev

    (@randondev)

    So is Elementor itself generating the dynamic tags for your plugin? Curious, thanks for the info.

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    There’s also the Elementor integration that I built for the Pods Pro Page Builder Toolkit Add-On.

    That lets you use some custom Elementor widgets that I added that may help you do what you’re trying to do here.

    https://pods-pro.skc.dev/downloads/page-builder-toolkit/#elementor

    Another thing we can look at here is if you provide the full error message, that could help us track down if that’s an error coming from Pods itself or from Elementor. If it’s Pods then we can fix that in the next release.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error displaying repeatable field on Elementor’ is closed to new replies.