- This topic has 7 replies, 2 voices, and was last updated 2 years, 5 months ago by Elvin.
-
AuthorPosts
-
November 15, 2021 at 11:50 pm #2005899Graham
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?
November 16, 2021 at 12:22 am #2005912ElvinStaffCustomer SupportHi 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/#changelogThe 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. ๐
November 16, 2021 at 12:33 am #2005913GrahamIs 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.
November 16, 2021 at 12:51 am #2005925ElvinStaffCustomer SupportI’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/releasesI 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.4You 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
November 16, 2021 at 1:46 am #2005982GrahamThanks, 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.
November 16, 2021 at 5:44 pm #2007168ElvinStaffCustomer SupportNo 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/November 16, 2021 at 8:49 pm #2007227GrahamYes, I had to use 1.9.1 (I think), which was the only old version I had.
It works though as 9.9.9
November 16, 2021 at 8:56 pm #2007232ElvinStaffCustomer SupportIt 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.
-
AuthorPosts
- You must be logged in to reply to this topic.