[Support request] Cannot configure GP Premium on new ClassicPress site

Home Forums Support [Support request] Cannot configure GP Premium on new ClassicPress site

Home Forums Support Cannot configure GP Premium on new ClassicPress site

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2005899
    Graham

    Hi,

    I just created a new ClassicPress site and installed GeneratePress as usual.

    But when I go to configure GP Premium, I get a white page.

    The error log shows:

    [16-Nov-2021 06:18:26 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function wp_set_script_translations() in /home/xxxxx/public_html/wp-content/themes/generatepress/inc/class-dashboard.php:212
    Stack trace:
    #0 /home/xxxxx/public_html/wp-includes/class-wp-hook.php(286): GeneratePress_Dashboard->enqueue_scripts('appearance_page...')
    #1 /home/xxxxx/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #2 /home/xxxxx/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /home/xxxxx/public_html/wp-admin/admin-header.php(97): do_action('admin_enqueue_s...', 'appearance_page...')
    #4 /home/xxxxx/public_html/wp-admin/admin.php(216): require_once('/home/xxxxx/p...')
    #5 /home/xxxxx/public_html/wp-admin/themes.php(10): require_once('/home/xxxxx/p...')
    #6 {main}
      thrown in /home/xxxxx/public_html/wp-content/themes/generatepress/inc/class-dashboard.php on line 212

    I’m not doing anything different to what I usually do and have no plugins installed.

    Any idea what’s going on?

    #2005912
    Elvin
    Staff
    Customer Support

    Hi there,

    GeneratePress and GP Premium isn’t exactly coded for unofficial WordPress forks variants like ClassicPress.

    The development direction of the theme and its addon plugin follows adherence to the official WordPress version (currently 5.8.2) so unofficial variants (like ClassicPress) will have issues like this because it diverges from official WordPress version.

    This divergence implies ClassicPress doesn’t fully copy all the codes from WordPress meaning some functions added to latest WordPress versions will not be on ClassicPress. (codes added on WP 5.0 onwards)

    And this is actually the case here because ClassicPress is a WordPress version 4.9 fork and the error mentions wp_set_script_translations() which is a function that was added on WordPress version 5.0. https://developer.wordpress.org/reference/functions/wp_set_script_translations/#changelog

    The function wp_set_script_translations() doesn’t exist in the ClassicPress fork because it started to move away from the official version starting 4.9. ๐Ÿ˜€

    ClassicPress moved away from the usage of Block editor, effectively diverging from the official WP development roadmap. GeneratePress and GP Premium followed the official WP development roadmap and has integrations with it. ๐Ÿ™‚

    A wise man once said:
    "Have you cleared your cache?"

    #2005913
    Graham

    Is it possible to disable the code?

    If not, can you email me the previous versions of the GeneratePress theme and GP Premium plugin.

    I didn’t have this problem until today.

    #2005925
    Elvin
    Staff
    Customer Support

    I’m not exactly sure what’s the last GP version prior to WordPress 5.0 but you can download the theme files from our repository.
    https://github.com/tomusborne/generatepress/releases

    I believe the last version that didn’t have the mentioned function was 3.0.4 which is this one:
    https://github.com/tomusborne/generatepress/tree/3.0.4

    You can download the .zip file but clicking the green code button. A dropdown showing a download link for the .zip should appear. – https://share.getcloudapp.com/6quvNbyA

    A wise man once said:
    "Have you cleared your cache?"

    #2005982
    Graham

    Thanks, I installed 3.0.4 and changed the version number to 9.9.9

    Everything works now,and I installed Admin Notices Manager to hide the update nag.

    I notice my other sites can no longer access GP Premium, so will have to do the same with them.

    #2007168
    Elvin
    Staff
    Customer Support

    No problem.

    You can send a message on our contact page if you need help w/ the previous versions GP Premium plugin –
    https://generatepress.com/contact/

    A wise man once said:
    "Have you cleared your cache?"

    #2007227
    Graham

    Yes, I had to use 1.9.1 (I think), which was the only old version I had.

    It works though as 9.9.9

    #2007232
    Elvin
    Staff
    Customer Support

    It works though as 9.9.9

    Nice one. Yeah I think any GPP version will work as long as you don’t use the Elements. (Block element in particular).

    Glad you got something to work. Thanks for letting us know.

    A wise man once said:
    "Have you cleared your cache?"

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