PHP Warning: Module "intl" is already loaded in Unknown on line 0 #3487

Closed
opened 2026-02-05 06:52:18 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @mschoon85 on GitHub (Feb 2, 2023).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hi @ssddanbrown,

I installed the security update released today, but upon running the php artisan command for cleanup I got a few warnings. Can this do any harm?

D:\Apache24\htdocs\bookstack>php artisan cache:clear
PHP Warning:  Module "intl" is already loaded in Unknown on line 0
Application cache cleared!

D:\Apache24\htdocs\bookstack>php artisan config:clear
PHP Warning:  Module "intl" is already loaded in Unknown on line 0
Configuration cache cleared!

D:\Apache24\htdocs\bookstack>php artisan view:clear
PHP Warning:  Module "intl" is already loaded in Unknown on line 0
Compiled views cleared!

Kind regards,

Michel

Exact BookStack Version

23.01.1

Log Content

No response

PHP Version

No response

Hosting Environment

Windows Server 2022 with Apache

Originally created by @mschoon85 on GitHub (Feb 2, 2023). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario Hi @ssddanbrown, I installed the security update released today, but upon running the php artisan command for cleanup I got a few warnings. Can this do any harm? ``` D:\Apache24\htdocs\bookstack>php artisan cache:clear PHP Warning: Module "intl" is already loaded in Unknown on line 0 Application cache cleared! D:\Apache24\htdocs\bookstack>php artisan config:clear PHP Warning: Module "intl" is already loaded in Unknown on line 0 Configuration cache cleared! D:\Apache24\htdocs\bookstack>php artisan view:clear PHP Warning: Module "intl" is already loaded in Unknown on line 0 Compiled views cleared! ``` Kind regards, Michel ### Exact BookStack Version 23.01.1 ### Log Content _No response_ ### PHP Version _No response_ ### Hosting Environment Windows Server 2022 with Apache
OVERLORD added the 🐕 Support label 2026-02-05 06:52:18 +03:00
Author
Owner

@mschoon85 commented on GitHub (Feb 2, 2023):

I update again via GIT and see these errors are not only when clearing the cache:

D:\Apache24\htdocs\bookstack>composer install --no-dev
PHP Warning:  Module "intl" is already loaded in Unknown on line 0
> @php -r "!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');"
PHP Warning:  Module "intl" is already loaded in Unknown on line 0
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
PHP Warning:  Module "intl" is already loaded in Unknown on line 0
Discovered Package: barryvdh/laravel-dompdf
Discovered Package: barryvdh/laravel-snappy
Discovered Package: intervention/image
Discovered Package: laravel/socialite
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: socialiteproviders/manager
Package manifest generated successfully.
59 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan cache:clear
PHP Warning:  Module "intl" is already loaded in Unknown on line 0
Application cache cleared!
> @php artisan view:clear
PHP Warning:  Module "intl" is already loaded in Unknown on line 0
Compiled views cleared!
@mschoon85 commented on GitHub (Feb 2, 2023): I update again via GIT and see these errors are not only when clearing the cache: ``` D:\Apache24\htdocs\bookstack>composer install --no-dev PHP Warning: Module "intl" is already loaded in Unknown on line 0 > @php -r "!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');" PHP Warning: Module "intl" is already loaded in Unknown on line 0 Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead. Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover --ansi PHP Warning: Module "intl" is already loaded in Unknown on line 0 Discovered Package: barryvdh/laravel-dompdf Discovered Package: barryvdh/laravel-snappy Discovered Package: intervention/image Discovered Package: laravel/socialite Discovered Package: laravel/tinker Discovered Package: nesbot/carbon Discovered Package: socialiteproviders/manager Package manifest generated successfully. 59 packages you are using are looking for funding. Use the `composer fund` command to find out more! > @php artisan cache:clear PHP Warning: Module "intl" is already loaded in Unknown on line 0 Application cache cleared! > @php artisan view:clear PHP Warning: Module "intl" is already loaded in Unknown on line 0 Compiled views cleared! ```
Author
Owner

@mschoon85 commented on GitHub (Feb 2, 2023):

We have made a snapshot of the system, so we can go back to the previous version easily. Let me know if we should do that, or we can solve this another way.

@mschoon85 commented on GitHub (Feb 2, 2023): We have made a snapshot of the system, so we can go back to the previous version easily. Let me know if we should do that, or we can solve this another way.
Author
Owner

@ssddanbrown commented on GitHub (Feb 2, 2023):

Those warnings don't appear to stop the commands being run at all, so might be fine, although they're not ideal.
Those will be specific you your configuration/environment, not really anything on BookStack's side as far as I could tell.

@ssddanbrown commented on GitHub (Feb 2, 2023): Those warnings don't appear to stop the commands being run at all, so might be fine, although they're not ideal. Those will be specific you your configuration/environment, not really anything on BookStack's side as far as I could tell.
Author
Owner

@mschoon85 commented on GitHub (Feb 2, 2023):

I panicked to soon. Sorry about that. I asked my new best friend ChatPGT about it and it came with the following answer:

/////////////////////
The error message "Module "intl" is already loaded in Unknown on line 0" means that the Internationalization extension (intl) has already been loaded in your PHP environment and cannot be loaded again. This extension provides localization functions for PHP.

In most cases, you do not need to resolve this error message as it is a warning message, not a critical error. However, if you are encountering this message while installing a PHP extension that requires the intl extension, you should make sure that the intl extension is installed and enabled in your PHP environment.

You can verify if the intl extension is installed by checking the output of the following command: php -m

This will list all installed PHP modules. If you see "intl" in the list, then the extension is installed.
/////////////////////

So nothing to worry about. It is just that intl is already loaded because this plugin is enabled in my php.ini file, and cannot be loaded twice.

@mschoon85 commented on GitHub (Feb 2, 2023): I panicked to soon. Sorry about that. I asked my new best friend ChatPGT about it and it came with the following answer: ///////////////////// The error message "Module "intl" is already loaded in Unknown on line 0" means that the Internationalization extension (intl) has already been loaded in your PHP environment and cannot be loaded again. This extension provides localization functions for PHP. In most cases, you do not need to resolve this error message as it is a warning message, not a critical error. However, if you are encountering this message while installing a PHP extension that requires the intl extension, you should make sure that the intl extension is installed and enabled in your PHP environment. You can verify if the intl extension is installed by checking the output of the following command: php -m This will list all installed PHP modules. If you see "intl" in the list, then the extension is installed. ///////////////////// So nothing to worry about. It is just that intl is already loaded because this plugin is enabled in my php.ini file, and cannot be loaded twice.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3487