Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorter component not saving in Customizer #4047

Open
crerem opened this issue Dec 18, 2024 · 2 comments
Open

Sorter component not saving in Customizer #4047

crerem opened this issue Dec 18, 2024 · 2 comments

Comments

@crerem
Copy link

crerem commented Dec 18, 2024

Site Health Report

`

wp-core

version: 6.7.1
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: local
user_count: 9
dotorg_communication: true

wp-paths-sizes

wordpress_path: C:\Users\crere\Local Sites\residenceme\app\public
wordpress_size: loading...
uploads_path: C:\Users\crere\Local Sites\residenceme\app\public/wp-content/uploads
uploads_size: loading...
themes_path: C:\Users\crere\Local Sites\residenceme\app\public/wp-content/themes
themes_size: loading...
plugins_path: C:\Users\crere\Local Sites\residenceme\app\public/wp-content/plugins
plugins_size: loading...
fonts_path: C:\Users\crere\Local Sites\residenceme\app\public/wp-content/uploads/fonts
fonts_size: loading...
database_size: loading...
total_size: loading...

wp-active-theme

name: WpResidence (wpresidence)
version: 5.0.7
author: wpestate
author_website: https://www.wpestate.org
parent_theme: none
theme_features: core-block-patterns, widgets-block-editor, title-tag, post-thumbnails, automatic-feed-links, custom-background, align-wide, rtl, gutenberg, menus, widgets
theme_path: C:\Users\crere\Local Sites\residenceme\app\public/wp-content/themes/wpresidence
auto_update: Disabled

wp-themes-inactive (4)

Twenty Twenty-Five: version: 1.0, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Four: version: 1.3, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Three: version: 1.6, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Two: version: 1.9, author: the WordPress team, Auto-updates disabled

wp-plugins-active (12)

Elementor: version: 3.26.0, author: Elementor.com, Auto-updates disabled
MlsImport: version: 5.8.4, author: MlsImport, Auto-updates disabled
One Click Demo Import: version: 3.3.0, author: OCDI, Auto-updates disabled
Query Monitor: version: 3.17.0, author: John Blackbourn, Auto-updates disabled
Slider Revolution: version: 6.7.17, author: ThemePunch, Auto-updates disabled
SVG Support: version: 2.5.8, author: Benbodhi, Auto-updates disabled
WordPress Real Estate Plugin: version: 1.0, author: Your Name, Auto-updates disabled
WPBakery Page Builder: version: 8.0.1, author: Michael M - WPBakery.com, Auto-updates disabled
Wpresidence - Gutenberg blocks: version: 1.50.1, author: wpestate, Auto-updates disabled
Wpresidence -Theme Core Functionality: version: 5.0.7, author: wpestate, Auto-updates disabled
WpResidence Elementor Design Studio: version: 5.0.4, author: WpEstate, Auto-updates disabled
WpResidence Elementor Widgets: version: 5.0.7, author: WpEstate, Auto-updates disabled

wp-plugins-inactive (1)

WpEstate CRM: version: 5.0.4, author: wpestate, Auto-updates disabled

wp-media

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1808
imagemagick_version: ImageMagick 7.1.0-18 Q16 x64 2021-12-14 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: 1
post_max_size: 1000M
upload_max_filesize: 300M
max_effective_size: 300 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 16 GB
imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
imagick::RESOURCETYPE_FILE: 1536
imagick::RESOURCETYPE_MAP: 16 GB
imagick::RESOURCETYPE_MEMORY: 8 GB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CLIPBOARD, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DJVU, DNG, DOT, DPS, DPX, DXT1, DXT5, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLIF, FLV, FPX, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, JXL, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WPG, X3F, XBM, XC, XCF, XPM, XPS, XV, YAML, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
ghostscript_version: not available

wp-server

server_architecture: Windows NT 10.0 AMD64
httpd_software: nginx/1.26.1
php_version: 8.2.23 64bit
php_sapi: cgi-fcgi
max_input_variables: 4000
time_limit: 1200
memory_limit: 256M
max_input_time: 600
upload_max_filesize: 300M
php_post_max_size: 1000M
curl_version: 8.7.0-DEV OpenSSL/3.0.13
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: false
current: 2024-12-18T14:51:10+00:00
utc-time: Wednesday, 18-Dec-24 14:51:10 UTC
server-time: 2024-12-18T14:51:04+00:00

wp-database

extension: mysqli
server_version: 8.0.16
client_version: mysqlnd 8.2.23
max_allowed_packet: 16777216
max_connections: 151

wp-constants

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: C:\Users\crere\Local Sites\residenceme\app\public/wp-content
WP_PLUGIN_DIR: C:\Users\crere\Local Sites\residenceme\app\public/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: true
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: local
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

wp-filesystem

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
fonts: writable
0: Writable

redux-framework

version: 4.5.3.1
installation: in_plugin
data directory: C:/Users/crere/Local Sites/residenceme/app/public/wp-content/plugins/wpresidence-core/redux-framework/redux-core/
browser:
Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Browser: Chrome
Version: 131.0.0.0
Platform: Windows

redux-instance-wpresidence_admin

opt_name: wpresidence_admin
global_variable: wpresidence_admin
dev_mode: false
ajax_save: true
page_slug: wpresidence_admin
page_permissions: manage_options
menu_type: menu
page_parent: themes.php
compiler: true
output: true
output_tag: true
templates_path: undefined
extensions:
Accordion: 4.3.16
Color Scheme: 4.4.10
Custom Fonts: 4.4.2
Customizer: 4.5.1
Datetime: 4.3.15
Google Maps: 4.4.0
Icon Select: 4.4.2
Import Export: 4.0.0
Js Button: 4.3.16
Metaboxes: 4.2.0
Multi Media: 4.4.1
Options Object: 4.0.0
Repeater: 4.3.13
Shortcodes: 4.3.6
Social Profiles: 4.3.17
Tabbed: 4.4.8
Taxonomy: 4.4.6
Users: 4.4.1
Widget Areas: 4.3.20
Wpestate Currency: 3.0.0
Wpestate Custom Fields List: 3.0.0
Wpestate Custom Unit Design: 3.0.0
Wpestate Custom Url Rewrite: 3.0.0
Wpestate Generate Pins: 3.0.0
Wpestate Header Footer: 3.0.0
Wpestate Image Size: 3.0.0
Wpestate Property Card Details Customizer: 3.0.0
Wpestate Select: 3.0.0
Wpestate Set Search: 3.0.0
Wpestate Sortable: 3.0.0
Wpestate Taxonomy Tabs: 3.0.0
Wpestate Taxonomy Tabs Price: 3.0.0

`

Steps to reproduce

Added this section into a theme

Redux::setSection($opt_name, array(
'title' => __('Selection for Accordion Layout', 'wpresidence-core'),
'id' => 'property_page_simple_acc_sec_tab',
'subsection' => true,

 'fields' => array(
     array(
         'id' => 'wp_estate_property_page_acc_order',
         'type' => 'sorter',
         'title' => 'Arrange Sections',
         'desc' => 'Drag and drop sections and organize your property page design.',
         'options' => array(
             'enabled' => array(
                 'overview' => esc_html__('Overview', 'wpresidence-core'),
                 'description' => esc_html__('Description', 'wpresidence-core'),
                 'documents' => esc_html__('Documents', 'wpresidence-core'),
                 'multi-units' => esc_html__('Multi Units', 'wpresidence-core'),
                 'energy-savings' => esc_html__('Energy Savings', 'wpresidence-core'),
                 'address' => esc_html__('Address', 'wpresidence-core'),
                 'listing_details' => esc_html__('Listing Details', 'wpresidence-core'),
                 'features' => esc_html__('Amenities and Features', 'wpresidence-core'),
                 'video' => esc_html__('Video', 'wpresidence-core'),
                 'map' => esc_html__('Map', 'wpresidence-core'),
                 'virtual_tour' => esc_html__('Virtual Tour', 'wpresidence-core'),
                 'walkscore' => esc_html__('WalkScore', 'wpresidence-core'),
                 'nearby' => esc_html__('What\'s Nearby', 'wpresidence-core'),
                 'payment_calculator' => esc_html__('Payment Calculator', 'wpresidence-core'),
                 'floor_plans' => esc_html__('Floor Plans', 'wpresidence-core'),
                 'page_views' => esc_html__('Page Views', 'wpresidence-core'),
                 'schedule_tour' => esc_html__('Schedule Tour', 'wpresidence-core'),
                 'agent_area' => esc_html__('Agent', 'wpresidence-core'),
                 'other_agents' => esc_html__('Other Agents', 'wpresidence-core'),
                 'reviews' => esc_html__('Reviews', 'wpresidence-core'),
                 'similar' => esc_html__('Similar Listings', 'wpresidence-core'),
             ),
             'disabled' => array(
             )
         ),
         'save_always' => true,
     ),

)));

Expected Behavior

User should be able to sort items and move theme betwen disabled and enabled areas. On save the order and location (enabled/disabled) should be saved . This thing should happen in customizer.

Actual Behavior

Evertyhing workin as expected in wp-admin. However in customizer, if you change the order and location the data will not be saved .

Any Error Details (PHP/JavaScript)

I noticed the following - in console.log for customizer i see the option changed like this https://prnt.sc/hTqE1VWi7bCp - wpresidence_admin is the $opt_name

In wp-admin -(where is workng fine) i see in network ajax https://prnt.sc/j2_VkNtoBmlc

@crerem crerem changed the title Sorter component not saving in Cusomizer Sorter component not saving in Customizer Dec 18, 2024
@kprovance
Copy link
Member

Unfortunately, next year is the soonest I can look at this. That said, Redux is a community project. If you're a developer and want to take a stab at a solution and submit a pull request, I'll review it and credit you.

@crerem
Copy link
Author

crerem commented Dec 19, 2024

No problem , if i came with a solution until that time i will let you know -Happy Holidays and thank you for your efforts.

kprovance added a commit that referenced this issue Jan 2, 2025
Signed-off-by: Kev Provance <kevin.provance@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants