Notice: has_cap is being caused in wp-mpdf.php line 437
add_submenu_page('options-general.php', 'wp-mpdf - config', 'wp-mpdf', '8', dirname(__FILE__), 'mpdf_admin');
the ‘8’ is the role identifier and wordpress no longer supports using the numbers, you need to use an actual capability.
change the ‘8’ to ‘edit_pages’
add_submenu_page('options-general.php', 'wp-mpdf - config', 'wp-mpdf', 'edit_pages', dirname(__FILE__), 'mpdf_admin');
Still working on the second error.
Hi,
Thank you for reporting and fixing this issue. Can you please create a pull request at github with your changes (https://github.com/fkrauthan/wp-mpdf)?
Thank you
Getting a lot of errors when clicking on the button added to the template.
Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /home/dawkinso/public_html/wp-includes/functions.php on line 2841
Notice: get_author_name is deprecated since version 2.8! Use get_the_author_meta('display_name') instead. in /home/dawkinso/public_html/wp-includes/functions.php on line 2841
Notice: trackback_url was called with an argument that is deprecated since version 2.5! Use get_trackback_url() instead if you do not want the value echoed. in /home/dawkinso/public_html/wp-includes/functions.php on line 2925
Notice: Trying to get property of non-object in /home/dawkinso/public_html/wp-content/plugins/wp-mpdf/wp-mpdf.php on line 423
Warning: file_put_contents(/home/dawkinso/public_html/wp-content/plugins/wp-mpdf/debug/default_test-email-1-0.pdf.html) [function.file-put-contents]: failed to open stream: No such file or directory in /home/dawkinso/public_html/wp-content/plugins/wp-mpdf/wp-mpdf.php on line 231
Warning: Cannot modify header information - headers already sent by (output started at /home/dawkinso/public_html/wp-includes/functions.php:2841) in /home/dawkinso/public_html/wp-content/plugins/wp-mpdf/mpdf/mpdf.php on line 7148
Warning: Cannot modify header information - headers already sent by (output started at /home/dawkinso/public_html/wp-includes/functions.php:2841) in /home/dawkinso/public_html/wp-content/plugins/wp-mpdf/mpdf/mpdf.php on line 1743
mPDF error: Some data has already been output to browser, can't send PDF file
There should be a new version out (Version 2.12.0) within the next 24 hours. Where all this issues should be fixed.
Perfect timing. I’ll check it out.