Trying to install dusk on Laravel like this:
php7.4 artisan dusk:install
I get this error:
Dusk scaffolding installed successfully.
Downloading ChromeDriver binaries...
ErrorException
file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
Try this:
php artisan dusk:install --ssl-no-verify
There appears to be an issue related to running this version of PHP on Windows. Upgrading all of PHP's files to v7.4.6 or newer resolves the issue. Specifically, the problem lies with the file libssl-1_1-x64.dll in the base PHP directory. Simply replacing only this file with the updated version will resolve the errors.
Source: https://github.com/laravel/dusk/issues/786
Related
I have an web application which successfully run since august 2020. now i want to add milon barcode package and it successfully ok in local server that's why i need to run coposer install or update command in cpanel terminal. but there show some problem.
N.B Laravel version 5.8, composer version 2.0.6, php version 7.4.
when i try to run composer install it show error
PHP Fatal error: Uncaught ErrorException: proc_open(): unable to create pipe Too many open files in phar:///opt/cpanel/composer/bin/composer/vendor/symfony/console/Application.php:952
when try to run composer update
Failed to download phpoption/phpoption from dist: getaddrinfo() thread failed to start
when try to run composer self-update
[Composer\Downloader\FilesystemException]
Filesystem exception:
Composer update failed: "/opt/cpanel/composer/bin/composer" could not be written.
rename(/opt/cpanel/composer/bin/composer): failed to open stream: Permission denied
You need to enable proc_open
Please Follow the Instruction Below in cPanel
Software > MultiPHP INI Editor > Editor Mode
Select your PHP version and search for (disable_functions)
disable_functions = "proc_open,..., ..."
Now remove (proc_open) from the list and save.
Otherwise, contact your hosting service provider to enable proc_open.
try using this command
composer update --no-scripts
Hi I use laravel 7 and I use wamp server and windows 10 as the os
I've successfully added laravel dusk to the project by using
composer require --dev laravel/dusk
then I tried to install dusk scaffolding and chrome driver by running below command
php artisan dusk:install
then I've got below results
Dusk scaffolding installed successfully.
Downloading ChromeDriver binaries...
ErrorException
file_get_contents(): php_network_getaddresses: getaddrinfo failed: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
The problem was I am from Iran and Iran is in suspended countries and by using the VPN this problem solved for me
I am uploading a laravel 5.4 project to cpanel server.
And i am serve with
PHP Fatal error: Call to undefined function Symfony\Polyfill\Mbstring\iconv_strpos()
on server.
I have done
composer require symfony/polyfill-iconv
However, it does not change the error message.
What thing i might miss out?
Be sure that you have php-iconv and php-mbstring installed on the server. Then check again. By default, mbstring is not installed on cPanel/WHM servers
First steps with Laravel 5 on MacOSX running MAMP PRO stack.
php artisan
I got the following error:
[RuntimeException]
Error Output: PHP Warning:
require(/Users/../../bootstrap/../vendor/autoload.php): failed to open
stream: No such file or directory in
/Users/../../bootstrap/autoload.php on line 17
PHP Fatal error: require(): Failed opening required
'/Users/../../bootstrap/../vendor/autoload.php' (include_p
ath='.:/Applications/MAMP/bin/php/php5.6.10/lib/php') in
/Users/../../bootstrap/autoload.php on line 17
It seems to be related with some bootstrap autoload and MAMP php binaries... But this is as far as I can understand this.
Can I have some advices please?
If I run composer update instead, I do get the same Fatal Error.
It seems you have give a wrong path,re install the laravel.
Thank you for your answers.
I had some issues with composer assets plugin. I have:
1) Remove the folder related to the composer assets plugin.
2) Reinstalled.
3) go to the root diretory of my laravel project.
4) run sudo composer install
Runned php artisan and all seems to be working as expected.
Thank you so much for your time.
Installed Laravel Framework and getting Error when I install artisian with the below (php artisan migrate:install)
My PHP version is [PHP: 5.5.11]
Parse error: syntax error, unexpected '[' in E:\xampp\htdocs\laravel-testing\vendor\laravel\framework\src\Illuminate\Support\helpers.php on line 426
E:\xampp\htdocs>cd laravel-testing
E:\xampp\htdocs\laravel-testing>php artisan migrate:install
Parse error: **syntax error, unexpected '['** in E:\xampp\htdocs\laravel-testing\vendor\laravel\framework\src\Illuminate\Support\helpers.php on line 426
What may be the problem ?
I would suggest to remove older version of your php and set latest version in environment variable. Secondly I would recommend to read this article. It's definitely going to help you understand migration.
Make sure you have composer installed in the VM (Vagrant) if you are not using homestead (laravel specific vagrant dist)
I was getting the same error. Wondering why the PHP version would matter if the VM was using a single and correct PHP dist.
https://getcomposer.org/download/