Error 500 - 'Too few arguments' problem.

Kane

Member
Hello,

I'm getting following error when clicking the URL when the "Url tracking" option is enabled:

---
Error 500!
Too few arguments to function CampaignsController::_urlActionChangeSubscriberListField(), 4 passed in /var/www/mailwizz/apps/common/components/managers/HooksManager.php on line 122 and exactly 5 expected​
---


And in "Application log" i can see:

---
2018/10/24 19:52:19 [error] [exception.ArgumentCountError] ArgumentCountError: Too few arguments to function CampaignsController::_urlActionChangeSubscriberListField(), 4 passed in /var/www/mailwizz/apps/common/components/managers/HooksManager.php on line 122 and exactly 5 expected in /var/www/mailwizz/apps/frontend/controllers/CampaignsController.php:438
Stack trace:
#0 /var/www/mailwizz/apps/common/components/managers/HooksManager.php(122): CampaignsController->_urlActionChangeSubscriberListField(Object(CampaignsController), Object(Campaign), Object(ListSubscriber), Object(CampaignUrl))
#1 /var/www/mailwizz/apps/frontend/controllers/CampaignsController.php(215): HooksManager->doAction('frontend_campai...', Object(CampaignsController), Object(Campaign), Object(ListSubscriber), Object(CampaignUrl))
#2 [internal function]: CampaignsController->actionTrack_url('rl492ft1177c8', 'sf231vzl5l2a9', '4bc02c542e6eca4...')
#3 /var/www/mailwizz/apps/common/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Object(CampaignsController), Array)
#4 /var/www/mailwizz/apps/common/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Object(CampaignsController), Object(ReflectionMethod), Array)
#5 /var/www/mailwizz/apps/common/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
#6 /var/www/mailwizz/apps/common/framework/web/CController.php(286): CController->runAction(Object(CInlineAction))
#7 /var/www/mailwizz/apps/common/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#8 /var/www/mailwizz/apps/common/framework/web/CWebApplication.php(282): CController->run('track_url')
#9 /var/www/mailwizz/apps/common/framework/web/CWebApplication.php(141): CWebApplication->runController('campaigns/track...')
#10 /var/www/mailwizz/apps/common/framework/base/CApplication.php(185): CWebApplication->processRequest()
#11 /var/www/mailwizz/apps/init.php(219): CApplication->run()
#12 /var/www/mailwizz/index.php(18): require_once('/var/www/mailwi...')
#13 {main}
REQUEST_URI=/mailwizz/campaigns/rl492ft1177c8/track-url/sf231vzl5l2a9/4bc02c542e6eca4f8cacb079b6036455704e6dc7​
---

My Mailwizz version is 1.6.3, there is no Uploaded extensions and following Core extensions are listed:

  1. Translate
  2. List form custom webhooks
  3. Payment gateway - Paypal
  4. Ip location - locatorhq.com
  5. Recaptcha
  6. Ip location - ipinfo.io
  7. Ip location - freegeoip.net
  8. Payment gateway - Offline
  9. List form custom redirect
  10. Ip location - ipinfodb.com
  11. Ip location - telize.com
  12. List form custom assets
  13. Campaign activity map
  14. CKeditor
  15. Html blocks
What can be causing such issue and what I can do to try and fix it ?
 
It's weird because it says the error starts from /var/www/mailwizz/apps/frontend/controllers/CampaignsController.php at line 438 but in 1.6.3 at that line there's nothing related to your error, which make sme believe you're not actually using latest files.
Can you attach here the /var/www/mailwizz/apps/frontend/controllers/CampaignsController.php file ? (zip it)
 
Back
Top