Add new banner fatal error

My Affiliates Pro plugin does not allow me to add new banner, anytime I click on add new banner I get this ”Fatal Error” https://drive.google.com/file/d/1R5sD0Usl3owIp-ivSBXlqSp9Dk1n9b1h/view?usp=drive_link
Can somebody help me out here please.?


Comments

3 responses to “Add new banner fatal error”

  1. Hi Francis,

    Thanks for sharing your debug.log. If you look at the file contents, the only error related to Banners is the following:

    [18-Sep-2024 11:18:29 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function ads_modify_post_thumbnail_html(), 2 passed in /home/ezglobalshopping/public_html/wp-includes/class-wp-hook.php on line 324 and exactly 3 expected in /home/ezglobalshopping/public_html/wp-content/plugins/alids/core/controller.php:0
    Stack trace:
    #0 /home/ezglobalshopping/public_html/wp-includes/class-wp-hook.php(324): ads_modify_post_thumbnail_html()
    #1 /home/ezglobalshopping/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #2 /home/ezglobalshopping/public_html/wp-content/plugins/affiliates-pro/lib/ext/wordpress/class-affiliates-banner.php(81): apply_filters()
    #3 /home/ezglobalshopping/public_html/wp-content/plugins/affiliates-pro/lib/ext/wordpress/class-affiliates-banner.php(79): Affiliates_Banner::_wp_post_thumbnail_html()
    #4 /home/ezglobalshopping/public_html/wp-admin/includes/template.php(1456): Affiliates_Banner::post_thumbnail_meta_box()
    #5 /home/ezglobalshopping/public_html/wp-admin/edit-form-advanced.php(723): do_meta_boxes()
    #6 /home/ezglobalshopping/public_html/wp-admin/post-new.php(75): require('/home/ezglobals...')
    #7 {main}
    thrown in /home/ezglobalshopping/public_html/wp-content/plugins/alids/core/controller.php on line 0

    and occurs in wp-content/plugins/alids/core/controller.php:0 mentioning that the function ads_modify_post_thumbnail_html() is called with fewer arguments than expected. Wish I had more details to share but after some research the plugin involved appears to be premium, it’s the AliDropShip plugin if I’m not mistaken.
    What happens if you temporary disable the plugin involved and then try once more to add a new banner?

    Kind regards,
    George

  2. Francis Wills Avatar
    Francis Wills

    Hello George,
    Please check your email for mail with the subject line (Add ”New Banner” Fatal Error Log File)
    I followed the instructions and generated the file for your perusal and action
    Waiting

  3. Hi Francis,

    Welcome to our support forum and many thanks for using our Affiliates management tool on your site.

    After trying to visit the link you shared, it appears that it is not accessible. Can you please accept my request and also share a copy of your debug.log?
    You can enable WP Debugging if you edit your wp-config.php file and replace this line: 

    define( ‘WP_DEBUG’, false );

    with these lines:

    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );

    All logs will be stored in your site’s installation folder in wp-content/debug.log file. Once debugging is enabled, try adding again a new banner and after the fatal error occurs, take a full copy of the debug.log file and share it with us. You may as well send it directly to my email, george at itthinx dot com.

    Kind regards,
    George

Share