You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When going to the second page of the logger the page param is encoded instead of a number.
Example url: admin/utilities/country-redirect-log-utility?page=%28%3Anum%29
The $currentPage value is set to '(:num)' wich you cannot substract from the number 1.
Full stack trace attached.
To Reproduce
Steps to reproduce the behavior:
Go to admin/utilities/country-redirect-log-utility
Go to the second page
See error
Expected behavior
Correct numeric value in the getParam('page', 1).
Additional context
Add any other context about the problem here.
Describe the bug
When going to the second page of the logger the page param is encoded instead of a number.
Example url: admin/utilities/country-redirect-log-utility?page=%28%3Anum%29
The $currentPage value is set to '(:num)' wich you cannot substract from the number 1.
Full stack trace attached.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Correct numeric value in the getParam('page', 1).
Additional context
Add any other context about the problem here.
Stack trace
yii\base\ErrorException: A non-numeric value encountered in /home/vagrant/code/somewebsite/vendor/superbig/craft-countryredirect/src/utilities/CountryRedirectLogUtility.php:76
Stack trace:
#0 /home/vagrant/code/somewebsite/vendor/craftcms/cms/src/web/ErrorHandler.php(84): yii\base\ErrorHandler->handleError()
#1 /home/vagrant/code/somewebsite/vendor/superbig/craft-countryredirect/src/utilities/CountryRedirectLogUtility.php(76): craft\web\ErrorHandler->handleError()
#2 /home/vagrant/code/somewebsite/vendor/craftcms/cms/src/controllers/UtilitiesController.php(86): superbig\countryredirect\utilities\CountryRedirectLogUtility::contentHtml()
#3 [internal function]: craft\controllers\UtilitiesController->actionShowUtility()
#4 /home/vagrant/code/somewebsite/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#5 /home/vagrant/code/somewebsite/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#6 /home/vagrant/code/somewebsite/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction()
#7 /home/vagrant/code/somewebsite/vendor/craftcms/cms/src/web/Application.php(287): yii\base\Module->runAction()
#8 /home/vagrant/code/somewebsite/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction()
#9 /home/vagrant/code/somewebsite/vendor/craftcms/cms/src/web/Application.php(272): yii\web\Application->handleRequest()
#10 /home/vagrant/code/somewebsite/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest()
#11 /home/vagrant/code/somewebsite/web/index.php(22): yii\base\Application->run()
#12 {main}
The text was updated successfully, but these errors were encountered: