Jump to content

migrate from 3.0.2 to 4.0.2 got error


Recommended Posts

When we load the Banners content we got the following error message

Fatal error: Uncaught ArgumentCountError: Too few arguments to function deliverVastAd(),
 11 passed in /var/adserver/plugins/bannerTypeHtml/vastInlineBannerTypeHtml/vastInlineHtml.delivery.php
 on line 65 and exactly 12 expected in
 /var/adserver/plugins/bannerTypeHtml/vastInlineBannerTypeHtml/commonDelivery.php:23 Stack trace:

deliverVastAd('vastInline', Array, 0, '', '', true, false, false, NULL, '', '')
(Array, 0, '', '', true, false, false, NULL, true, '', '')
/var/adserver/lib/max/Delivery/adRender.php(108): OX_Delivery_Common_hook('adRender', Array, 'Plugin_bannerTy...')

#3 /var/adserver/lib/max/other/html.php(1528): MAX_adRender(Array, 0, '', '_blank', '', true, '', false, false)

#4 /var/adserver/www/admin/campaign-banners.php(185): MAX_bannerPreview('1149')

#5 {main} thrown in /var/adserver/plugins/bannerTypeHtml/vastInlineBannerTypeHtml/commonDelivery.php on line 23

Link to comment
Share on other sites

But our case is "Too few arguments to function deliverVastAd()" when loading some Ad info.

According to above log, the "function" expect 12 arguments but our program only loaded 11 arguments.

Can you help us to fix this problem ?

Link to comment
Share on other sites

We fixed this problem as this /var/adserver/plugins/bannerTypeHtml/vastInlineBannerTypeHtml/vastInlineHtml.delivery.php

at line 65 change to

return deliverVastAd('vastInline', $aBanner, $zoneId, $source, $ct0, $withText, $logClick, $logView, $useAlt,$richMedia=true, $loc, $referer);


Anyone has this experience. Is it any impact ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...