Notifications
Clear all

wpForo 1.x.x [Closed] PHP Error: media_buttons_context is deprecated since version 3.5.0! Use media_buttons instead.

7 Posts
3 Users
0 Reactions
2,230 Views
Posts: 13
Topic starter
(@bpls14)
Eminent Member
Joined: 4 years ago

Plugin Query Monitor (Version 3.7.1) shows this PHP error in below locations for wpForo plugin version: 1.9.6

Error: media_buttons_context is deprecated since version 3.5.0! Use media_buttons instead.

How to resolve the issue (My PHP version is 7.4.12)

However, there is no error in Forum Tools-> Debug.

Locations:

  • wp-includes/functions.php:5236
  • _deprecated_hook()
    wp-includes/plugin.php:638
  • apply_filters_deprecated()
    wp-admin/includes/media.php:658
  • media_buttons()
    wp-includes/class-wp-hook.php:292
  • do_action('media_buttons')
    wp-includes/class-wp-editor.php:235
  • _WP_Editors::editor()
    wp-includes/general-template.php:3498
  • wp_editor()
    wp-content/plugins/wpforo/wpf-admin/tools-tabs/misc.php:60
  • wpforo_tools()
    wp-includes/class-wp-hook.php:292
  • do_action('forums_page_wpforo-tools')
    wp-admin/admin.php:259

Thanks.

 

6 Replies
dimalifragis
Posts: 2611
(@dimalifragis)
Famed Member
Joined: 5 years ago

Where is the error, i don't see any error.

Posts: 13
Topic starter
(@bpls14)
Eminent Member
Joined: 4 years ago

In my earlier post, it was on the PHP Warnings, and it is the only issue with me discovered by the plugin: Query Monitor. 

Problem:

When trying to add the widget: wpForo Recent Post on 'page body' using KingComposer page builder, it does not show the widget's setting options (page shows posts as per widget's default setting). Rather it shows an error: Uncaught SyntaxError: Unexpected token '<' in browser's 'Developer Tool' (Ctrl+Shift+I).

All of the 6 wpForo widgets (including others) are working fine in sidebars (from Appearance->Widget admin-menu), and they are compatible with KingComposer EXCEPT this widget: wpForo Recent Post. 

Requirement: I'm looking forward to use this widget on the page body, or to know if there is any alternative easy option (a set number of recent posts from selected multiple forums with avatar). 

Error: +Uncaught SyntaxError: Unexpected token '<'

at b ( https://my domain.com/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,moxiejs,plupload,jquery-ui-slider&ver=5.7.2)

at Pe ( https://My Domain.com/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,moxiejs,plupload,jquery-ui-slider&ver=5.7.2)

at s.fn.init.append ( https://My Domain.com/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,moxiejs,plupload,jquery-ui-slider&ver=5.7.2)

at Object.render ( https://My Domain.com/wp-content/plugins/kingcomposer/assets/js/kc.params.js?ver=2.9.6)

at S.Event.tabs [as data] ( https://My Domain.com/wp-content/plugins/kingcomposer/assets/js/kc.params.js?ver=2.9.6)

at HTMLLIElement.<anonymous> ( https://My Domain.com/wp-content/plugins/kingcomposer/assets/js/kc.tools.js?ver=2.9.6)

at HTMLLIElement.dispatch ( https://My Domain.com/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,moxiejs,plupload,jquery-ui-slider&ver=5.7.2)

at HTMLLIElement.v.handle ( https://My Domain.com/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,moxiejs,plupload,jquery-ui-slider&ver=5.7.2)

at Object.trigger ( https://My Domain.com/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,moxiejs,plupload,jquery-ui-slider&ver=5.7.2)

at HTMLLIElement.<anonymous> ( https://My Domain.com/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,moxiejs,plupload,jquery-ui-slider&ver=5.7.2)

 

1 Reply
Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10587

@bpls14 ,

There is no any error from wpForo site. I only see errors from kingcompose plugin. I'd recommend you temporarily disable this plugin, delete all caches. Then exclude wpForo forum page from your cache plugin as it's instructed here: https://wpforo.com/community/faq/wpforo-and-cache-plugins/

dimalifragis
Posts: 2611
(@dimalifragis)
Famed Member
Joined: 5 years ago

Well a bit complicated all this.

Still not an ERROR but a Warning/Notice that doesn't seem to come from wpForo. I do not see wpForo anywhere.

Seems more like a conflict of somekind.

 

Posts: 13
Topic starter
(@bpls14)
Eminent Member
Joined: 4 years ago

Thank you @robert & @dimalifragis.

I did clean the caches, change theme, deactivate/ activate and uninstall/ install plugins. No luck.

Summary: Let's wait and see how things go after the next update of KingCompose. 

By the way, can I use 'Recent Post Widget' with my setting on page content in any way? 

Page 1 / 2