Issue Bug Closed

#100916lockIPv4PartCount) must be of type int

Mohamed Masmoudi 05/24/23, 16:35 updated 07/09/24, 14:15

Description

I have started a migration of a TYPO3 v11 project to v12 on my local development space.

I use Windows 10
Xampp with php 8.2 version installed on my Windows Machine

The project was working fine on TYPO3 11.
After the migration to version 12 this error is showing when i try to got to the backend link: project.local/typo3/

TYPO3\CMS\Core\Authentication\IpLocker::__construct(): Argument #1 ($lockIPv4PartCount) must be of type int, string given, called in C:\xampp\htdocs\typo3_src-12.4.1\typo3\sysext\core\Classes\Utility\GeneralUtility.php on line 2961

Reviews 3

Files 1

History 611

  1. Georg Ringer commented and changed status New Needs Feedback 05/25/23, 11:50

    thanks for creating the issue!

    can you share some more of the stack trace to identify where the issue comes from? thanks a lot

  2. Georg Ringer commented 05/25/23, 11:52

    after checking the code: I guess $GLOBALS['TYPO3_CONF_VARS'][FE]['lockIP'] or $GLOBALS['TYPO3_CONF_VARS'][BE]['lockIP'] is a string in your localconfiguration? can you confirm?

  3. Mohamed Masmoudi commented 05/25/23, 14:47

    In my setting.php file:

    ‘BE’ => [‘lockIP’ => ‘0’,],
  4. Mohamed Masmoudi commented 05/25/23, 15:25

    You are right it should be without the single quote like this:
    ’BE’ => [‘lockIP’ => 0,],
    Thank you Georg!

  5. Gerrit Code Review pushed patch set 1 for main to change 79147 status Needs Feedback Under Review 05/26/23, 06:24

  6. Gerrit Code Review pushed patch set 2 for main to change 79147 05/26/23, 06:32

  7. Gerrit Code Review pushed patch set 3 for main to change 79147 05/26/23, 06:33

  8. Gerrit Code Review pushed patch set 1 for 12.4 to change 79124 05/31/23, 12:29

  9. Gerrit Code Review pushed patch set 1 for 11.5 to change 79125 05/31/23, 12:29

  10. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % 05/31/23, 12:30

    Applied in changeset commit:d6d517a2b89566247854ec8d826ef78d948e4103.

  11. Benni Mack changed status Resolved Closed 07/09/24, 14:15