Jump to content

Extension talk:BannerAds

Add topic
From mediawiki.org
Latest comment: 1 year ago by Makertrainer

Hello!

When I tried to install this extension, it worked at first, I pressed the New Campaign button, and then everything broke. I tried to update MW, but it didn't help. I'm on MW 1.37.1 Thanks in advance.


Here's the error I get:


MediaWiki internal error.

Original exception: [Y8V4svQZ6tvJ0GK1hVkBcgAAAI4] /wiki/Main_Page UnexpectedValueException: Invalid server index index #DB_SLAVE Backtrace: from /home/makertra/public_html/AAAA/includes/libs/rdbms/loadbalancer/LoadBalancer.php(517)

  1. 0 /home/makertra/public_html/AAAA/includes/libs/rdbms/loadbalancer/LoadBalancer.php(961): Wikimedia\Rdbms\LoadBalancer->getConnectionIndex(string, array, string)
  2. 1 /home/makertra/public_html/AAAA/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1128): Wikimedia\Rdbms\LoadBalancer->getConnection(string, array, string, integer)
  3. 2 /home/makertra/public_html/AAAA/includes/GlobalFunctions.php(2229): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(string, array, string)
  4. 3 /home/makertra/public_html/AAAA/extensions/BannerAds/BannerAdsProcessor.php(24): wfGetDB(string)
  5. 4 /home/makertra/public_html/AAAA/extensions/BannerAds/BannerAdsHooks.php(52): BannerAdsProcessor::getAd(integer)
  6. 5 /home/makertra/public_html/AAAA/includes/HookContainer/HookContainer.php(338): BannerAdsHooks::onBeforePageDisplay(OutputPage, Skins\Chameleon\Chameleon)
  7. 6 /home/makertra/public_html/AAAA/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
  8. 7 /home/makertra/public_html/AAAA/includes/HookContainer/HookRunner.php(947): MediaWiki\HookContainer\HookContainer->run(string, array, array)
  9. 8 /home/makertra/public_html/AAAA/includes/OutputPage.php(2639): MediaWiki\HookContainer\HookRunner->onBeforePageDisplay(OutputPage, Skins\Chameleon\Chameleon)
  10. 9 /home/makertra/public_html/AAAA/includes/MediaWiki.php(944): OutputPage->output(boolean)
  11. 10 /home/makertra/public_html/AAAA/includes/MediaWiki.php(957): MediaWiki::{closure}()
  12. 11 /home/makertra/public_html/AAAA/includes/MediaWiki.php(564): MediaWiki->main()
  13. 12 /home/makertra/public_html/AAAA/index.php(53): MediaWiki->run()
  14. 13 /home/makertra/public_html/AAAA/index.php(46): wfIndexMain()
  15. 14 {main}

Exception caught inside exception handler: [Y8V4svQZ6tvJ0GK1hVkBcgAAAI4] /wiki/Main_Page UnexpectedValueException: Invalid server index index #DB_SLAVE Backtrace: from /home/makertra/public_html/AAAA/includes/libs/rdbms/loadbalancer/LoadBalancer.php(517)

  1. 0 /home/makertra/public_html/AAAA/includes/libs/rdbms/loadbalancer/LoadBalancer.php(961): Wikimedia\Rdbms\LoadBalancer->getConnectionIndex(string, array, string)
  2. 1 /home/makertra/public_html/AAAA/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1128): Wikimedia\Rdbms\LoadBalancer->getConnection(string, array, string, integer)
  3. 2 /home/makertra/public_html/AAAA/includes/GlobalFunctions.php(2229): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(string, array, string)
  4. 3 /home/makertra/public_html/AAAA/extensions/BannerAds/BannerAdsProcessor.php(24): wfGetDB(string)
  5. 4 /home/makertra/public_html/AAAA/extensions/BannerAds/BannerAdsHooks.php(52): BannerAdsProcessor::getAd(integer)
  6. 5 /home/makertra/public_html/AAAA/includes/HookContainer/HookContainer.php(338): BannerAdsHooks::onBeforePageDisplay(OutputPage, Skins\Chameleon\Chameleon)
  7. 6 /home/makertra/public_html/AAAA/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
  8. 7 /home/makertra/public_html/AAAA/includes/HookContainer/HookRunner.php(947): MediaWiki\HookContainer\HookContainer->run(string, array, array)
  9. 8 /home/makertra/public_html/AAAA/includes/OutputPage.php(2639): MediaWiki\HookContainer\HookRunner->onBeforePageDisplay(OutputPage, Skins\Chameleon\Chameleon)
  10. 9 /home/makertra/public_html/AAAA/includes/exception/MWExceptionRenderer.php(158): OutputPage->output()
  11. 10 /home/makertra/public_html/AAAA/includes/exception/MWExceptionRenderer.php(77): MWExceptionRenderer::reportHTML(UnexpectedValueException)
  12. 11 /home/makertra/public_html/AAAA/includes/exception/MWExceptionHandler.php(107): MWExceptionRenderer::output(UnexpectedValueException, integer)
  13. 12 /home/makertra/public_html/AAAA/includes/exception/MWExceptionHandler.php(202): MWExceptionHandler::report(UnexpectedValueException)
  14. 13 /home/makertra/public_html/AAAA/includes/MediaWiki.php(583): MWExceptionHandler::handleException(UnexpectedValueException, string)
  15. 14 /home/makertra/public_html/AAAA/index.php(53): MediaWiki->run()
  16. 15 /home/makertra/public_html/AAAA/index.php(46): wfIndexMain()
  1. 16 {main}

Makertrainer (talk) 16:29, 16 January 2023 (UTC)Reply