Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

referenced 'registerAdserver' but it was never created

Open ghost opened this issue 7 years ago • 10 comments

Type of issue

bug/question

Description

When I add a dfpAdServerVideo to my modules I get Warning in the console. I don't use this module in my webpage, it is only included into Prebid.js library. blad-prebid

Steps to reproduce

  1. Use: gulp serve --modules=consentManagement,rubiconBidAdapter,adomikAnalyticsAdapter,dfpAdServerVideo
  2. On the site with active Prebid library above described Warning is present.

Expected results

My questions are: Is it a bug? How can I handle this issue?

Platform details

I tested Prebid.js version 2.26.0, 2.25.0 only.

ghost avatar Aug 01 '19 13:08 ghost

@aszydlo Thanks for reporting this, I will check and get back to you.

jaiminpanchal27 avatar Aug 01 '19 15:08 jaiminpanchal27

+1, i get this as well and no idea if its something to worry about?

spormeon avatar Aug 02 '19 11:08 spormeon

Just FYI, the warning is because the registerAdserver hook is defined in the categoryTranslation module (which isn't in your build) but is referenced in other modules such as the dfpAdServerVideo that are in your build.

snapwich avatar Aug 02 '19 22:08 snapwich

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 16 '19 23:08 stale[bot]

I am using Prebid 2.34.0 Getting the same warning as well as one other:- "fun-hooks: referenced 'registerAdserver' but it was never created" "fun-hooks: referenced 'adpod' but it was never created" Is there anything I should worry about?

tandalevaibhav avatar Oct 01 '19 11:10 tandalevaibhav

@tandalevaibhav We have verified this and not a bug. This warning appears when an optional module is adds a hook on hook point which does not exist.

In this case, dfpAdserverVideo here is trying to add hook on categoryTranslation here but as categoryTranslation module is not included in build this warning is logged.

We are trying to fix this unwanted warning message

jaiminpanchal27 avatar Oct 02 '19 02:10 jaiminpanchal27

assigning @robertrmartinez

gglas avatar Feb 08 '21 16:02 gglas

@patmmccann do the referenced PRs just relate or do the address the issue? If they don't address, @robertrmartinez quick ping reminder on this one!

gglas avatar May 10 '21 15:05 gglas

#6464 fixes the issue, awaiting merge

patmmccann avatar May 21 '21 10:05 patmmccann

merged and fixed in 5.0, closing issue

gglas avatar Jul 19 '21 15:07 gglas