Tag: PHP Warning
-
Post Views: 17 1. The interface response is 500. as shown in Figure 1 2. Check the error log of nginx. Error report: php message: php warning: require(): open_basedir restriction in effect. file(/home/wwwroot/object/src/vendor/autoload.php) is not within the allowed path(s): as shown in Figure 2 3. Reference:lnmp add and delete virtual host and pseudo-static use tutorial to prevent cross-directory settings View…
-
Post Views: 11 1. When executing: composer install, prompt: enqueue/rdkafka 0.10.19 requires ext-rdkafka -> It is missing from your system. install or enable phps rdkafka extension.. as shown in Figure 1 2. Decide to enable PHP’s RDKAFKA extension. Open:https://pecl.php.net/package/rdkafka/6.0.1/windows, download 7.4 Thread Safe (ts) x64. After decompressing php_rdkafka-6.0.1-7.4-ts-vc15-x64, put php_rdkafka.dll Copy to: C:\php-7.4.27\ext\php_rdkafka.dll. Then edit php.ini, add extension=rdkafka 3. When…
-
Post Views: 18 1. In Windows 10 Professional, PHP cannot run the troubleshooting analysis. Execute the command: php-cgi.exe -b 127.0.0.1:9000-c c:/php-7.4.27/php.ini , automatically exit. as shown in Figure 1 2. Install the Visual C++ 2015 runtime 64-bit, as shown in Figure 2 3. Execute the command again: php-cgi.exe -b 127.0.0.1:9000-c c:/php-7.4.27/php.ini, error: php warning:vcruntime140.dll14.0 Is not compareable with this php…
-
Post Views: 15 1. In Windows 10 64-bit, PHP 7.4.6, an error is reported: php warning: php startup: unable to load dynamic libraryimagick(Tried: c:/php-7.4.6/ext\imagick, as shown in Figure 1 2. Reference:https://www.shuijingwanwq.com/2017/08/30/1768/, had a similar problem in PHP 7.0 before 3. Open:http://windows.php.net/downloads/pecl/deps/, download: imagemagick-7.0.7-11-vc15-x64.zip, as shown in Figure 2 4. Create a new directory: C:\imagemagick-7.0.7, copy the directory: d:\soft\imagemagick-7.0.7-11-vc15-x64\bin All files…
-
Post Views: 46 1. Execute the command and report an error: php warning: strpos(): empty needle in E:\WWWRoot\PCS-API\Vendor\yiisoft\yii2\log\target.php on line 243, as shown in Figure 1 2. View \console\runtime\logs\app.log 3. Edit on the command line 4. Edit on the command line. Once an exception is thrown in the console command line, when writing to the log, an error will be…