• Resolved dalril

    (@dalril)


    I have a few custom post types created using the Pods plugin. When editing or adding these posts, some of the post fields fail if the version of the FIFU plugin installed is 4.6.0 or above.

    One CPT has an image field and the ‘Add File’ button fails to invoke the Media Library upload dialog if the FIFU version greater than 4.5.9, but it will work if a featured image is enabled for the post type.

    Another CPT has a WYSIWYG field that will only show “There was an error rendering the field” when using a FIFU version greater than 4.5.9 regardless if a featured image is enabled or not.

    Rolling back the FIFU plugin to 4.5.9 resolves these issues, but then freezing those updates could allow for future security issues.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Marcel

    (@marceljm)

    Hello, @dalril.

    Please access FIFU -> Status. Copy and send me the data.

    For some reason when FIFU is installed, when Pods loads up it’s TinyMCE instance, the window.wpEditorL10n var does not exist. I couldn’t figure out what’s going on there but I added an additional check in Pods 3.1.5 to safely handle that case.

    Plugin Author Marcel

    (@marceljm)

    Hello, @sc0ttkclark.

    Could you provide the steps to configure Pods and then reproduce the issue?

    You can create a Custom Post Type with Pods and then add a custom field to it with the field type of WYSIWYG.

    Thread Starter dalril

    (@dalril)

    I made a bare minimum site with just FIFU and Pods installed and was able to recreate the behavior. One thing I discovered was that I had Editor disabled in Supports for the post types (customer was confused by, and hated the block editor look and feel). If that is enabled then they showed no problems.
    Here is the FIFU->Status output:

    Featured Image from URL (FIFU):4.6.4;
    WordPress:6.4.3;
    Site:https://feature-test.mtpreview.com;
    Theme:Twenty Twenty-Four;
    PHP:8.1.27;
    WooCommerce:;
    Pages:0;
    Posts:1;
    Products:;
    Images without dimensions:0;
    URLs with metadata:0;
    URLs:0;
    Users:2;
    php-curl:yes;
    Max lenght:2048;
    Plugins:

    • Featured Image from URL (FIFU) (featured-image-from-url)
    • Pods – Custom Content Types and Fields (pods);
      Active plugins:
    • featured-image-from-url
    • pods;
      fifu_auto_alt:toggleoff;
      fifu_cdn_content:toggleoff;
      fifu_check:toggleoff;
      fifu_cloud_hotlink:toggleoff;
      fifu_cloud_upload_auto:toggleoff;
      fifu_content:toggleoff;
      fifu_content_cpt:toggleoff;
      fifu_content_page:toggleoff;
      fifu_data_clean:toggleoff;
      fifu_decode:toggleoff;
      fifu_default_cpt:post,page,product;
      fifu_default_url:;
      fifu_dynamic_alt:toggleoff;
      fifu_enable_default_url:toggleoff;
      fifu_fake:toggleon;
      fifu_get_first:toggleoff;
      fifu_hide_cpt:toggleoff;
      fifu_hide_format:;
      fifu_hide_page:toggleoff;
      fifu_hide_post:toggleoff;
      fifu_html_cpt:;
      fifu_lazy:toggleoff;
      fifu_ovw_first:toggleoff;
      fifu_photon:toggleon;
      fifu_pop_first:toggleoff;
      fifu_query_strings:toggleoff;
      fifu_reset:toggleoff;
      fifu_run_delete_all:toggleoff;
      fifu_run_delete_all_time:;
      fifu_skip:;
      fifu_social:toggleon;
      fifu_social_home_url:;
      fifu_social_image_only:toggleoff;
      fifu_spinner_nth:1;
      fifu_wc_lbox:toggleon;
      fifu_wc_zoom:toggleon;
      Image:;
      Video:;
      Slider:;
      REST routes:
    • https://feature-test.mtpreview.com/index.php/wp-json/:PHP;
    • https://feature-test.mtpreview.com/index.php/wp-json/:JS
    Thread Starter dalril

    (@dalril)

    Here is an importable Pods configuration JSON that has two pods. One has an image field (logo) and the other has a WYSIWYG field (info). The logo CPT works if Featured Image or Editor are enabled in Edit Pod>Advanced Options>Supports. The info pod works if Editor support is enabled.

    {
    "@meta": {
    "version": "3.1.4",
    "build": 1709262465
    },
    "settings": {
    "types_only": "0",
    "watch_changed_fields": "0",
    "metadata_integration": "0",
    "metadata_override_get": "0",
    "media_modal_fields": "0",
    "session_auto_start": "0",
    "dynamic_features_allow": "1",
    "dynamic_features_enabled": [
    "display",
    "form"
    ],
    "show_access_restricted_messages": "0",
    "show_access_admin_notices": "1",
    "dynamic_features_allow_sql_clauses": "0",
    "display_callbacks": "customized",
    "display_callbacks_allowed": "esc_attr,esc_html",
    "wisdom_opt_out": "1",
    "active_components": [
    "migrate-packages",
    "templates"
    ]
    },
    "pods": [
    {
    "name": "info",
    "id": 11,
    "label": "Company Info",
    "description": "",
    "type": "post_type",
    "storage": "meta",
    "label_singular": "Company Info",
    "public": "1",
    "show_ui": "1",
    "publicly_queryable": "1",
    "dynamic_features_allow": "inherit",
    "rest_enable": "1",
    "supports_title": "1",
    "supports_editor": "0",
    "_migrated_28": "1",
    "pick_object": "custom-simple",
    "required": "0",
    "supports_quick_edit": "1",
    "exclude_from_search": "0",
    "capability_type": "post",
    "capability_type_extra": "1",
    "disable_create_posts": "0",
    "has_archive": "0",
    "hierarchical": "0",
    "can_export": "1",
    "rewrite": "1",
    "rewrite_with_front": "1",
    "rewrite_feeds": "0",
    "rewrite_pages": "1",
    "query_var": "1",
    "default_status": "draft",
    "revisions_to_keep_limit": "0",
    "delete_with_user": "1",
    "groups": [
    {
    "name": "more_fields",
    "id": 12,
    "label": "More Fields",
    "description": "",
    "weight": 0,
    "fields": [
    {
    "name": "company_info",
    "id": 16,
    "label": "Company Info",
    "description": "",
    "weight": 0,
    "type": "wysiwyg",
    "sister_id": "-- Select One --",
    "required": "1",
    "wysiwyg_editor": "tinymce",
    "repeatable": "0",
    "repeatable_format": "default",
    "roles_allowed": "administrator",
    "enable_conditional_logic": "0",
    "rest_pick_response": "array",
    "rest_pick_depth": "1"
    }
    ]
    }
    ]
    },
    {
    "name": "logo",
    "id": 6,
    "label": "Company Logo",
    "description": "",
    "type": "post_type",
    "storage": "meta",
    "label_singular": "Logo",
    "public": "1",
    "show_ui": "1",
    "publicly_queryable": "1",
    "dynamic_features_allow": "inherit",
    "rest_enable": "1",
    "supports_title": "1",
    "supports_editor": "0",
    "_migrated_28": "1",
    "pick_object": "custom-simple",
    "required": "0",
    "supports_quick_edit": "1",
    "exclude_from_search": "0",
    "capability_type": "post",
    "capability_type_extra": "1",
    "disable_create_posts": "0",
    "has_archive": "0",
    "hierarchical": "0",
    "can_export": "1",
    "rewrite": "1",
    "rewrite_with_front": "1",
    "rewrite_feeds": "0",
    "rewrite_pages": "1",
    "query_var": "1",
    "default_status": "draft",
    "revisions_to_keep_limit": "0",
    "delete_with_user": "1",
    "supports_thumbnail": "0",
    "groups": [
    {
    "name": "more_fields",
    "id": 7,
    "label": "More Fields",
    "description": "",
    "weight": 0,
    "fields": [
    {
    "name": "company_logo",
    "id": 8,
    "label": "Company Logo",
    "description": "",
    "weight": 0,
    "type": "file",
    "sister_id": "-- Select One --",
    "required": "1",
    "file_format_type": "single",
    "file_uploader": "attachment",
    "file_type": "images",
    "file_attachment_tab": "upload",
    "file_upload_dir": "wp",
    "file_edit_title": "1",
    "file_show_edit_link": "0",
    "file_linked": "0",
    "file_limit": "0",
    "file_field_template": "rows",
    "file_add_button": "Add File",
    "file_modal_title": "Attach a file",
    "file_modal_add_button": "Add File",
    "file_wp_gallery_link": "file",
    "file_wp_gallery_columns": "3",
    "file_wp_gallery_size": "thumbnail",
    "repeatable": "0",
    "repeatable_format": "default",
    "roles_allowed": "administrator",
    "enable_conditional_logic": "0",
    "rest_pick_response": "array",
    "rest_pick_depth": "1",
    "logged_in_only": "0",
    "admin_only": "0",
    "restrict_role": "0",
    "restrict_capability": "0",
    "hidden": "0",
    "read_only": "0"
    },
    {
    "name": "company_website",
    "id": 9,
    "label": "Company Website",
    "description": "",
    "weight": 1,
    "type": "website",
    "sister_id": "-- Select One --",
    "required": "0",
    "website_format": "normal",
    "website_allow_port": "0",
    "website_clickable": "0",
    "website_new_window": "0",
    "website_nofollow": "0",
    "website_max_length": "255",
    "website_html5": "0",
    "repeatable": "0",
    "repeatable_format": "default",
    "roles_allowed": "administrator",
    "enable_conditional_logic": "0",
    "rest_pick_response": "array",
    "rest_pick_depth": "1"
    }
    ]
    }
    ]
    }
    ]
    }
    • This reply was modified 9 months ago by dalril.
    Plugin Author Marcel

    (@marceljm)

    Thanks, @sc0ttkclark.

    I tried that but I don’t see any errors in the browser console, UI, or back-end. I’m using the default settings for both plugins. Could you send me screenshots or record a screencast showing me exactly what you are doing? Or maybe provide me with a dummy site where I can reproduce the issue?

    Plugin Author Marcel

    (@marceljm)

    Thanks for the JSON, @dalril. I was able to reproduce the issue here. I’ll debug and let you know.

    Plugin Author Marcel

    (@marceljm)

    The conflict will be resolved in the next version, 4.6.5. Thanks for reporting.

    Thread Starter dalril

    (@dalril)

    That’s excellent! Should I mark this topic as resolved, or wait until confirming with the next version?

    Plugin Author Marcel

    (@marceljm)

    You can keep it open for now, @dalril.

    Plugin Author Marcel

    (@marceljm)

    4.6.5 is available.

    I’m marking this as resolved, but you can contact me again here if you have any additional issues.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Pods errors when FIFU plugin is enabled’ is closed to new replies.