I have a Laravel project working fine in Localhost. After deploying it to a shared hosting server I am getting "prettyPrint is not defined" error. Can someone help me identify the problem. PHP version on server is 7.1. Laravel 5.8 and using jeroennoten/Laravel-AdminLTE
Problem was .htaccess file. Replacing file solved the problem.
Related
Vite didnt load asset properly on my laravel 9 project. i've been facing this problem when using laravel 9 with Vite. first when i install laravel breeze i though the breeze is the problem, but now i try using jetstream it has the same issue. please see the screenshot below. can someone help me ?
I think you need to run the Vite server using npm run dev. That will also take care of hot reloading
I run "npm run dev" command by mistake. And website is started using dev url. I searched for a solution but never found. I found solution myself. You need to delete "hot" file in your public folder on your hosting.
In you hosting go to "public" path and delete named "hot" file.
Can you help me to fix this issue?
I uploaded all files to hosting with all requirements needed (PHP 7.4) and now I see 500 error page. All scripts are working in the public_html directory, but Laravel doesn't.
The configuration is here: http://fratelli.md/info.php
i have a pc and desktop, they both used to have xampp and laravel 5.7, recently i updated laravel to 5.8 in my desktop and reset laptop and install laravel 5.8,, routes are working all fine in desktop laravel version ,, but in newly installed laravel in laptop they aren't working, i get 404 error except '/' i tried override all, ifmodule solution they are all fine it is not working in newly installed laravel 5.8 please help ...
PS : i also created seprate project in desktop and laptop ,, not copy paste but individually created in both of them..
i checked apache hhtp.config for ifmodule and overrride and htaccess is default i haven't modified any and is same as all them in solution
i want to be able to use routes without using php artisan serve
Check the configuration of the Directory section in the vhost settings of xampp.
/vendor/laravel/framework/src/Illuminate/Support/helpers.php on line 411
This error above I've faced on a free hosting service that uses PHP 5.3
I'm trying also on another paid service with PHP 5.3 and I'm getting the 500 Internal Server Error, and I made sure my routes and paths are good to go. (The index.php in the public folder, and the /bootstrap/path.php files are good to go with DIR URIs).
Now I'm sure I will keep getting these kind of errors and my app won't work unless I host it on a service with PHP 5.6, but I was hoping there would be a way that I could downgrade my Laravel version or PHP version for some kind of Backward Compatibility.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, cgiadmin#yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
My files are in the root directory, and there isn't any folder named public_html and so the files originally in the Laravel/public folder are dispersed in the root directory and my other application files and folders are in a folder in the root directory.
Any suggestions or help would really be much appreciated.
Laravel 4.2 requires PHP 5.4.
Laravel 4.2 requires PHP 5.4 or greater. This upgraded PHP requirement
allows us to use new PHP features such as traits to provide more
expressive interfaces for tools like Laravel Cashier. PHP 5.4 also
brings significant speed and performance improvements over PHP 5.3.
Please see this for more information: http://laravel.com/docs/4.2/releases
Your question is quite unclear, because you first state that you get the 500 Internal Server Error when using PHP 5.6 (in the title and, assumedly, the tag), but then you say that "[the] app won't work unless [you] host it on a service with PHP 5.6".
I have come over this problem with editing the .htaccess file within the /public_html folder of the server.
OR
By using the cPanel's Redirects and make it Redirect the server to the
domain.com/{if it's inside a folder inside the public_html}/index.php
and then ALL Routes and links worked perfectly fine.
If you want to change the URL and use Pretty URLs refer to the Laravel Documentations under Configuration.
I am unfortunately getting a blank page when trying to run a site locally. There are other people running it locally just fine, so I am wondering if it could be something to do with my LAMP environment.
When I attempt to load the site, it's nothing but a blank page. I've ran php index.php in console and the error I get is the following "xajax Error: xajax failed to automatically identify your Request URI.Please set the Request URI explicitly when you instantiate the xajax object.". I'm not quite sure how to handle this in CodeIgniter and or at all to be honest.
I think it's a problem with LAMP configuration: check codeigniter folder permissions (add write permission to "logs" folder.
Thanks for your answer. I actually figured out what the problem was, it was like you said a problem with my LAMP configuration. Unfortunately XAMPP (which is what I am using and or was), the newest version uses PHP 5.3. Xajax doesn't support PHP 5.3 and this was causing the problems. After I went to an older version all was well!