-
Notifications
You must be signed in to change notification settings - Fork 808
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
Widgets: Social Icons - Missing argument for enqueue_admin_scripts callback when Page Builder (by SiteOrigin) is installed #9234
Comments
Also in 1064342-zen |
also reported in: https://wordpress.org/support/topic/v6-0-i-cant-edit-or-create-posts/ |
@jeherve I couldn't reproduce anything heavier than this warning. I actually found this warning when trying to reproduce a comment that someone left on the Release post. |
Here is my log of the error breaking the Edit page (fatal error): Fatal error: Uncaught ArgumentCountError: Too few arguments to function Jetpack_Widget_Social_Icons::enqueue_admin_scripts(), 0 passed in /home//public_html/test/wp-content/plugins/siteorigin-panels/inc/admin.php on line 449 and exactly 1 expected in /home//public_html/test/wp-content/plugins/jetpack/modules/widgets/social-icons.php:45 Stack trace: #0 /home//public_html/test/wp-content/plugins/siteorigin-panels/inc/admin.php(449): Jetpack_Widget_Social_Icons->enqueue_admin_scripts() #1 /home//public_html/test/wp-includes/class-wp-hook.php(286): SiteOrigin_Panels_Admin->enqueue_admin_scripts('') #2 /home//public_html/test/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #3 /home//public_html/test/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /home//public_html/test/wp-admin/admin-header.php(118): do_action('admin_print_scr...') #5 /home//public_html/test/wp-admin/edit-form-advanced.php(483): require_once('/home//...') # in /home//public_html/test/wp-content/plugins/jetpack/modules/widgets/social-icons.php on line 45 |
Here's a screenshot of the bigger problem coming from this issue that happens when the Social Icons Widget is indeed present on any sidebar and WP is running on PHP 7.1 or PHP 7.2: To reproduce:
|
Also reported in 423088-hc |
Hi Darren. Another option would be to temporarily deactivate Extra Sidebar
Widgets module in Jetpack Settings.
If you need the Extra Sidebar Widgets you could also roll back Jetpack to
previous version until next version is released.
…On Wed, Apr 4, 2018 at 5:26 PM Darren Bates ***@***.***> wrote:
Having the same issue. I had to DEACTIVATE PAGEBUILDER and ALL SiteOrgin
plugins in order to be able to add/edit posts/page and customize site.
[image: screenshot-2018-4-4 edit post smart cities library wordpress]
<https://user-images.githubusercontent.com/22603916/38317394-9b1cc15e-37f2-11e8-9cb9-2a97da738159.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9234 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAwKp1MAAgLKqcTkc4jvGbmdH-KoXcrsks5tlOYjgaJpZM4TGsWA>
.
|
I need the EXTRA SIDEBAR functionality. I use DREAMPRESS and I am not sure how to rollback JETPACK to previous version. Can you send instructions or must I contact DREAMPRESS to roll-back?
thanks.
|
Seems like the problem is generated when Page builder tries to call the enqueue_admin_scripts() method on all widgets available if the method exists. It does not pass any argument to that method call. Given that some of the widgets may want to take advantage of the cc @Misplon . |
@oskosk SiteOrigin is working the issue. Testing fix at the moment. @DarrenBatesLLC You can use: https://wordpress.org/plugins/wp-rollback/. (This isn't the best place for support though.) |
Thanks for the heads-up @Misplon ! By looking at the conflicting code here: https://github.com/Automattic/jetpack/blob/master/modules/widgets/social-icons.php#L48 ...It seems that even if SiteOrigin updates its behaviour then this widget won't show up properly there because we're trying to scope down the pages where we will be loading the supporting js for the widget form. There's an "Add Icon" button on the Social Icons widget form. Which is supposed to behave like this: But then, by testing with updating the Social Icons Widget |
We’re going to release a fix to prevent the fatal error. Basically, just not calling that function for anything that isn’t a core WP JS widget. Existing JP widgets not using the new front end admin JS way of doing things should still work as before. We’d love to have new Jetpack widgets working in Page Builder. In order to do that, we’d need a generic way to enqueue the required front end admin scripts. |
Thanks @Misplon! Looks like there was at least one other Jetpack widget that wasn't working properly with Page Builder (The Twitter Timeline widget) because it also checks if we're on the widgets/customizer page before enqueuing JS. This one didn't conflict because the callback it uses for |
Awesome, thanks for your effort and the update, it's most appreciated. |
SiteOrigin has just release version 2.6.4 of Page Builder, addressing issues like the one reported here. Unfortunately, the fix makes the Social Icons widget not be fully configurable if done through Page Builder. Props to @Misplon for such a rapid reponse. I'm closing this issue now. |
I created a fresh site with Jetpack 6.0, connected it, added Page Builder and when attempting to add a new page I saw these warnings in the log
Steps to reproduce the issue
WP_DEBUG
and/orWP_DEBUG_LOG
are turned onWhat I expected
What happened instead
The text was updated successfully, but these errors were encountered: