Suggested support code for season taxonomy is throwing an error
-
Hi, we used the code provided in this support thread to create seasons: https://www.ads-software.com/support/topic/create-seasons/ – it worked until the last update of your plugin 3.4.0?. Now we get an error in our admin-ajax.php file (returning 0)
This is the error message we get:
Ein Fehler vom Typ E_ERROR wurde in der Zeile 33 der Datei /home/helveti3/public_html/wp/wp-content/themes/helvetiarockt/inc/taxonomies/season.php verursacht. Fehlermeldung: Uncaught Error: Call to a member function get_podcast_tax_capabilities() on null in /home/helveti3/public_html/wp/wp-content/themes/helvetiarockt/inc/taxonomies/season.php:33
Stack trace: 0 /home/helveti3/public_html/wp/wp-includes/class-wp-hook.php(324): ssp_register_seasons(”) 1 /home/helveti3/public_html/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 2 /home/helveti3/public_html/wp/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 3 /home/helveti3/public_html/wp/wp-settings.php(695): do_action(‘init’) 4 /home/helveti3/public_html/wp/wp-config.php(84): require_once(‘/home/helveti3/…’) 5 /home/helveti3/public_html/wp/wp-load.php(50): require_once(‘/home/helveti3/…’) 6 /home/helveti3/public_html/wp/wp-admin/admin-ajax.php(22): require_once(‘/home/helveti3/…’) 7 {main}thrown
The line 33 mentioned in the error message is:
'capabilities' => ssp_app()->get_service( 'roles_handler' )->get_podcast_tax_capabilities(),
Can you help us to update the code so it works with the newest plugin version?Thanks!
Regards, Nina
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.