Laravel 5.4 : 404 Page return FatalErrorException instead of NotFoundHttpException - laravel-5.4

Just found wired problem when try to catch 404 page not found
but Laravel return fatal error with this
(1/1) FatalErrorException
Class 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' not found
in RouteCollection.php (line 179)
but in other project return
NotFoundHttpException ▼
-statusCode: 404
-headers: []
im not sure what's going on after i update composer
what i try
make /resources/views/errors/404.blade.php
edit /App/Exceptions/Handler.php
had no luck, I will appreciate your help
PS. i was found related issue here
https://github.com/laravel/framework/issues/21663

After check vendor folder it's missing exception folder inside vendor/symfony/http-kernel. i think it's an internet problem when install composer or update it. so i just copy folder there then it's back to work

Related

Webpack 5 - ERROR in Error: Child compilation failed: Module parse failed: Unexpected character '�' (1:4)

I don't understand what is the problem? Webpack does not compile the project and shows the following error:
ERROR in Error: Child compilation failed: Module parse failed: Unexpected character '�' (1:4)
But I can't figure out where the error derives from, in which module or file, where to look for it? This is the error from my IDE.
At the moment, it gives only 1 error when compiling, before that there were 22 errors. Actions that could lead to this - trying to solve the problem through CSS.
After I removed everything in the code (-webkit-min-device-pixel-ratio: 2), the number of errors was reduced to 1, but I don’t understand what to do next.
My webpack 5 config: webpack.config
If someone knows how to solve this problem, or where to look for the root of evil, please help.
Problem solved! It turned out that in my webpack.config in the image processor, I did not add webp support. And when I added it on the fly, the already assembled project did not take this moment into account. As a result, after restarting the build with the npm run dev command, the updated webpack config file started working as it should! Thank you all for your attention to the issue and the desire to help figure it out! enter image description here

Exception: Error with message "Class yii\codeception\TestCase not found"

So I am just getting started with Codeception (I know, I am late to the game) and Yii2. There is a error I am running into that I don't seem to get fixed.
Problem
When I run 'codecept run', I get the error 'Error with message "Class yii\codeception\TestCase not found". Which is strange to me, because when I look for TestCases, I can find multiple TestCases! F.e. in the folders "backend", "console", ..
Information
Codeception has been installed Globally
The CodeCeption version I am using is the version 4.1.12
When I run any command, the console is giving me the message, "Redirecting to Composer-installed version in vendor/codeception".
What am I doing wrong?
If you guys need any information, hit me up!
Thanks!
Why do you use yii\codeception\TestCase class in your tests?
Have you found it in old tutorial?
yii\codeception\TestCase class was provided by yiisoft/yii2-codeception package which was abandoned back in 2016.
Use Cest format as documented in https://codeception.com/docs/02-GettingStarted#Writing-a-Sample-Test

configure: error: Cannot find private header tclInt.h in /home/dave/src/tcl-builds/raw/tcl8.4.1

I am trying to build open source tcl code.
I am hitting error below:
configure: error: Cannot find private header tclInt.h in /home/dave/src/tcl-builds/raw/tcl8.4.1
from the configure script I am not seeing the path mentioned above in error message..i am not sure from where this path is coming.
Any help?
FYI, I Tried this WAR : https://sourceforge.net/p/expect/bugs/30/ which did not help.

how to resolve ResolveLibraryProjectImports" task failed unexpectedly Exception

ResolveLibraryProjectImports" task failed unexpectedly
System.IO.FileNotFoundException Could not load assembly
I have tried to resolve it like clean bin, obj rebuild again said in the previous results of this issue but it doesn't work for me. Does anyone have a solution for this issue, please help me.
Note: I am having an error in Mono.Android in the References of portable code is this the problem and how to resolve this also?
This is the error I get:
Error The "ResolveLibraryProjectImports" task failed unexpectedly. System.IO.FileNotFoundException: Could not load assembly 'SampleProject, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'SampleProject.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, ICollection1 jars, ICollection1 resolvedResourceDirectories, ICollection1 resolvedAssetDirectories, ICollection1 resolvedEnvironments)
at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() SampleProject.Android Build
=> delete all from C:\Users\username\AppData\Local\Xamarin
=> delete .vs folder
=> restart visual studio in run as admin(if not).
=> clean and rebuild.
Mono.Android is purely a native Android dll for Xamarin.Android
using this in your portable project will throw an error (Of Course.)
This might be the issue if the error still persists after removing the dll then I would suggest you remove the bin obj folders and clean build and in case it still persists you should upload the output window for the debug build as well as error list explanation for this particular error.

how to fix Symfony 3 FosrestBundle Invalid configuration, Warning: class_implements(): Class does not exist?

I am getting this error and didn't found the answer yet online,
How to fix this issue?
Invalid configuration for path "fos_rest.exception.codes": Warning: class_implements(): Class `� does not exist and could not be loaded
even though i used the same configuration which symfony recommend.
Issue resolved just by restarting the apache server.