• Resolved John Basham

    (@permarad)


    All through admin i get

    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/dawkinso/public_html/wp-includes/functions.php on line 2923

    then in the plugins settings im getting

    Notice: Undefined variable: path in /home/dawkinso/public_html/wp-content/plugins/wp-mpdf/wp-mpdf_admin.php on line 472

    http://wordpress.org/extend/plugins/wp-mpdf/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter John Basham

    (@permarad)

    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.

    Plugin Author fkrauthan

    (@fkrauthan)

    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

    Thread Starter John Basham

    (@permarad)

    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
    Plugin Author fkrauthan

    (@fkrauthan)

    There should be a new version out (Version 2.12.0) within the next 24 hours. Where all this issues should be fixed.

    Thread Starter John Basham

    (@permarad)

    Perfect timing. I’ll check it out.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Getting Errors on install.’ is closed to new replies.