-
Notifications
You must be signed in to change notification settings - Fork 586
Repeater Issue #4037
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
Comments
You do understand that you completely ignored what I wrote you on the wp.org forum, correct? Where I asked: Even when I ask for people to carefully follow the instructions, they still don't. It blows my mind. Here they were. This is the data I needed. It's not optional. If you cannot provide it, I cannot help. It's that simple. Hello, and welcome to Redux Framework! We offer free bug reporting for our software. Since this service is free, we prefer to provide support our way. This means we ask you to first read the entire block of text below. Please do not post a few lines of what you think is wrong. Doing so without the required information below will get your ticket closed without a reply. We're sorry we have to enforce this policy now. PLEASE, BEFORE YOU POST, READ THIS ENTIRE BLOCK OF TEXT!!! We require all the information specified below for support. If this text block is ignored or the required data is not provided, your ticket will be automatically closed. NO exceptions. Thank you. Are you a user reporting a bug with a theme or plugin?Redux allows developers to include an options panel in their projects. Consequently, we do not offer support for folks who have purchased a theme or plugin that uses Redux. The responsibility of support for themes and plugins falls upon their author. We realize that some authors have included support links for Redux in their projects when they should not have. We apologize for that confusion and are taking steps to remedy that situation. Please contact the author for support if you have purchased a theme or plugin that uses Redux. If the author is unavailable for help or has discontinued support, please refer to this before posting to our issue tracker: https://devs.redux.io/guides/basics/support-defined.html Have a development usage question?The issue tracker isn't the best place for usage questions. This format is not well-suited for questions & answers, and questions here don't have as much visibility as they do elsewhere. Before you ask a question, here are some resources to get help first:
Think you found a bug?Please use the "BUG REPORT" template below. Remember, we are rabid about backward compatibility. Do not submit fixes that break previous ways of doing so, or we will reject them. Also, we will reject your request unless you provide a Site Health Report. NO exceptions. If you do not include this information, and we close your ticket, please do not ask why. Instructions are listed below. You MUST use Redux in dev mode when submitting an issue to us. If you are not or have circumvented our dev mode protocol, you are on your own. There could be information in your case that requires dev mode active (Compressed JavaScript, for example. We cannot diagnose issues with compressed JavaScript and why dev mode needs to be enabled). If an error or notice appears on your screen, please cut and paste it into your issue. PLEASE, do not say you received a critical error' without telling us what the error or notice is. If you do so, the ticket will be closed without a reply. Before you post, check the JavaScript!Sometimes, an issue may be tied to JavaScript. To make this determination, you will need to check the JavaScript console. To do this, ensure your web browser is the topmost window. On your keyboard, press CTRL+SHIFT+I. The JavaScript console will open. If there are notices or errors there, please cut and paste them into your issue. We would prefer a cut-and-paste since it will include all pertinent information. Also, Redux dev mode must be enabled so an accurate line number may be reported. --> Site Health ReportInstructions: In the WordPress Admin screen, click Tools, select Redux, click Info, and click "Copy site info to clipboard." Paste the results here. Steps to reproducePlease list your steps clearly so that we can do the same things you do to reproduce the issue. Expected BehaviorWhat did you expect to happen? Actual BehaviorWhat actually happened? Any Error Details (PHP/JavaScript)Please post any PHP error messages, trace logs, or JavaScript console error messages here |
First of all, congrats for this plugin. It helps me to build my plugin options. Site Health Reportwp-coreversion: 6.6.2 wp-paths-sizeswordpress_path: D:\laragon\www\plugins wp-active-themename: Twenty Twenty-One (twentytwentyone) wp-plugins-active (1)Cookie Consent Modal with Bot Detection: version: 1.0.0, author: Nick Papazetis, Auto-updates disabled wp-plugins-inactive (5)Plugin Check (PCP): version: 1.2.0, author: WordPress Performance Team and Plugin Review Team, Auto-updates disabled wp-mediaimage_editor: WP_Image_Editor_GD wp-serverserver_architecture: Windows NT 10.0 AMD64 wp-databaseextension: mysqli wp-constantsWP_HOME: https://plugins.local wp-filesystemwordpress: writable redux-frameworkversion: 4.5.0 redux-instance-cookie_consent_modalopt_name: cookie_consent_modal Steps to reproduceTry to create just a repeater field with some text fields in it. Do not add any other fields outside the repeater. Expected BehaviorWhen I click "Add", should give me the option to fill the fields on the next repeater section. Actual BehaviorIt doesn't do anything and returns an error on console. Any Error Details (PHP/JavaScript)
|
@papazetis - Please download v4.5.0.1 from this repo, install it, activate and let me know if your issue is solved. Thanks. |
Yes it works ok now. Thanks for sorting this out! |
There is an issue connected to both the Repeater and TinyMCE in the file
I’m encountering an error:
In my setup, I have multiple repeaters, where some contain a TinyMCE editor, while others do not. The issue arises because the first repeater in the settings does not include a TinyMCE editor. As a result, Could you help revise this part of the code to handle such cases where the TinyMCE editor might not be present on the first repeater? |
Here is a fix for this as contribution so you can easily fix it.I changed just two things in file redux-repeater.js FIRST CHANGE changed to: SECOND CHANGE Line of code 148 changed to: Both changes were nececery in order to make this repeater and editor to work since both were not working properly. Here is also complete full code at the end
|
@blackandcode, I'll take a look at your proposed changes today. I have to ask about this:
The two lines are the same. I'm not sure what your proposed change is. |
I apologize for the confusion earlier. I mistakenly shared a newly added line instead of the current one. The current selector in current version of Redux.io is:
The issue with this selector is that it specifically targets the first repeater. However, that repeater might not always contain a redux-container-editor. For example, in my case, I had two repeaters, and the first one did not include a redux-container-editor as it was a simpler one. This is way i replaced it with |
No problem. Thanks for updating. I'll get it a spin now. |
Should now be resolved. |
I am creating a plugin using Redux v4.5.0 and it returns an error on console when I am trying to add a new repeater section by clicking "Add"
Error:
Uncaught TypeError: Cannot read properties of undefined (reading 'mceInit')
on file/redux-core/inc/extensions/repeater/repeater/redux-repeater.js
on line 148editorSettings = window.tinyMCEPreInit.mceInit[firstEditorId];
It looks like the
window.tinyMCEPreInit
isundefined
I made a quick fix by replacing this line with
editorSettings = ( typeof window.tinyMCEPreInit !== 'undefined' ) ? window.tinyMCEPreInit.mceInit[firstEditorId] : '';
The text was updated successfully, but these errors were encountered: