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

datetimepicker is not a function #5587

Open Gouze opened 4 years ago

Gouze commented 4 years ago

Hello guys,

I'm using Pods in a project right now and i've some bugs with the frontend form. It works very well for almost all fields but the Image Uploader. After investigations, it looks like UI javascript scripts aren't loaded in the front.

Did I miss something or ... ?

Thanks

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. I created a custom post type
  2. I added the multiple images field
  3. Generate with "$mypod->forms()"
  4. No field in the front

Expected behavior Display upload field

Screenshots https://i.imgur.com/IHOohB5.png

Pods Version

2.7.16.2

WordPress Environment

`

wp-core

version: 5.3.2 site_language: fr_FR user_language: fr_FR timezone: Europe/Paris permalink: /%year%/%monthnum%/%day%/%postname%/ https_status: false user_registration: 1 default_comment_status: open multisite: false user_count: 1 dotorg_communication: true

wp-paths-sizes

wordpress_path: /home/foodandpvc/dev wordpress_size: 40,77 MB (42751960 bytes) uploads_path: /home/foodandpvc/dev/wp-content/uploads uploads_size: 13,00 B (13 bytes) themes_path: /home/foodandpvc/dev/wp-content/themes themes_size: 5,23 MB (5479476 bytes) plugins_path: /home/foodandpvc/dev/wp-content/plugins plugins_size: 8,49 MB (8906969 bytes) database_size: 85,57 MB (89729878 bytes) total_size: 140,06 MB (146868296 bytes)

wp-active-theme

name: Bulmascores (MDSify) version: 0.3 author: Domenico Majorana author_website: https://github.com/nicuz parent_theme: none theme_features: automatic-feed-links, title-tag, post-thumbnails, menus, html5, custom-background, customize-selective-refresh-widgets, custom-logo, custom-header, widgets theme_path: /home/foodandpvc/dev/wp-content/themes/MDSify

wp-themes-inactive (4)

Twenty Nineteen: version: 1.4, author: L’équipe WordPress Twenty Seventeen: version: 2.2, author: l’équipe WordPress Twenty Sixteen: version: 2.0, author: l'équipe WordPress Twenty Twenty: version: 1.1, author: L’équipe WordPress

wp-plugins-active (3)

Custom Post Type UI: version: 1.7.2, author: WebDevStudios Pods - Custom Content Types and Fields: version: 2.7.16.2, author: Pods Framework Team User Registration: version: 1.7.6, author: WPEverest

wp-plugins-inactive (2)

Akismet Anti-Spam: version: 4.1.3, author: Automattic Hello Dolly: version: 1.7.2, author: Matt Mullenweg

wp-media

image_editor: WP_Image_Editor_Imagick imagick_module_version: 1673 imagemagick_version: ImageMagick 6.8.9-9 Q16 i586 2019-10-21 http://www.imagemagick.org imagick_limits: imagick::RESOURCETYPE_AREA: imagick::RESOURCETYPE_DISK: -1 imagick::RESOURCETYPE_FILE: 15000 imagick::RESOURCETYPE_MAP: imagick::RESOURCETYPE_MEMORY: imagick::RESOURCETYPE_THREAD: 8 gd_version: bundled (2.1.0 compatible) ghostscript_version: 9.26

wp-server

server_architecture: Linux 4.14.154-ovh-vps-grsec-zfs-classid x86_64 httpd_software: Apache php_version: 7.0.33 php_sapi: fpm-fcgi max_input_variables: 16000 time_limit: 300 memory_limit: 512M max_input_time: -1 upload_max_size: 128M php_post_max_size: 130M curl_version: 7.38.0 OpenSSL/1.0.1t suhosin: false imagick_availability: true htaccess_extra_rules: false

wp-database

extension: mysqli server_version: 5.6.46-log client_version: 5.5.60

wp-constants

WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/foodandpvc/dev/wp-content WP_PLUGIN_DIR: /home/foodandpvc/dev/wp-content/plugins WP_MAX_MEMORY_LIMIT: 512M 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_LOCAL_DEV: undefined DB_CHARSET: utf8mb4 DB_COLLATE: undefined

wp-filesystem

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

pods

pods-server-software: Apache pods-user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0 pods-session-save-path: /tmp pods-session-save-path-exists: Oui pods-session-save-path-writable: Oui pods-session-max-lifetime: 1440 pods-opcode-cache-apc: Non pods-opcode-cache-memcached: Non pods-opcode-cache-opcache: Oui pods-opcode-cache-redis: Non pods-object-cache-apc: Non pods-object-cache-apcu: Non pods-object-cache-memcache: Non pods-object-cache-memcached: Oui pods-object-cache-redis: Oui pods-memory-current-usage: 9,765M pods-memory-current-usage-real: 4,000M pods-network-wide: Non pods-install-location: /home/foodandpvc/dev/wp-content/plugins/pods/ pods-developer: Non pods-tableless-mode: Non pods-light-mode: Non pods-strict: Non pods-allow-deprecated: Oui pods-api-cache: Oui pods-shortcode-allow-evaluate-tags: Non

`

Pods Package Export (helpful!)

{"meta":{"version":"2.7.16.2","build":1580458107},"pods":{"5":{"id":5,"name":"bien","label":"Biens","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"nom":{"id":16,"name":"nom","label":"Intitulé du bien","description":"","help":"","class":"","type":"text","weight":0,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","text_repeatable":"0","text_placeholder":""},"image":{"id":17,"name":"image","label":"Image","description":"","help":"","class":"","type":"file","weight":1,"pick_object":"custom-simple","pick_val":"","sister_id":"","required":"0","file_format_type":"single","file_uploader":"plupload","file_attachment_tab":"upload","file_edit_title":"1","file_show_edit_link":"0","file_linked":"0","file_limit":"0","file_restrict_filesize":"10MB","file_type":"images","file_field_template":"rows","file_add_button":"Ajouter un fichier","file_modal_title":"Attacher un fichier","file_modal_add_button":"Ajouter un fichier","file_wp_gallery_output":"0","file_wp_gallery_link":"post","file_wp_gallery_columns":"1","file_wp_gallery_random_sort":"0","file_wp_gallery_size":"thumbnail","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","file_allowed_extensions":""}},"show_in_menu":"1","label_singular":"Bien","public":"1","show_ui":"1","supports_title":"1","supports_editor":"1","publicly_queryable":"1","exclude_from_search":"0","capability_type":"post","capability_type_custom":"bien","capability_type_extra":"1","has_archive":"0","hierarchical":"0","rewrite":"1","rewrite_with_front":"1","rewrite_feeds":"0","rewrite_pages":"1","query_var":"1","can_export":"1","default_status":"draft","supports_author":"0","supports_thumbnail":"0","supports_excerpt":"0","supports_trackbacks":"0","supports_custom_fields":"0","supports_comments":"0","supports_revisions":"0","supports_page_attributes":"0","supports_post_formats":"0","built_in_taxonomies_category":"1","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","menu_position":"0","show_in_nav_menus":"1","show_in_admin_bar":"1","pfat_enable":"0","pfat_run_outside_loop":"0","pfat_append_single":"append","pfat_filter_single":"the_content","pfat_append_archive":"append","pfat_filter_archive":"the_content","rest_enable":"0","read_all":"0","write_all":"0"}}}
JoryHogeveen commented 4 years ago

Please provide all info that is asked for when submitting a bug. I've edited your bugreport with the template.

Gouze commented 4 years ago

Please provide all info that is asked for when submitting a bug. I've edited your bugreport with the template.

Done!