Celebrating 7 Years! Get up to $30 off GeneratePress Premium!

[Support request] Fixing Customizer js

Home Forums Support [Support request] Fixing Customizer js

Home Forums Support Fixing Customizer js

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #499562
    SERGIO ARBEO

    Hello

    I purchased GeneratePress today but the Customizer was not working. The cause is in class_typography_control.php, both in the theme (inc/customizer/controls/class-typography-control.php:72) and the premium plugins (library/customizer/controls/class-typography-control.php:64). The problem is that data.default_fonts seems an array, though it is being traversed as an objet, not sure why. In any case, the minimum modification that keeps the array being traversed as an object and fixes the customizer is adding the following line after the for in both files: <# if (!data.default_fonts.hasOwnProperty(key)) { continue; } #>

    GeneratePress 2.0.2
    GP Premium 1.5.6
    #499662
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    That’s strange, we haven’t had any other reports of this, and haven’t experienced it ourselves.

    Is there a specific error in the console you can share?

    #499766
    SERGIO ARBEO

    Yes. The error says that data.default_fonts[ key ].split is not a function. This is caused by data.default_fonts being an array of fonts, and is produced when the key is each (I think it is coming from prototype, but cannot be sure).

    #499932
    Tom
    Lead Developer
    Lead Developer

    This is strange, I wonder why no one else has run into this.

    Is there any chance you can shoot me an email with temp admin login details so I can take a closer look?: https://generatepress.com/contact/

    #500037
    SERGIO ARBEO

    Done

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.