Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A non-numeric value encountered error when going to the second page of the logger #37

Open
bartdigitalpulse opened this issue Feb 25, 2022 · 0 comments
Assignees
Labels

Comments

@bartdigitalpulse
Copy link

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:

  1. Go to admin/utilities/country-redirect-log-utility
  2. Go to the second page
  3. See error

Expected behavior
Correct numeric value in the getParam('page', 1).

Additional context
Add any other context about the problem here.

  • Craft version: Craft Pro 3.7.29
  • Country Redirect: 2.2.1

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants