pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 264 forks source link

Pod changes not being saved. #6900

Closed VentGrey closed 1 year ago

VentGrey commented 2 years ago

Description

Whenever I create a new pod on my Wordpress installation, a strange bug happens where, changes or a new instance registration doesn't ocurr.

Suppose I create a "Pet" pod. And go to create a new pod instance.

1- After filling out the forms I created for my pod and clicking "Save", reloading the page or navigating back using the wordpress menus. Then clicking edit, surprise, all the forms are now blank. I have to click the Save button god know how many times to see my changes reflected.

2- Same with editing existing pods, let's suppose I incorrectly set a pet to "Dgo" instead of "Dog". Again I correct the wrong information, check save and nothing happens. It seems that the plugin saves information on the DB whenever it wants to.

Version

6.0.2

Testing Instructions

  1. Create a new pod
  2. Create a new pod object
  3. Save the new pod object and watch error scenario number 1
  4. Manage to save a pod object
  5. Edit the same pod object and watch error scenario number 2

Screenshots / Screencast

Will try to upload in the future.

Possible Workaround

Spam clicking the save button.

Using JS to click it programatically works best.

Site Health Information

### wp-core ###

version: 6.0.2
site_language: es_MX
user_language: es_MX
timezone: America/Mexico_City
permalink: /%year%/%monthnum%/%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: open
environment_type: production
user_count: 2
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /home/wp/var/www/html/wordpress
wordpress_size: 49.37 MB (51768142 bytes)
uploads_path: /home/wp/var/www/html/wordpress/wp-content/uploads
uploads_size: 0.00 B (0 bytes)
themes_path: /home/wp/var/www/html/wordpress/wp-content/themes
themes_size: 3.52 MB (3694213 bytes)
plugins_path: /home/wp/var/www/html/wordpress/wp-content/plugins
plugins_size: 2.67 MB (2796384 bytes)
database_size: 6.80 MB (7127040 bytes)
total_size: 62.36 MB (65385779 bytes)

### wp-active-theme ###

name: Twenty Twenty-Two (twentytwentytwo)
version: 1.2
author: el equipo WordPress
author_website: https://es-mx.wordpress.org/
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, block-templates, widgets-block-editor, wp-block-styles, editor-style
theme_path: /var/www/html/wordpress/wp-content/themes/twentytwentytwo

### wp-plugins-active (8) ###

All In One WP Security: version: 5.0.7, author: All In One WP Security & Firewall Team, Actualizaciones automáticas desactivadas
hCaptcha for Forms and More: version: 1.19.0, author: hCaptcha, Actualizaciones automáticas desactivadas
Headless WordPress: version: 1.0.3, author: miniOrange, Actualizaciones automáticas desactivadas
Jetpack CRM: version: 5.2.0, author: Automattic - Jetpack CRM Team, Actualizaciones automáticas desactivadas
Pods - Custom Content Types and Fields: version: 2.9.3, author: Pods Framework Team, Actualizaciones automáticas desactivadas
Pods Alternative Cache: version: 2.1.3, author: Pods Framework Team, Actualizaciones automáticas desactivadas
REST API Toolbox: version: 1.4.3, author: Pete Nelson, Actualizaciones automáticas desactivadas
Unbloater: version: 1.5.2, author: Christoph Rado, Actualizaciones automáticas desactivadas

### wp-media ###

image_editor: WP_Image_Editor_GD
imagick_module_version: No está disponible
imagemagick_version: No está disponible
imagick_version: No está disponible
file_uploads: File uploads is turned off
post_max_size: 8M
upload_max_filesize: 64M
max_effective_size: 8 MB
max_file_uploads: 20
gd_version: 2.2.5
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: not available

### wp-server ###

server_architecture: Linux 4.18.0
httpd_software: nginx
php_version: 7.4 64bit
php_sapi: fpm-fcgi
max_input_variables: 1000
time_limit: 180
memory_limit: 256M
max_input_time: 90
upload_max_filesize: 64M
php_post_max_size: 8M
curl_version: 7.61.1 OpenSSL/1.1.1k
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: true

### wp-database ###

extension: mysqli
server_version: 10.3.32-MariaDB
client_version: mysqlnd 7.4.19
max_allowed_packet: 16777216
max_connections: 151

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /home/wp/var/www/html/wordpress/wp-content
WP_PLUGIN_DIR: /home/wp/var/www/html/wordpress/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Indefinido
DB_CHARSET: utf8
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable

### pods ###

pods-server-software: nginx/1.14
pods-user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
pods-session-save-path: /var/lib/php/session
pods-session-save-path-exists: Si
pods-session-save-path-writable: No
pods-session-max-lifetime: 1440
pods-opcode-cache-apc: No
pods-opcode-cache-memcached: No
pods-opcode-cache-opcache: Si
pods-opcode-cache-redis: No
pods-object-cache-apc: No
pods-object-cache-apcu: No
pods-object-cache-memcache: No
pods-object-cache-memcached: No
pods-object-cache-redis: No
pods-memory-current-usage: 14.861M
pods-memory-current-usage-real: 4.000M
pods-network-wide: No
pods-install-location: /wp-content/plugins/pods/
pods-developer: No
pods-tableless-mode: No
pods-relationship-table-enabled: Si
pods-light-mode: No
pods-strict: No
pods-allow-deprecated: Si
pods-api-cache: Si
pods-shortcode-allow-evaluate-tags: No
pods-sessions: Disable sessions
pods-can-use-sessions: No
pods-relationship-table-status: 10

Pods Package

{
    "@meta": {
        "version": "2.9.3",
        "build": 1662970160
    },
    "settings": {
        "types_only": "0",
        "watch_changed_fields": "1",
        "metadata_integration": "1",
        "metadata_override_get": "1",
        "session_auto_start": "0",
        "wisdom_opt_out": "1"
    },
    "pods": [
        {
            "name": "proyecto",
            "id": 21,
            "label": "Proyectos",
            "description": "Proyects made with love",
            "type": "post_type",
            "storage": "meta",
            "label_singular": "Proyecto",
            "public": "1",
            "show_ui": "1",
            "rest_enable": "1",
            "supports_title": "1",
            "supports_editor": "1",
            "_migrated_28": "1",
            "placeholder_enter_title_here": "T\u00edtulo del proyecto",
            "read_all": "0",
            "publicly_queryable": "0",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 22,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "nombre_del_proyecto",
                            "id": 23,
                            "label": "Nombre del Proyecto",
                            "description": "Wirte the name of the prject.",
                            "weight": 0,
                            "type": "text",
                            "sister_id": "-- Select One --",
                            "post_status": "publish",
                            "required": "1",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "text_trim": "1",
                            "rest_read": "1"
                        },
                        {
                            "name": "imagen_del_proyecto",
                            "id": 24,
                            "label": "Imagen del proyecto",
                            "description": "Project image.",
                            "weight": 1,
                            "type": "file",
                            "sister_id": "-- Select One --",
                            "post_status": "publish",
                            "required": "1",
                            "file_format_type": "single",
                            "file_uploader": "attachment",
                            "file_attachment_tab": "upload",
                            "file_upload_dir": "wp",
                            "file_edit_title": "1",
                            "file_show_edit_link": "0",
                            "file_linked": "0",
                            "file_limit": "0",
                            "file_type": "images",
                            "file_field_template": "rows",
                            "file_add_button": "Add File",
                            "file_modal_title": "Attach a file",
                            "file_modal_add_button": "Add File",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_read": "1"
                        },
                        {
                            "name": "es_libre",
                            "id": 26,
                            "label": "\u00bfEs libre?",
                            "description": "\u00bfEl cliente o el contrato del mismo permiten liberar el c\u00f3digo?",
                            "weight": 2,
                            "type": "boolean",
                            "sister_id": "-- Select One --",
                            "post_status": "publish",
                            "required": "1",
                            "boolean_format_type": "checkbox",
                            "boolean_yes_label": "Si",
                            "boolean_no_label": "No",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_read": "1"
                        },
                        {
                            "name": "link_de_descarga",
                            "id": 28,
                            "label": "Link de descarga",
                            "description": "Donde descargar el c\u00f3digo fuente.",
                            "weight": 4,
                            "type": "website",
                            "sister_id": "-- Select One --",
                            "post_status": "publish",
                            "required": "1",
                            "website_format": "normal",
                            "website_allow_port": "0",
                            "website_clickable": "1",
                            "website_new_window": "1",
                            "website_max_length": "255",
                            "website_html5": "0",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_read": "1"
                        },
                        {
                            "name": "descripcion_corta",
                            "id": 31,
                            "label": "Descripci\u00f3n corta",
                            "description": "Descripci\u00f3n corta del proyecto",
                            "weight": 5,
                            "type": "wysiwyg",
                            "sister_id": "-- Select One --",
                            "post_status": "publish",
                            "required": "1",
                            "wysiwyg_editor": "tinymce",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "wysiwyg_wptexturize": "1",
                            "wysiwyg_wpautop": "1",
                            "rest_read": "1"
                        }
                    ]
                }
            ]
        },
        {
            "name": "software_libre",
            "id": 76,
            "label": "Software libre",
            "description": "",
            "type": "post_type",
            "storage": "meta",
            "label_singular": "Software libre",
            "public": "1",
            "show_ui": "1",
            "rest_enable": "1",
            "supports_title": "1",
            "supports_editor": "1",
            "_migrated_28": "1",
            "required": "0",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 77,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "nombre",
                            "id": 79,
                            "label": "Nombre",
                            "description": "El nombre del proyecto de software libre",
                            "weight": 0,
                            "type": "text",
                            "sister_id": "-- Select One --",
                            "post_status": "publish",
                            "required": "1",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_read": "1"
                        },
                        {
                            "name": "imagen",
                            "id": 80,
                            "label": "Imagen",
                            "description": "Logo o fotograf\u00eda del producto de software libre",
                            "weight": 1,
                            "type": "file",
                            "sister_id": "-- Select One --",
                            "post_status": "publish",
                            "required": "1",
                            "file_format_type": "single",
                            "file_uploader": "attachment",
                            "file_attachment_tab": "upload",
                            "file_upload_dir": "wp",
                            "file_edit_title": "1",
                            "file_show_edit_link": "0",
                            "file_linked": "0",
                            "file_limit": "0",
                            "file_type": "images",
                            "file_field_template": "rows",
                            "file_add_button": "Add File",
                            "file_modal_title": "Attach a file",
                            "file_modal_add_button": "Add File",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_read": "1"
                        },
                        {
                            "name": "descripcion",
                            "id": 81,
                            "label": "Descripci\u00f3n",
                            "description": "Descripci\u00f3n del proyecto de c\u00f3digo libre",
                            "weight": 2,
                            "type": "text",
                            "sister_id": "-- Select One --",
                            "post_status": "publish",
                            "required": "1",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_read": "1"
                        },
                        {
                            "name": "link",
                            "id": 82,
                            "label": "Link",
                            "description": "Enlace al repositorio del proyecto",
                            "weight": 3,
                            "type": "website",
                            "sister_id": "-- Select One --",
                            "post_status": "publish",
                            "required": "1",
                            "website_format": "normal",
                            "website_allow_port": "0",
                            "website_clickable": "0",
                            "website_new_window": "0",
                            "website_max_length": "255",
                            "website_html5": "0",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_read": "1"
                        }
                    ]
                }
            ]
        },
        {
            "name": "tecnologa",
            "id": 32,
            "label": "Tecnolog\u00edas",
            "description": "",
            "type": "post_type",
            "storage": "meta",
            "label_singular": "Tecnolog\u00eda",
            "public": "1",
            "show_ui": "1",
            "rest_enable": "1",
            "supports_title": "1",
            "supports_editor": "1",
            "_migrated_28": "1",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 33,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "link",
                            "id": 34,
                            "label": "Link",
                            "description": "Enlace.",
                            "weight": 0,
                            "type": "website",
                            "sister_id": "-- Select One --",
                            "post_status": "publish",
                            "required": "1",
                            "website_format": "normal",
                            "website_allow_port": "0",
                            "website_clickable": "0",
                            "website_new_window": "1",
                            "website_max_length": "255",
                            "website_html5": "0",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_read": "1"
                        },
                        {
                            "name": "logo",
                            "id": 35,
                            "label": "Logo",
                            "description": "Logo",
                            "weight": 1,
                            "type": "file",
                            "sister_id": "-- Select One --",
                            "post_status": "publish",
                            "required": "1",
                            "file_format_type": "single",
                            "file_uploader": "attachment",
                            "file_attachment_tab": "upload",
                            "file_upload_dir": "wp",
                            "file_edit_title": "1",
                            "file_show_edit_link": "0",
                            "file_linked": "0",
                            "file_limit": "0",
                            "file_type": "images",
                            "file_field_template": "rows",
                            "file_add_button": "Add File",
                            "file_modal_title": "Attach a file",
                            "file_modal_add_button": "Add File",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "rest_read": "1"
                        }
                    ]
                }
            ]
        }
    ]
}
sc0ttkclark commented 2 years ago

I can't seem to reproduce this issue at the moment, perhaps it's something in how you've explained it but if you provide a screencast or some more detailed instructions I may be able to understand more accurately how to see the same issue as you.

sc0ttkclark commented 1 year ago

Does this problem go away after you deactivate the plugin Pods Alternative Cache? Perhaps in this scenario, there is a problem with the filesystem permissions being able to remove files/folders associated with the Pods configuration cache and that's what is leading to it sticking to old values even after saving.

One way to confirm this is to encounter your problem where it doesn't show your changed configuration, but then go to Pods Admin > Settings > Clear Pods Cache and attempt to go back to the Pod in question. If you see the changes you made now, that indicates a caching problem.

JoryHogeveen commented 1 year ago

Closing topic due to inactivity. @VentGrey Feel free to reopen and reply to our comments.