I just copied all my files to a server online. I did this with filezilla.
Strange thing is laravel gives me the error: "Class Homecontroller does not exist".
I checked the Homecontroller.php but it does exists. What could be the cause of this error?
This is my HomeController code:
<?php
class HomeController extends BaseController {
// Here are my functions.
}
Server/Request Data
UNIQUE_ID UxWbm1vH22cAAGaLFWoAAAAK
HTTP_HOST dev-certificering.safetyanalyse.nl
HTTP_CONNECTION keep-alive
HTTP_CACHE_CONTROL max-age=0
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
HTTP_ACCEPT_ENCODING gzip,deflate,sdch
HTTP_ACCEPT_LANGUAGE nl-NL,nl;q=0.8,en-US;q=0.6,en;q=0.4
HTTP_COOKIE __utma=197115566.1968375218.1393585231.1393585231.1393585231.1; __utmz=197115566.1393585231.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ld893_s=44402; laravel4_session2=acc95433a58b132c0780b0d0415cefd8
PATH /usr/local/bin:/usr/bin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.3.28
SERVER_NAME dev-certificering.safetyanalyse.nl
SERVER_ADDR 91.199.219.103
SERVER_PORT 80
REMOTE_ADDR 217.122.22.80
DOCUMENT_ROOT /home/safety/domains/safetyanalyse.nl/public_html/dev-certificering
SERVER_ADMIN webmaster@safetyanalyse.nl
SCRIPT_FILENAME /home/safety/domains/safetyanalyse.nl/public_html/dev-certificering/public/index.php
REMOTE_PORT 49881
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /public/
SCRIPT_NAME /public/index.php
PHP_SELF /public/index.php
REQUEST_TIME 1393925019
argv Array ( )
argc 0
I think that the name of the file should be HomeController.php
not Homecontroller.php
.
Have you tried running composer dump-autoload
?
My guess is that you are developing your app on Windows and your server is running Linux. That is why that worked on your local machine and not on the server.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community