Please or Register to create posts and topics.

Error when posting threads

Hi, i am getting this error when trying to post a thread, the thread posts but it gives this error before..

Fatal error: Uncaught ArgumentCountError: Too few arguments to function AsgarosForumNotifications::subscribe_topic(), 0 passed in /home/fifaconc/public_html/wp-content/themes/splash/functions.php on line 120 and exactly 1 expected in /home/fifaconc/public_html/wp-content/plugins/asgaros-forum/includes/forum-notifications.php:107 Stack trace: #0 /home/fifaconc/public_html/wp-content/themes/splash/functions.php(120): AsgarosForumNotifications->subscribe_topic() #1 /home/fifaconc/public_html/wp-includes/class-wp-hook.php(288): auto_subscribe(148, 39) #2 /home/fifaconc/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /home/fifaconc/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #4 /home/fifaconc/public_html/wp-content/plugins/asgaros-forum/includes/forum-content.php(196): do_action(‘asgarosforum_af…’, 148, 39, ‘2018/09/09 – 19…’, ‘Game must be co…’, ‘https://fifacon…’) #5 /home/fifaconc/public_html/wp-content/plugins/asgaros-forum/includes/forum-content.php(36) in /home/fifaconc/public_html/wp-content/plugins/asgaros-forum/includes/forum-notifications.php on line 107

 

Any help please?

Hello @denzle

Please check your custom code which you have added to your theme functions.php file around line 120. It seems that you dont pass the ID of a topic to the subscribe_topic() function which is expected in its first parameter.

Edit: If you have this custom code from somewhere in this forum, please post it here so I can have a look and fix it.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!