Critical error on saving page with shortcode
-
Hi.
Since updating from 4.5.6 to 4.5.7 I see a new error on my site. I’ve created my own shortcode, which uses do_shortcode on one of *your* shortcodes, to give document links in a certain format:
[download_data data='download_link' id='" . $atts['word'] . "']
That worked (and still works) fine on 4.5.6, but on 4.5.7 whenever I try to save a page which contains my shortcode, I get a critical error. If I disable Download Monitor I can save the page no problem. The rest of the site continues to work correctly – it’s only pages which contain my shortcode which cause the error:
Error Details ============= An error of type E_ERROR was caused in line 179 of the file /www/wp-content/plugins/download-monitor/src/Admin/CustomColumns.php. Error message: Uncaught ArgumentCountError: Too few arguments to function DLM_Custom_Columns::prepend_id_to_title(), 1 passed in /wordpress/wp-includes/class-wp-hook.php on line 307 and exactly 2 expected in /www/wp-content/plugins/download-monitor/src/Admin/CustomColumns.php:179 Stack trace: #0 /wordpress/wp-includes/class-wp-hook.php(307): DLM_Custom_Columns->prepend_id_to_title('To Donate') #1 /wordpress/wp-includes/plugin.php(189): WP_Hook->apply_filters('To Donate', Array) #2 /www/wp-content/themes/make/inc/sections/columns/frontend-template.php(13): apply_filters('the_title', 'To Donate') #3 /www/wp-content/themes/make/inc/builder/core/api.php(722): require('/www/wp-content...') #4 /www/wp-content/themes/make/inc/builder/core/save.php(388): ttfmake_get_template('sections/column...') #5 /www/wp-content/themes/make/inc/builder/core/save.php(345): TTFMAKE_Builder_Save->generate_post_content(Array) #6 /wordpress/wp-includes/class-wp-hook.php(309): TTFMAKE_Builder_Save->wp_insert_post_data(Array, Array) #7 /wordpress/wp-in
… and the error text cuts off there.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Critical error on saving page with shortcode’ is closed to new replies.