Home  >  Article  >  Backend Development  >  PHP solves Module 'modulename' already loaded error

PHP solves Module 'modulename' already loaded error

*文
*文Original
2017-12-26 09:31:202594browse

Existing partners may encounter the error message PHP Warning: Module 'modulename' already loaded in... during the process of adding the module. This article will introduce how to solve this error. I hope it will be helpful to friends who encounter the same error.

The error in the title is probably:

1. The module is loaded twice, so php -i|grep Configure, look at the configuration file and the configuration include directory, for these files Is there a module with the same name

2. When loading a module dynamically, there is a module with the same name so

in the directory of the module and in php.ini. If you know the above problem, it will be easier to solve. Let’s look at php first. For configuration files and files in the include directory, organize the contents first. Then check extension_dir to see if the files in this directory are consistent with the file reference paths in include.

Related recommendations:

Must-read for PHP newbies: PHP common error tips

ecshop adapts to the implementation of modification methods in PHP7 to solve error reports

Detailed explanation of php throwing exceptions and catching specific types of exceptions

The above is the detailed content of PHP solves Module 'modulename' already loaded error. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn