Support » Plugin: Advanced Ads – Ad Manager & AdSense » Fatal error in latest version

  • Resolved sirtaptap

    (@sirtaptap)


    Jetpack auto-updated my pugin to the latest version and the plugin instantly hits a fatal error now:

    An error of type E_ERROR was caused in line 18 of the file /var/www/html/wp-content/plugins/advanced-ads/modules/ads-txt/admin/class-advanced-ads-ads-txt-admin.php. Error message: Uncaught ArgumentCountError: Too few arguments to function Advanced_Ads_Ads_Txt_Admin::__construct(), 1 passed in /var/www/html/wp-content/plugins/advanced-ads/modules/ads-txt/main.php on line 15 and exactly 2 expected in /var/www/html/wp-content/plugins/advanced-ads/modules/ads-txt/admin/class-advanced-ads-ads-txt-admin.php:18
    Stack trace:
    #0 /var/www/html/wp-content/plugins/advanced-ads/modules/ads-txt/main.php(15): Advanced_Ads_Ads_Txt_Admin->__construct(Object(Advanced_Ads_Ads_Txt_Strategy))
    #1 /var/www/html/wp-content/plugins/advanced-ads/includes/load_modules.php(64): require_once('/var/www/html/w...')
    #2 /var/www/html/wp-content/plugins/advanced-ads/advanced-ads.php(60): Advanced_Ads_ModuleLoader::loadModules('/var/www/html/w...')
    #3 /var/www/html/wp-settings.php(362): include_once('/var/www/html/w...')
    #4 /var/www/html/wp-config.php(92): require_once('/var/www/html/w...')
    #5 /var/www/html/wp-load.php(37): require_once('/var/www/html/w...')
    #6 /var/www/html/wp-admin/admin.php(34): require_once('/var/ww
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Thank you and sorry for this.

    Which PHP version are you using?

    Thanks,
    Thomas

    7.3 latest security patch; the not enough arguments warning was elevated to an error as early as 7.1 though I believe

    Plugin Author Thomas Maier

    (@webzunft)

    Thanks for your feedback.

    > #0 /var/www/html/wp-content/plugins/advanced-ads/modules/ads-txt/main.php(15): Advanced_Ads_Ads_Txt_Admin->__construct(Object(Advanced_Ads_Ads_Txt_Strategy))

    This relates to the previous version of Advanced Ads and not the current one. Is it possible that Jetpack did not update some files?

    You can see the new version here and line 15 is empty.

    Thanks,
    Thomas

    Strange, looks like my server ran out of disk space and only Advanced Ads was affected, maybe it ended up half-updated. fixed the disk space issue and it seems to be working fine again!

    Plugin Author Thomas Maier

    (@webzunft)

    Hi sirtaptap,

    thanks for your feedback. I learned by now that there might be an entry about the update under https://wordpress.com/activity-log/{site_url}. Maybe you can check if there is anything indicating an issue.

    Thanks,
    Thomas

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.