Site logo

Archived topic

Javascript/React Error in Customizer

16 replies · Started by Stephane Bergeron on October 19, 2021

Viewing posts 1–15 of 17

Hi!

I'M testing the latest RCs of GeneratePress and GP Premium (+ GB + GBP) on a site and I went to work on the typography and I'm getting React errors and part of the controls do not load:

react-dom.min.js?ver=16.13.1:125 TypeError: r.reduce is not a function
at Rr (customizer.js?ver=3.1.0-rc.2:5) (this links to /wp-content/themes/generatepress/assets/dist/customizer.js?ver=3.1.0-rc.2)

Is anyone else seeing this? That was not an issue with earlier RCs or betas.

Thanks!

Hi there,

Have you tried checking with ALL plugins disabled except GPP and GB + GBP?

Also, can you share the WordPress version your site is currently using? For an attempt to replicate the same bug.

I'm currently using WordPress 5.8.1 + GeneratePress 3.1.0-rc.2 + GP Premium 2.1.0-rc.2 (fresh install, no other plugins) and wasn't able to replicate this.

Hi,

WP version is 5.8.1 and I tried deactivating plugins and still see the issue. FWIW, it manifests only when I open the Typography section in the customizer.

Can you provide temporary access to the backend of the site? To check a few things.

I've notified the devs about this for checking along w/ the other potential bugs that may be related to this.

I'm leaving the topic open for the devs to go back and leave findings. :)

Hi!

I have entered temporary credentials in the Private Info field to a temp copy of the site I made. It's in development on Cloudways right now.

Thank you!

Hi there,

we found the bug and we will be pushing another patch out asap! Thanks for reporting this!

Thanks David! Good to know it was not something I did or a conflict as the tools used on this site are the ones I plan to use a lot going forward (I mean GB+Pro + a couple other block plugins). I worked a lot with Elementor before but we're moving a lot more to Gutenberg now.

Thanks again!

Hello Tom,

That one is fixed thank you!

I'm seeing a new one in console though ;)

customizer.js?ver=2.1.0-rc.2:91 Uncaught TypeError: Cannot read properties of undefined (reading 'get')
at customizer.js:91 (/wp-content/plugins/gp-premium/spacing/functions/customizer/js/customizer.js?ver=2.1.0-rc.2)
at dispatch (jquery.min.js:2)
at v.handle (jquery.min.js:2)

I haven't seen any issue with fonctionnality yet though but I've just tested the other fix.

Thanks!

Is that on the site you provided login details for? I'm not seeing it (but am still seeing the reduce error).

Hello Tom,

No that was on the original I'd updated to RC3. I now just updated to RC3 as well on the one you have access to so you may see it now.

I'm not seeing that error on the staging site - are you? If so, does it appear when you enter a specific section?

No specific section. I see it just entering the customizer.

Not seeing it here even in incognito mode.

Do you see it if you login with the account you created for us?

Hi Tom. I did not keep that password and, if that wasn't clear, I only see these errors logged-in and with the customizer open.

This archived topic is closed to new replies.