Archive for the ‘PHP’ Category
Over the past week I have been learning and working with Zend Framework on a new site im creating, 20DollarBanners.com. Everything has been working great all week on my windows machine, and I thought it was about time to upload to one of our live web servers for testing. As with most sites, as soon as I went from Windows to Linux all hell broke out. I got the following error, and couldn’t see anywhere in the code why it was happening.
exception ‘Zend_Controller_Dispatcher_Exception’ with message ‘Invalid controller specified (index)’ in /home/username/library/Zend/Controller/Dispatcher/Standard.php:249 Stack trace: #0 /home/username/library/Zend/Controller/Front.php(914): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /home/username/public_html/index.php(54): Zend_Controller_Front->dispatch() #2 {main}
After a little playing around on my local machine, I managed to reproduce the same error, and found that it was a problem with the filenames of my controller files. I checked on the linux server, and everything looked in order apart from one small difference. The filename on the server was indexController instead of IndexController, the captial I made all the difference.
After googling the problem, all I found was a load of results with pages just showing the error message, so hopefully this blog post will be of use to anyone else who finds themselves in the same situation I did.










