I push my source code using FileZila, after transfer is done i create my .httpaccess
this is my htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ /ConversionUID/public/$1 [L]
but i got that error and also im done to run this command
call yarn run dev
call yarn run prod
call composer dump-autoload
call php artisan optimize
call php artisan optimize:clear
before i transfer my source code please help
Fatal error : Trait “Illuminate\Support\Traits\EnumeratesValues” not found in /home/vol15_3/infinityfree.com/if0_38443849/htdocs/ConversionUID/vendor/laravel/framework/src/Illuminate/Collections/Collection.php on line 12
Error 500 is a server error, when the PHP code crashes.
Based on the description you gave me, I think you are trying to tell the server to execute some commands that may not be available on InfinityFree’s hosting.
If you can, please define what your code is trying to do further. I don’t understand.
It sounds like you are dealing with a case of Browser Cache. There are a few ways I know about to mitigate the issue:
Soft Force Refresh [Press Reload button 2x]
Open Developer Console, go to Network (or Networking), check disable cache or clear cache
Use of a Guest or Incognito Tab
Hard Cache Clear [Not recommended, but use as last resort:ctrl-shift-delete or cmd-shift-delete, then make sure to only have Temporary cached files and pages or similar checked.
EDIT: Forgot to say, Welcome to the InfinityFree Forum!
my local webpage is removed the tab modify java script function to that fix the error but its not updated after transfer the vue file using filezila i also clear all cache
I don’t know what the correct version of the code or the outdated code is, so I cannot tell you whether I get the correct code.
Please just make sure that you are updating/replacing ALL files exported by NPM. And try checking the page in private browsing mode to make sure that you’re definitely not seeing any cached version.
One optional recommendation: I see you’re still using Laravel Mix to build your assets. The new way to do asset compilation in Laravel is with Vite. One of the big benefits of Vite is that it automatically adds a content digest to the end of the file. So instead of app.js it generates a file app-asdf123.js instead. This is very useful because it avoids a lot of trouble with caching, because any time the file updates, the URL updates too.
Also, I would remove the node_modules folder from your website, or at least not upload it. Our servers don’t have Node.js, so they can’t do anything with node_modules, so you’re just wasting a lot of disk space and inodes on unusable code. You only need to really upload the generated files in the public folder.