Strava reconnecting issue - php

I have connect with strava and got data via Socialite package in PHP Laravel. And extract data without no issues. But recently i can't connect to the strava again. It show ans exception.
$stravaUser = Socialite::driver('strava')->user(); // this line shown error
The error was:
local.ERROR: exception 'ErrorException' with message 'Undefined index: email' in c:\my web folder\vendor\socialiteproviders\strava\Provider.php:57

This issue has been fixed in a recent commit but has yet to be included in release so you need to use the dev-master for now.
In your composer.json, replace:
"socialiteproviders/strava": "^3.0"
with
"socialiteproviders/strava": "dev-master"
And run
$ composer update

Related

Magento 2. Failed to submit module to Magento Marketplace. setup/config/application.config.php failed to open stream

I am unable to submit a new module or update a existing module in the Magento Marketplace.
For all modules/new versions, I get the error during the Technical Review at the Installation & Varnish Test stage. Error from report.json:
ERROR: [11] The command "php ./bin/magento module:enable --all --ansi --no-interaction" failed. Warning: require(/app/setup/config/application.config.php): failed to open stream: No such file or directory in /app/vendor/magento/framework/Console/Cli.php on line 78
returned non-zero exit status 11
The error occurs when executing different commands, not only for php ./bin/magento module:enable --all --ansi --no-interaction, but the error is always the same.
I couldn't reproduce it locally on different versions of Magento, PHP and composer.
In my opinion, this looks like a problem with the environment in which the modules are tested.
As I understand, the problem was on Magento Marketplace side.
There is news in #marketplace Slack channel that the problem has been fixed:
Hi all,
The issue with “allow-plugins” in 2.3 is fixed now.
Right now we are going to rerun tests for all affected submissions.
Sorry for inconvenience and Thank You all for being patient.

Agent Library at Laravel. What's Wrong?

what's up?
I found this problem: I initiate a new project from 0, installing Laravel with composer:
composer create-project laravel/laravel --prefer-dist Blog
The following step was to add the Agent library https://github.com/jenssegers/agent.
composer require jenssegers/agent
This is the first library that I have ever used on Laravel and I'm not sure if I did it correctly. I added the line codes mentioned in the Agent's README.md at the config/app.php. After it, I went to public/index.php at my project and add the following lines to test it:
use Jenssegers\Agent\Facades\Agent;
$agent = new Agent();
Infortunally it didn't work and I had received the following error: Fatal error: Uncaught Error: Class "Jenssegers\Agent\Facades\Agent" not found in C:\xampp\htdocs\BlogBRU\public\index.php:7 Stack trace: #0 {main} thrown in C:\xampp\htdocs\BlogBRU\public\index.php on line 7. The line 7 correspond to $agent = new Agent();
I already tried to modify the use ... for:
use use Jenssegers\Agent\Facades;
use Jenssegers\Agent\Agent;
But it doesn't work.
I will appreciate it if you could help me. This is taking all my time!

Codecept_absolute_path () not found error when executing the mftf run:test command in Magento 2.3

I have Magento 2.3 and I want to use Magento Functional Testing Framework version 2.3 but when I run the command vendor/bin/mftf run:test AdminLoginTest to run the test, the following error occurs:
==== Redirecting to Composer-installed version in vendor/codeception ====
Fatal error: Uncaught Error: Call to undefined function Codeception\Lib\codecept_absolute_path() in /Users/hanhan/Deskto
p/workspace/magento2/vendor/codeception/codeception/src/Codeception/Lib/ParamsLoader.php:25
In the file PramsLoader.php, codecept_absolute_path() method is invoked and it gives the error because this method is not defined
$this->paramsFile = codecept_absolute_path($paramStorage);
How can i solve this ?
I happened to encounter the same error today. It's because there is an old vendor directory in dev/tests/acceptance where previously we store composer.json file and now moved to root. Deleting dev/tests/acceptance/vendor folder resolve the fatal error.

Laravel fatal error: Fatal error: Interface 'Illuminate\Auth\Illuminate\Contracts\Auth\Factory' not found

I'm trying to start using laravel php framework. I'm trying to just call the index file and I get this error message.
C:\xampp\php\php.exe C:\xampp\htdocs\tutorials\lara\application\public\index.php
Fatal error: Interface 'Illuminate\Auth\Illuminate\Contracts\Auth\Factory' not found in C:\xampp\htdocs\tutorials\lara\application\bootstrap\cache\compiled.php on line 357
Process finished with exit code 255
Can anyone shine some light on what this means?
Your Illuminate\Auth\Illuminate\Contracts\Auth\Factory may not copied in your project,that why this is happening.So you need to be
Step 1 : Remove full vendor folder
Step 2 : Run from your terminal composer install

FOSRestBundle Serializer Error

I'm getting an error when i work with FOSRestBundle.
Fatal error: Class 'JMS\Serializer\SerializationContext' not found in
/home/a15net/public_html/kavuklar/vendor/friendsofsymfony/rest-bundle/FOS/RestBundle/View/ViewHandler.php
on line 209
It was working before composer.phar update.
Do you any have idea about this why i'm getting this error?
I had the same problem.
I solved it reading the FOSRestBundle upgrade file, and then updating my composer.json. You should try to put in require section this next lines:
"friendsofsymfony/rest-bundle": "0.11.*",
"jms/serializer-bundle": "0.12.x-dev"
and then
composer.phar update
It works for me.
Try and comment.

Categories