FatalError with RequestContext constructor - caching

I have a problem with an update of a Symfony 4 project, I get a fatal error:
"Argument 1 passed to Symfony\Component\Routing\RequestContext::__construct() must be of the type string, null given, called in var/cache/dev/ContainerHuVphBe/srcApp_KernelDevDebugContainer.php on line 1569"
Has anyone ever had a similar problem? It's impossible for me to find where this configuration error came from.
thank you in advance for your help

Had this problem updating from Symfony 3 to Symfony 4, found the fix to be changing out configuration files.
Before:
router.request_context.base_url: ~
After:
router.request_context.base_url: ""

Related

PACT error while loading pact_helper.rb (Malformed version number string )

When I run the pact test, I get the following error.
An error occurred while loading ./spec/mailers/mailing_spec.rb.
Failure/Error:
mock_service :core_service do
port "3003"
end
ArgumentError:
Malformed version number string
Any ideas around this issue?
Thanks in advance.
Can you please raise an issue in the pact-ruby and include all the relevant versions, and the steps to recreate the issue, preferably with an executable code example.

a required argument is missing: /key:[Sonarqube project key]

I am trying to run sonarqube analysis but I am getting the error
"a required argument is missing: /key:[Sonarqube project key]"
C:\Sonarqube\sonarqube-6.7\sonarqube-6.7\bin\sonar-scanner-msbuild-4.0.2.892\SonarQube.Scanner.MSBuild.exe begin /key: {projectkey} /name:{projectname} /version:{1.0}
I have used the following url
I have tried using the "" in Key and Name but still get the same error
can anyone suggest how to do this?
There's a typo in the command line: the space between /key: and {projectkey}. This is what produces this error message.

Laravel error - Illuminate/Support/Arr.php on line 71

I am not sure as to what is causing this error.
(!) Warning: Invalid argument supplied for foreach() in /..../vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 71
I think it might be an environment variable issue. But I am not sure.
The Call Stack
{main}()
require_once('..../bootstrap/start.php')
require('..../vendor/laravel/framework/src/Illuminate/Foundation/start.php
Illuminate/Config/EnvironmentVariables->load()
Illuminate/Config/FileEnvironmentVariablesLoader->load()
array_dot()
Illuminate\Support\Arr::dot()
** Please not that the ..... is a representation, not what I have in my file, just figured my personal file path was not going to help at all.
I have a .env.local.php file in the root of the main project directory with the correct DB info in it.
Anyone have an idea of what has happened?
Thanks in advance. And if you need any more info, please let me know, I don't know what you might need on this one.

Doctrine command line create schema

My first time using Doctrine + CodeIgniter and trying to use orm:schema-tool:create command I get this error message:
C:\>C:\xampp\php\php.exe c:\xampp\htdocs\doctrine\application\doctrine.php orm:schema-tool:create
Fatal error: Call to undefined function Doctrine\Common\Cache\apc_fetch() in C:\xampp\htdocs\doctrine\application\libraries\Doctrine\Common\Cache\ApcCache.php on line 52
What am I doing wrong?
Thanks in advance for any help.
I've found the solution, it was pretty obvious.
On my Doctrine.php I had a line trying to use cache using APC and I don't have APC installed...commented those lines and problem solved.
Hope it helps.

Tank Auth http://localhost/codeigniter/index.php/auth Error

This is my first time using authentication library. I followed this post to install tank auth. But there is something wrong at http://localhost/codeigniter/index.php/auth when I try to access it. It gives me some lines in the page:
A PHP Error was encountered
Severity: Warning
Message: require_once(phpass-0.1/PasswordHash.php): failed to open
stream: No such file or directory
Filename: libraries/Tank_auth.php
Line Number: 3
I tried to edit the third line of ~/codeigniter/application/libraries/Tank_auth.php and nothing good happened. I'm sure that PasswordHash.php exists in phpass-0.1 directory.
Could anyone help me or shed some light?
The problem is definitely in that the file PasswordHash.php cannot be found in this line of code:
require_once(phpass-0.1/PasswordHash.php)
Confirm the file exists in the location you think it does, and I hope you are using quotes:
require_once('file.php');

Resources