Error for compatibility setting in laravel

Website URL

http://knowledgetime.lovestoblog.com/
(please specify the URL of the site on which you are experiencing the problem)

Error Message

Fatal error : Could not check compatibility between Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator::current(): Symfony\Component\Finder\SplFileInfo and FilesystemIterator::current(): SplFileInfo|FilesystemIterator|string, because class Symfony\Component\Finder\SplFileInfo is not available in /home/vol1000_8/infinityfree.com/if0_36270822/htdocs/laravel/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 54
(please share the FULL error message you see, if applicable)

Other Information

This error stop the website from running. additional research showed me a solution to change my PHP version of the project but what is the version that my hosting provider is using? and if I change the version then I have to run the command
“composer update” but I don’t think that can be done on this live server. any solution?
(other information and details relevant to your question)

Looking at the error message, it seems that the PHP code is simply unable to find the find a certain class in your code.

Looking at the message, there should be a PHP class SplFileInfo in the file on the following path: htdocs/laravel/vendor/symfony/finder/SplFileInfo.php

Please make sure that this file exists and that it contains the actual PHP class code (i.e. there should be a line that contains class SplFileInfo in the file). If it doesn’t, please try re-uploading the file from your computer.

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.