Ads Manager 2 by Siropu

Ads Manager 2 by Siropu [Paid] 2.4.22

No permission to buy (€49.99)
Siropu, i tried to update to the latest XF2.1 beta and upgrade crashed and the site just gives this error message:

Fatal error: Uncaught Error: Call to a member function addClassMap() on null in /home/tajhay/test.nzwarriors.com/src/addons/Siropu/AdsManager/Listener.php:11 Stack trace: #0 [internal function]: Siropu\AdsManager\Listener::appSetup(Object(XF\App)) #1 /home/tajhay/test.nzwarriors.com/src/XF/Extension.php(67): call_user_func_array(Array, Array) #2 /home/tajhay/test.nzwarriors.com/src/XF/App.php(2647): XF\Extension->fire('app_setup', Array, NULL) #3 /home/tajhay/test.nzwarriors.com/src/XF/App.php(1744): XF\App->fire('app_setup', Array) #4 /home/tajhay/test.nzwarriors.com/src/XF.php(365): XF\App->setup(Array) #5 /home/tajhay/test.nzwarriors.com/src/XF.php(354): XF::setupApp('\\XF\\App') #6 /home/tajhay/test.nzwarriors.com/src/XF.php(210): XF::app() #7 [internal function]: XF::handleFatalError() #8 {main} thrown in /home/tajhay/test.nzwarriors.com/src/addons/Siropu/AdsManager/Listener.php on line 11

Disabling the listeners in the config file gives me this error :
190802
 
Siropu, i tried to update to the latest XF2.1 beta and upgrade crashed and the site just gives this error message:

Fatal error: Uncaught Error: Call to a member function addClassMap() on null in /home/tajhay/test.nzwarriors.com/src/addons/Siropu/AdsManager/Listener.php:11 Stack trace: #0 [internal function]: Siropu\AdsManager\Listener::appSetup(Object(XF\App)) #1 /home/tajhay/test.nzwarriors.com/src/XF/Extension.php(67): call_user_func_array(Array, Array) #2 /home/tajhay/test.nzwarriors.com/src/XF/App.php(2647): XF\Extension->fire('app_setup', Array, NULL) #3 /home/tajhay/test.nzwarriors.com/src/XF/App.php(1744): XF\App->fire('app_setup', Array) #4 /home/tajhay/test.nzwarriors.com/src/XF.php(365): XF\App->setup(Array) #5 /home/tajhay/test.nzwarriors.com/src/XF.php(354): XF::setupApp('\\XF\\App') #6 /home/tajhay/test.nzwarriors.com/src/XF.php(210): XF::app() #7 [internal function]: XF::handleFatalError() #8 {main} thrown in /home/tajhay/test.nzwarriors.com/src/addons/Siropu/AdsManager/Listener.php on line 11

Disabling the listeners in the config file gives me this error :
View attachment 190802
To disable listeners

I assume you can't do that from admin panel because something is bugged?

Then you can disable specific add-on from command line:
Code:
php cmd.php xf-addon:disable Addon/Name
to disable add-on with namespace Addon/Name

or
Code:
php cmd.php xf-addon:disable
to disable all add-ons

Type
Code:
php cmd.php list
for list of all available options
 
To disable listeners
none of those work and the error keeps getting shown in CLI.

@Siropu can you please assist?

root@server [/home/tajhay/test.nzwarriors.com]# php cmd.php xf-addon:disable





Fatal error: Uncaught Error: Call to a member function addClassMap() on null in /home/tajhay/test.nzwarriors.com/src/addons/Siropu/AdsManager/Listener.php:11


Stack trace:


#0 [internal function]: Siropu\AdsManager\Listener::appSetup(Object(XF\App))


#1 /home/tajhay/test.nzwarriors.com/src/XF/Extension.php(67): call_user_func_array(Array, Array)


#2 /home/tajhay/test.nzwarriors.com/src/XF/App.php(2647): XF\Extension->fire('app_setup', Array, NULL)


#3 /home/tajhay/test.nzwarriors.com/src/XF/App.php(1744): XF\App->fire('app_setup', Array)


#4 /home/tajhay/test.nzwarriors.com/src/XF.php(365): XF\App->setup(Array)


#5 /home/tajhay/test.nzwarriors.com/src/XF.php(354): XF::setupApp('\\XF\\App')


#6 /home/tajhay/test.nzwarriors.com/src/XF.php(210): XF::app()


#7 [internal function]: XF::handleFatalError()


#8 {main}


thrown in /home/tajhay/test.nzwarriors.com/src/addons/Siropu/AdsManager/Listener.php on line 11


root@server [/home/tajhay/test.nzwarriors.com]#
 
can you please assist?
Go to src/addons/Siropu/AdsManager/Listener.php and delete the following code from the appSetup method.
PHP:
\XF::$autoLoader->addClassMap([
               'Mobile_Detect' => \XF::getAddOnDirectory() . '/Siropu/AdsManager/Vendor/MobileDetect/Mobile_Detect.php'
          ]);
See if you get any new errors after that.
 
That happens until the scripts load and the carousel initiates. It is normal behavior.


So Lazy Loading are not working correctly? Also why not work alignment in center? This should work alignment in center.

Not working navigation arrows and navigation dots from PC but work from mobile.
 
Top Bottom