Year: 2022
-
Post Views: 17 1. When executing composer require, an error is reported:[Composer\Downloader\TransportException]Curl Error 6 while downloadinghttps://api/v4/projects/%2Fnova:Could not resolve host: API . as shown in Figure 1 2. Check the composer.json file, which contains nova-related configuration items. 3. Create a new file: C:\Users\Lenovo\AppData\Roaming\Composer\Auth.json. Specific values need to be set by yourself. as shown in Figure 2 4. When the Composer require…
-
Post Views: 21 1. In Laravel 6, execute the command: php artisan telescope:publish, report an error: Unable to local publishable resources. Publishing complete. as shown in Figure 1 2. Check composer.json, laravel/teleScope exists in require-dev. 3. Check the directory /config, the file telescope.php already exists, the file: /app/providers/teleScopeServiceProvider.php already exists. But the directory /public/vendor/teleScope does not exist. 4. Access:http://object.local/telescope, the…
-
Post Views: 18 1. Report an error in Laravel 6: log.error: this cache store does not support tagging. {“exception”:{}}. as shown in Figure 1 2. Check the log file, /storage/logs/laravel-2022-01-11.log 3. Edit the .env file, and adjust the cache_driver=file to cache_driver=redis. No more errors. as shown in Figure 2
-
Post Views: 16 1. Google AdSense Since you have not completed the address verification process, we will no longer run advertisements on your website. Please verify your address to resume ad serving. as shown in Figure 1 2. Click to learn the details, the source is that the mailed personal identification code (PIN code) has never been received. You can…
-
Post Views: 17 1. In Navicat for MySQL, import the SQL file, and report an error when executing: 2006 – MySQL Server has gone away. as shown in Figure 1 2. The size of the imported SQL file is about 35MB. as shown in Figure 2 3. The reason is that the default settings of max_allowed_packet are very low. In…
-
Post Views: 59 1. When executing the command composer update –ignore-platform-reqs, an error is reported: script @php artisan package:discover –ansi handling the Post-autoload-dump event returned with error code 255. as shown in Figure 1 2. Why the option –ignore-platform-reqs is added when executing the composer update command. The reason is that when executing composer update, an error is reported: it…
-
Post Views: 21 1. Reference URL:https://www.shuijingwanwq.com/2021/12/29/5622/, Laravel 8.x is deployed to Heroku, based on PostgreSQL implementation. Therefore, some steps can be omitted. 2. In the local development environment, the Laravel native environment has been deployed. Open URL:http://larabbs.local/, the response 200. as shown in Figure 1 3. Verify your installation, to verify your CLI installation, use the heroku –version command. Current…
-
Post Views: 15 1. Error when adding foreign key constraints: sqlstate[23000]: Integrity Constraint Violation: 1452 cannot add or update a child row: a foreign key constraint fails . as shown in Figure 1 2. Analyze the reason, the record of the user ID equal to 9 exists in the topics, but it no longer exists in users. as shown in…
-
Post Views: 14 1. When executing the command: php artisan larabbs:calculate-active-user, an error is reported: classredisnot found. as shown in Figure 1 2. The cache is used in this command, and redis is used as the cache driver. Edit the .dev file and add: redis_client=predis 3. Execute the command again: php artisan larabbs:calculate-active-user, no more errors are reported. as shown…
-
Post Views: 19 1. When installing Laravel/Horizon based on Composer, an error is reported: Package Laravel/Horizon at version ~5.6 has requirements incompatible with Your php version, php extensions and composer version. as shown in Figure 1 2. Based on the prompt information, install the PHP extension: PCNTL, POSIX, but PCNTL is not available under Windows. as shown in Figure 2…