I've installed the admin package Voyager (without dummy data) on my Laravel project and when I want to create a user to access the admin panel with the following command: php artisan voyager:admin admin#admin.com --create, I get the following error:
After a little bit of searching, I found this link: https://github.com/the-control-group/voyager/issues/5082 => saying that this command does not work with PHP 7.4 and to make it work, I should either upgrade to PHP 7.4.1 or downgrade to PHP 7.3.
I'm using Wamp Server and decided to downgrade to PHP 7.3.12 since this version exists by default in C:\wamp64\bin\php
I have also edited composer.lock and composer.json in my project and then ran the command composer dump-autoload. But it still doesn't work. Am I missing something?
Had the same issue, upgraded to php 7.4.27 and it worked.
Related
I am new to Laravel. I have installed laravel on localhost using: composer create-project laravel/laravel news. Then, server.php to index.php, and copied .htaccess from public to root. However, the installation is displaying laravel default welcome view, successfully.
The pain starts, when I have uploaded it to the server. At first, it's displaying following message:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2".
I have added the following lines to the composer.json (in config):
"platform-check": false
and then omposer dump-autoload. By doing this, above message gone, and the page is displaying 500 Internal Server Error.
I have tried every possible solution, still nothing working till now.
Laravel Version: 8.74.0
Server Php Version: 7.4.26
Please help me to solve this issue. If you need any other information, I will provide.
I think it is better to add a php8 version on your local than downgrading your laravel version to 7.
Your Composer dependencies require a PHP version ">= 8.0.2" - tells that your laravel require you to have have php version 8.0.2 or higher.
Try installing a lower version of laravel. For example:
composer create-project laravel/laravel=8.0.* news
Currently, I have a problem with my Symfony project because I made the php update. And now, I can not use my compose in the folder of my project anymore. How can I remedy this problem ?
I installed PHP version 7.3.4.
I have version 1.8.5 of composer.
Error Image:
You can disable JIT like #Sondre Edvardsen said but that will it disable for all projects.
You can also disable it for the single command with:
php -d pcre.jit=0 composer.phar {...rest of your command}
When upgrading Laravel 5.5 to 5.7 and running composer install I see this error.
Has any one else experienced something similar?
I also upgraded php from 7.1 to 7.2 at the same time using forge, after reverting the code to laravel 5.5 staying with php 7.2 was not an issue.
There were changes from Laravel 5.6 to 5.7 that might have caused this:
From the Upgrade Notes:
A new data directory has been added to storage/framework/cache. You should create this directory in your own application:
mkdir -p storage/framework/cache/data
Then, add a .gitignore file to the newly created data directory:
cp storage/framework/cache/.gitignore storage/framework/cache/data/.gitignore
Finally, ensure that the storage/framework/cache/.gitignore file is updated as follows:
*
!data/
!.gitignore
There was also a change from Laravel 5.5 to 5.6, but from what it looks like this seems unlikely to be the cause.
I have Windows 10, Xampp installed with PHP Version 5.x and I want to install OctoberCMS with Installation wizard https://octobercms.com/docs/setup/installation but I noticed that OctoberCMS requires PHP 7.0 or higher to achieve this and I have version 5.x.
So How can I install OctoberCMS with PHP Version 5.x ?
OK Guys, Eventually I have come up with the solution to install OctoberCMS with PHP Version 5.x.
Remember, these steps can be varied based on your operating system and the things which you have installed in your system.
First go to OctoberCMS Change log -
https://octobercms.com/changelog and find Build 419 has the php
version 5.x support.
Then go to OctoberCMS release list - https://github.com/octobercms/october/releases and click on the version you need to install which is v1.0.419. Install the zip to the root of xampp/htdocs and extract the folder.
Then inside the same folder which extracted, run this composer install.
After this, run php artisan october:env .. You can run C:\xampp\php\php.exe artisan october:env if you are having an error php is not recognized as an internal or external command.
After php artisan october:env, .env file is created. There you need to modify your database settings like database name, port (put 3306 for localhost etc) by opening this file which will be in same folder.
Then run php artisan october:up or C:\xampp\php\php.exe artisan october:up. It will create database tables and your admin user will be created with User: admin, Password: admin (You can change this after logging IN). And backend url will be something like http://example.com/backend.
Once its done, you can cut paste all your extracted folder files to root .. like from C:\xampp\htdocs\youproject\version419 to C:\xampp\htdocs\youproject\.
Hope this helps.
Let me start off by saying I'm completely new to Laravel and I would say I'm a beginner at PHP given how long it's been since I last did any PHP development. I'm running Mac OS X Yosemite (10.10.2) and I've installed AMPPS 3.0. I have installed composer and Laravel (as per instructions found here) as well. Now when I try to install Laravel on AMPPS (via http://localhost/ampps) I get the following messages:
The following errors were found :
Could not download composer.phar
Could not install composer
Could someone please enlighten me as to why this is happening? Also is this step necessary since I already have Laravel installed on my mac?
Short answer: I have no idea.
Long answer: I found this link when i was having some trouble with this myself.
Basically what's missing was adding the ampps php path in the bash file.
export AMPPS_PHP=/Applications/AMPPS/php/bin
export PATH="$AMPPS_PHP:$PATH"
Then, moving composer to user/bin directory with
sudo mv composer.phar /usr/local/bin/composer
I just included the big parts of what was missing in my case. Then install laravel as normal.