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

Upload of PDF fails/hangs (no messages), Other PDF Files work #7197

Open dbareis opened 1 year ago

dbareis commented 1 year ago

Description

RE: https://wordpress.org/support/topic/pods-file-field-shows-uploading-bar-but-doesnt-upload/

When "Upload Works.pdf" (attached) is uploaded: Upload Worked

When "Upload FAILS.pdf" (attached) is uploaded: Upload Fails

Upload Works.pdf Upload FAILS.pdf

These are the options of the field:

Upload Only (Plupload) Other (customise allowed extension) pdf Custom Directory within the default direction Newsletters

On failure:

Version

3.0.6

Testing Instructions

No response

Screenshots / Screencast

No response

Possible Workaround

No response

Site Health Information

`
### wp-core ###

version: 6.3.1
site_language: en_AU
user_language: en_AU
timezone: Australia/Melbourne
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 8
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /home/wcipporg/public_html
wordpress_size: 963.34 MB (1010131030 bytes)
uploads_path: /home/wcipporg/public_html/wp-content/uploads
uploads_size: 329.03 MB (345009729 bytes)
themes_path: /home/wcipporg/public_html/wp-content/themes
themes_size: 23.84 MB (25003113 bytes)
plugins_path: /home/wcipporg/public_html/wp-content/plugins
plugins_size: 207.52 MB (217597455 bytes)
database_size: 702.41 MB (736526336 bytes)
total_size: 2.17 GB (2334267663 bytes)

### wp-dropins (1) ###

db.php: true

### wp-active-theme ###

name: OceanWP Child Theme (oceanwp-child-theme-master)
version: 1.0
author: OceanWP
author_website: https://oceanwp.org/
parent_theme: OceanWP (oceanwp)
theme_features: core-block-patterns, widgets-block-editor, align-wide, wp-block-styles, responsive-embeds, editor-styles, editor-style, menus, post-formats, title-tag, automatic-feed-links, post-thumbnails, custom-header, custom-logo, html5, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, customize-selective-refresh-widgets, widgets
theme_path: /home/wcipporg/public_html/wp-content/themes/oceanwp-child-theme-master
auto_update: Disabled

### wp-parent-theme ###

name: OceanWP (oceanwp)
version: 3.5.0
author: OceanWP
author_website: https://oceanwp.org/about-oceanwp/
theme_path: /home/wcipporg/public_html/wp-content/themes/oceanwp
auto_update: Disabled

### wp-themes-inactive (1) ###

Twenty Twenty-Three: version: 1.2, author: the WordPress team, Auto-updates disabled

### wp-mu-plugins (3) ###

Health Check Troubleshooting Mode: author: (undefined), version: 1.9.0
Prevent PHP Deprecated Messages in PHP ERROR Logs: version: 2023.06.30, author: Dennis Bareis
WP STAGING Optimizer: version: 1.5.1, author: René Hermenau

### wp-plugins-active (26) ###

Admin Menu Editor: version: 1.11.2, author: Janis Elsts, Auto-updates enabled
Akismet Anti-spam: Spam Protection: version: 5.3, author: Automattic - Anti-spam Team, Auto-updates enabled
Backup Duplicator & Migration - WP STAGING: version: 3.0.6, author: WP-STAGING, WPStagingBackup, Auto-updates enabled
Broken Link Checker: version: 2.2.2, author: WPMU DEV, Auto-updates enabled
Category Order and Taxonomy Terms Order: version: 1.7.9, author: Nsp-Code, Auto-updates enabled
Easy Google Maps: version: 1.11.10, author: supsystic.com, Auto-updates enabled
Easy WP SMTP: version: 2.1.2, author: Easy WP SMTP, Auto-updates enabled
Error Log Monitor: version: 1.7.7, author: Janis Elsts, Auto-updates enabled
Extend Revisions for Custom Fields and Taxonomies: version: 2023.05.09, author: Dennis Bareis, Auto-updates disabled
Jetpack: version: 12.6.2, author: Automattic, Auto-updates enabled
Jetpack Boost: version: 2.1.1, author: Automattic - Jetpack Site Speed team, Auto-updates enabled
Jetpack Protect: version: 1.4.1, author: Automattic - Jetpack Security team, Auto-updates enabled
Kaya QR Code Generator: version: 1.5.3, author: Kaya Studio, Auto-updates enabled
LiteSpeed Cache: version: 5.6, author: LiteSpeed Technologies, Auto-updates enabled
Lock User Account: version: 1.0.4, author: teknigar, Auto-updates enabled
Media Library Assistant: version: 3.11, author: David Lingren, Auto-updates enabled
Ocean Extra: version: 2.2.0, author: OceanWP, Auto-updates enabled
Pods - Custom Content Types and Fields: version: 3.0.6, author: Pods Framework Team, Auto-updates enabled
Query Monitor: version: 3.13.1, author: John Blackbourn, Auto-updates enabled
Search Regex: version: 3.0.7, author: John Godley, Auto-updates enabled
Shortcoder: version: 6.3, author: Aakash Chakravarthy, Auto-updates enabled
Simple Location: version: 5.0.17, author: David Shanske, Auto-updates enabled
Table Sorter: version: 2.3, author: Farhan Noor, Auto-updates enabled
WordPress Importer: version: 0.8.1, author: wordpressdotorg, Auto-updates enabled
WPMU DEV Dashboard: version: 4.11.21, author: WPMU DEV, Auto-updates enabled
XML Sitemap Generator for Google: version: 4.1.13, author: Auctollo, Auto-updates enabled

### wp-plugins-inactive (8) ###

Export Import Menus: version: 1.8.0, author: Akshay Menariya, Auto-updates enabled
Health Check & Troubleshooting: version: 1.7.0, author: The WordPress.org community, Auto-updates enabled
Ocean Modal Window: version: 2.2.0, author: OceanWP, Auto-updates disabled
Pods Alternative Cache: version: 2.1.7, author: Pods Framework Team, Auto-updates enabled
UpdraftPlus - Backup/Restore: version: 1.23.10, author: UpdraftPlus.Com, DavidAnderson, Auto-updates enabled
WP-Optimize - Clean, Compress, Cache: version: 3.2.19, author: David Anderson, Ruhani Rabin, Team Updraft, Auto-updates enabled
WPCode Lite: version: 2.1.3.1, author: WPCode, Auto-updates enabled
WP Go Maps (formerly WP Google Maps): version: 9.0.24, author: WP Go Maps (formerly WP Google Maps), Auto-updates enabled

### wp-media ###

image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
imagick_version: Not available
file_uploads: File uploads is turned off
post_max_size: 512M
upload_max_filesize: 512M
max_effective_size: 512 MB
max_file_uploads: 20
gd_version: 2.3.3
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
ghostscript_version: unknown

### wp-server ###

server_architecture: Linux 2.6.32-954.3.5.lve1.4.78.el6.x86_64 x86_64
httpd_software: LiteSpeed
php_version: 8.1.22 64bit
php_sapi: litespeed
max_input_variables: 1000
time_limit: 30
memory_limit: 1024M
max_input_time: 60
upload_max_filesize: 512M
php_post_max_size: 512M
curl_version: 7.87.0 OpenSSL/1.1.1p
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: true
current: 2023-10-04T04:29:37+00:00
utc-time: Wednesday, 04-Oct-23 04:29:37 UTC
server-time: 2023-10-04T15:29:16+11:00

### wp-database ###

extension: mysqli
server_version: 10.5.22-MariaDB-cll-lve
client_version: 10.5.21-MariaDB
max_allowed_packet: 16777216
max_connections: 150

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /home/wcipporg/public_html/wp-content
WP_PLUGIN_DIR: /home/wcipporg/public_html/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 1024M
WP_DEBUG: true
WP_DEBUG_DISPLAY: false
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: true
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined

### wp-filesystem ###

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

### jetpack ###

site_id: 217304591
ssl_cert: No
time_diff: undefined
version_option: 12.6.2:1695914262
old_version: 12.6.1:1695396100
public: Public
master_user: No master user set.
is_offline_mode: off
is_offline_mode_constant: off
current_user: #3 DennisBareis
tokens_set: Blog 
blog_token: mM)Hllu)DUdhsuWkv%K&KwPM5b8K4WYo
user_token: Not set.
version: 12.6.2
jp_plugin_dir: /home/wcipporg/public_html/wp-content/plugins/jetpack/
plan: free
protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false}
full_sync: {"started":"Tue, 23 May 2023 22:14:37 +0000","finished":"Tue, 23 May 2023 22:35:03 +0000","progress":{"comments":{"total":"2","sent":2,"finished":true,"last_sent":"70"},"constants":{"finished":true},"functions":{"finished":true},"options":{"finished":true},"posts":{"total":"2172","sent":2172,"finished":true,"last_sent":"3"},"term_relationships":{"total":"1540","sent":1540,"finished":true,"last_sent":{"object_id":"78","term_taxonomy_id":"2"}},"terms":{"total":"82","sent":82,"finished":true,"last_sent":"1"},"themes":{"finished":true},"updates":{"finished":true},"users":{"total":"6","sent":6,"finished":true,"last_sent":"1"}},"config":{"comments":1,"constants":1,"functions":1,"options":1,"posts":1,"term_relationships":1,"terms":1,"themes":1,"updates":1,"users":1}}
sync_size: undefined
sync_lag: 0 seconds
full_sync_size: undefined
full_sync_lag: 0 seconds
idc_urls: {"home":"https:\/\/www.wcipp.org.au","siteurl":"https:\/\/www.wcipp.org.au","WP_HOME":"","WP_SITEURL":""}
idc_error_option: false
idc_optin: true
cxn_tests: All Pass.

### easy_wp_smtp ###

version: 2.1.2
license_key_type: lite
debug: No debug notices found.

### pods ###

pods-server-software: LiteSpeed
pods-user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
pods-session-save-path: /tmp
pods-session-save-path-exists: Yes
pods-session-save-path-writable: Yes
pods-session-max-lifetime: 1440
pods-opcode-cache-apc: No
pods-opcode-cache-memcached: No
pods-opcode-cache-opcache: No
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: 123.939M / 40M
pods-memory-current-usage-real: 125.000M
pods-network-wide: No
pods-install-location: /wp-content/plugins/pods/
pods-developer: No
pods-tableless-mode: No
pods-relationship-table-enabled: Yes
pods-relationship-table-status: 696
pods-light-mode: No
pods-strict: No
pods-allow-deprecated: Yes
pods-api-cache: Yes
pods-shortcode-allow-evaluate-tags: No
pods-sessions: Disable sessions
pods-can-use-sessions: Yes
pods-settings-types_only: No
pods-settings-watch_changed_fields: Yes
pods-settings-metadata_integration: Yes
pods-settings-metadata_override_get: Yes

`

Pods Package

?
sc0ttkclark commented 1 year ago

Can you provide a package of your configuration (Pods Admin > Migrate Packages) using the Migrate Packages component (Pods Admin > Components)? That might help us to see if we can reproduce the issue.

dbareis commented 1 year ago
{
    "@meta": {
        "version": "3.0.6",
        "build": 1696462329
    },
    "settings": {
        "types_only": "0",
        "watch_changed_fields": "1",
        "metadata_integration": "1",
        "metadata_override_get": "1",
        "session_auto_start": "0",
        "wisdom_opt_out": "",
        "media_modal_fields": "1",
        "active_components": [
            "migrate-packages",
            "pages",
            "templates"
        ]
    },
    "pods": [
        {
            "name": "newsletter",
            "id": 31571,
            "label": "Newsletters",
            "description": "",
            "type": "post_type",
            "storage": "meta",
            "label_singular": "Newsletter",
            "public": "1",
            "show_ui": "1",
            "rest_enable": "1",
            "supports_title": "1",
            "supports_editor": "1",
            "_migrated_28": "1",
            "pick_object": "custom-simple",
            "required": "0",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 31572,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "newsletter_file",
                            "id": 31573,
                            "label": "Newsletter File",
                            "description": "The PDF file to be uploaded",
                            "weight": 0,
                            "type": "file",
                            "sister_id": "-- Select One --",
                            "required": "0",
                            "file_format_type": "single",
                            "file_uploader": "plupload",
                            "file_type": "other",
                            "file_attachment_tab": "upload",
                            "file_upload_dir": "uploads",
                            "file_edit_title": "1",
                            "file_show_edit_link": "0",
                            "file_linked": "0",
                            "file_limit": "0",
                            "file_field_template": "rows",
                            "file_add_button": "Add Newsletter",
                            "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",
                            "file_allowed_extensions": "pdf",
                            "file_upload_dir_custom": "Newsletters",
                            "logged_in_only": "0"
                        },
                        {
                            "name": "newsletter_issue_number",
                            "id": 31574,
                            "label": "Issue Number",
                            "description": "The issue number for this newsletter",
                            "weight": 1,
                            "type": "number",
                            "sister_id": "-- Select One --",
                            "required": "0",
                            "number_format_type": "number",
                            "number_format": "i18n",
                            "number_decimals": "0",
                            "number_format_soft": "0",
                            "number_step": "1",
                            "number_max_length": "5",
                            "number_html5": "0",
                            "repeatable": "0",
                            "repeatable_format": "default",
                            "roles_allowed": "administrator",
                            "enable_conditional_logic": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1"
                        },
                        {
                            "name": "newsletter_issue_period",
                            "id": 31575,
                            "label": "Issue Period",
                            "description": "The period of time the newsletter covers",
                            "weight": 2,
                            "type": "text",
                            "sister_id": "-- Select One --",
                            "required": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "100",
                            "repeatable": "0",
                            "repeatable_format": "default",
                            "roles_allowed": "administrator",
                            "enable_conditional_logic": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "text_trim": "1",
                            "text_trim_lines": "1",
                            "text_trim_p_brs": "1"
                        },
                        {
                            "name": "newsletter_summary",
                            "id": 31576,
                            "label": "Newsletter Summary",
                            "description": "One line for item",
                            "weight": 3,
                            "type": "paragraph",
                            "sister_id": "-- Select One --",
                            "required": "0",
                            "paragraph_allowed_html_tags": "strong em a ul ol li b i",
                            "paragraph_max_length": "-1",
                            "repeatable": "0",
                            "repeatable_format": "default",
                            "roles_allowed": "administrator",
                            "enable_conditional_logic": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "paragraph_trim": "1",
                            "paragraph_trim_lines": "1",
                            "paragraph_trim_p_brs": "1"
                        }
                    ]
                }
            ]
        }
    ],
    "pages": [
        {
            "name": "search-newsletters*",
            "code": "",
            "id": 31578,
            "_edit_lock": "1696375214:3",
            "_edit_last": "3",
            "page_title": "Newsletter Search",
            "admin_only": "0",
            "restrict_role": "0",
            "restrict_capability": "0",
            "restrict_redirect": "0",
            "restrict_redirect_login": "0",
            "page_template": "php-SEARCH-for-NEWSLETTERS.php",
            "pod": "newsletter",
            "_pods_roles_allowed": [
                ""
            ],
            "_pods_capability_allowed": [
                ""
            ]
        }
    ]
}
sc0ttkclark commented 1 year ago

I can upload both fine in my testing with your package pod "Newsletter" and the "Newsletter File" field.

I'm curious if there's something else going on here, but it may be difficult to find without being able to test this on a site that has the same issue.

If you'd like to join our Live Community Pods Slack at https://support.pods.io/chat/ -- I'm sure we can help you debug this more quickly and get to the bottom of the issue. Once you join, just look for me and send me a Direct Message and I can work with you to figure this out.

Is that something you're open to?