Skip to main content
Topic: Controller Was Not Found  (Read 10074 times) previous topic - next topic

Controller Was Not Found

Good morning, evenings or evenings as you read this message, I have a silly query, make a small app, in local mode great host everything works correctly, however, when uploading it to the server it throws me the next screen  - Image 1

Controller Was Not Found In Controller Directory. Please Check app/controllers/

What may be causing this, or what should correct?


Re: Controller Was Not Found

Reply #1
Hi,

maybe it's the same problem I reported here
https://forum.radsystems.io/index.php?topic=254.0
and
https://forum.radsystems.io/index.php?topic=235.0
???
 Maby there was a Windows update which wrecks creation of all files?

In the folder I have (see list below) which seem to be general phprad files.
AccountController.php
ApiController.php
ComponentsController.php
ErrorsController.php
FilehelperController.php
HomeController.php
IndexController.php
InfoController.php
PasswordmanagerController.php
ReportController.php


as well as files matching my tables:
FController.php
KController.php
MController.php
TaController.php
ZeController.php

What does your directory look like?

Olaf

Re: Controller Was Not Found

Reply #2
I work with PHPRad Classic

AccountController
ApiController
ErrorsController
FilehelperController
HomeController
IndexController
InfoController
PasswordmanagerController
ReportController
SharedController

In my localhost it works without problems, however when uploading it to the online server, it shows the error mentioned above. in your case, how did you solve it?

Re: Controller Was Not Found

Reply #3
Please make sure that .htaccess is allowed by you server and that you have uploaded it. Some server does not allow "dot files".

Re: Controller Was Not Found

Reply #4
The project was made with the classic version, the .htaccess file is loaded and the drivers also, in my localhost it works without problems, nevertheless when uploading it to the server it generates me what the driver can not be found. Download the Vue test version and with this it does not give the error, check the .htaccess files and they are identical, so I do not understand what could be wrong. I listen to suggestions.

Re: Controller Was Not Found

Reply #5
Hi Jgonzalez,

some suggestions:
Did you take care, that uploading files did not change case of filenames (C vs. c ...)?
Did you make sure, all files have been uploaded?
Ans of course all subdirectories?
Did you try to upload as text or as binary files?
Did you try a different ftp client?
What happens, when you actually do NOT upload the .htaccess? Any errors?
Is there enough webspace for you?

Maybe something to know: What is your local test environment? What is the real environment? Both apache?
Did you check for permissions on the uploaded files? Probably  folders: 755 and files 644 (just a quick test on my environment)

Olaf

 

Re: Controller Was Not Found

Reply #6
Further to ong19's help.  I've noticed that sometimes the case gets screwed up between Windows local and Linux web server.  Really Windows test server ignores case and gives you Abc.php when you request ABC.php .  Linux is case sensitive so if you ask for ABC.php you get a 404 even if Abc.php exists.

Look at this thread/comment on special characters in file names. https://forum.radsystems.io/index.php?topic=192.msg648#msg648