bzcomputers
Well-known member
Siropu updated Ads Manager 2 by Siropu with a new update entry:
Got a repeating error on all Resource pages making them unusable after this latest update...


Last edited:
Siropu updated Ads Manager 2 by Siropu with a new update entry:
I'm running XFRM on my dev machine and no such errors for me. I have no idea why you get that. Try re-build add-on data.could you tag me when you put a out a fix for the current errors
The code I added does a table analysis first before running it. If it doesn't require, it won't perform it.I knew pruning 75% of the rows and size not reducing that optimization was definitely needed and I manually ran it.
No change after rebuilding add-on data, error remains.I'm running XFRM on my dev machine and no such errors for me. I have no idea why you get that. Try re-build add-on data.
The XFRM class is extended using the XF's class extension system and the code is correct. I don't have an explanation for the error.error remains.
The affiliate link is added after the post is parsed, so no.Any chance there is a way to disable URL unfurling for affiliate links?
Individual code ads have a lazy load option with auto refresh every x seconds feature. To rotate multiple ads, you can use the package carousel feature.Is it possible for ads to refresh/rotate on an interval if a user doesn't navigate away from a page?
If you are selling ads, the value you set there will be the maximum number of ads that can be active at the same time for that package. It doesn't affect you as admin when you manage your own ads via ACP.can you clarify what 'Maximum active ads allowed' in the Package>Advertising settings means?
That's great, thank youIf you are selling ads, the value you set there will be the maximum number of ads that can be active at the same time for that package. It doesn't affect you as admin when you manage your own ads via ACP.
I just upgraded to 7.4.29 from 7.3 and am also having this issue. Wondering what might be the fix. I am using the most recent versions of XenForo and Ads Manager 2.@Siropu
I've just changed to php7.4.13 and started to receive lots of the following errors:
- ErrorException: [E_NOTICE] Trying to access array offset on value of type int
- src/addons/Siropu/AdsManager/Entity/Ad.php:467
Code:Stack trace #0 src/addons/Siropu/AdsManager/Entity/Ad.php(467): XF::handlePhpError(8, '[E_NOTICE] Tryi...', '/home/maggotdro...', 467, Array) #1 src/addons/Siropu/AdsManager/Entity/Ad.php(425): Siropu\AdsManager\Entity\Ad->isIpBlocked() #2 src/addons/Siropu/AdsManager/Template/Ad.php(504): Siropu\AdsManager\Entity\Ad->canDisplay() #3 [internal function]: Siropu\AdsManager\Template\Ad->Siropu\AdsManager\Template\{closure}(Object(Siropu\AdsManager\Entity\Ad)) #4 src/XF/Mvc/Entity/AbstractCollection.php(189): array_filter(Array, Object(Closure)) #5 src/addons/Siropu/AdsManager/Template/Ad.php(509): XF\Mvc\Entity\AbstractCollection->filter(Object(Closure)) #6 src/addons/Siropu/AdsManager/Template/Ad.php(336): Siropu\AdsManager\Template\Ad->prepareAdsForDisplay() #7 src/addons/Siropu/AdsManager/Template/Ad.php(327): Siropu\AdsManager\Template\Ad->setAds() #8 src/addons/Siropu/AdsManager/Listener.php(38): Siropu\AdsManager\Template\Ad->__construct(Object(XF\Pub\App), Object(XF\Mvc\Reply\View)) #9 [internal function]: Siropu\AdsManager\Listener::templaterGlobalData(Object(XF\Pub\App), Array, Object(XF\Mvc\Reply\View)) #10 src/XF/Extension.php(67): call_user_func_array(Array, Array) #11 src/XF/App.php(2797): XF\Extension->fire('templater_globa...', Array, NULL) #12 src/XF/App.php(2032): XF\App->fire('templater_globa...', Array) #13 src/XF/App.php(1903): XF\App->getGlobalTemplateData(Object(XF\Mvc\Reply\View)) #14 src/XF/Pub/App.php(448): XF\App->preRender(Object(XF\Mvc\Reply\View), 'html') #15 src/XF/Mvc/Dispatcher.php(395): XF\Pub\App->preRender(Object(XF\Mvc\Reply\View), 'html') #16 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html') #17 src/XF/App.php(2300): XF\Mvc\Dispatcher->run() #18 src/XF.php(488): XF\App->run() #19 index.php(20): XF::runApp('XF\\Pub\\App') #20 {main} Request state array(4) { ["url"] => string(60) "/forums/threads/the-twilight-saga.224845/reply?quote=2609847" ["referrer"] => bool(false) ["_GET"] => array(1) { ["quote"] => string(7) "2609847" } ["_POST"] => array(0) { } }
Do you have any idea what it relates to, everything runs well under php 7.3.25 ?
Ads Manager 2.4.2
Edit each ad and hit save without changing anything.Wondering what might be the fix.
Thank you! I'm all set.Edit each ad and hit save without changing anything.
Bots/crawlers access the site all the time so I don't think that's the issue.Does it mean a Google bot caused this error, or...
sam_counter
is a custom template function and if it says "unknown" that means that the function was not applied at that time which is strange. I don't know why you would get that out of the blue.Bots/crawlers access the site all the time so I don't think that's the issue.sam_counter
is a custom template function and if it says "unknown" that means that the function was not applied at that time which is strange. I don't know why you would get that out of the blue.
sam_counter
but found nothing. You can't find it by search. It is applied using XF's templater setup listener.I did a templates search for the termsam_counter
but found nothing.
Have you done any add-on updates? Could be the reason.There are other entries happening at the exact same time
We use essential cookies to make this site work, and optional cookies to enhance your experience.