Discussion:
Getting any Zend Framework set up in Eclipse & working on Ubuntu
ksgarrett
2009-06-18 01:03:31 UTC
Permalink
Hi, I cannot seem to get any of the sample projects working. I can get it to
work in the browser, and the initial page does show up as expected, but I
cannot run any of it through eclipse, as all I get is an "invalid
controller" message, called from the main index.php:
$application->bootstrap();

Here's my error stack. Is there a special configuration needed for
debugging ZF apps? I've spent 4 days so far, and I can't get past the
Quickstart. Help!! I know it can't be this difficult....

<h3>Stack trace:</h3>
<pre>#0
/home/fishpond/workspace-alt/zfproject/library/Zend/Controller/Front.php(945):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http))
#1
/home/fishpond/workspace-alt/zfproject/library/Zend/Application/Bootstrap/Bootstrap.php(77):
Zend_Controller_Front->dispatch()
#2 /home/fishpond/workspace-alt/zfproject/library/Zend/Application.php(328):
Zend_Application_Bootstrap_Bootstrap->run()
#3 /home/fishpond/workspace-alt/zfproject/public/index.php(26):
Zend_Application->run()
#4 {main}
</pre>
--
View this message in context: http://www.nabble.com/Getting-any-Zend-Framework-set-up-in-Eclipse---working-on-Ubuntu-tp24084782p24084782.html
Sent from the Zend Framework mailing list archive at Nabble.com.
ksgarrett
2009-06-18 01:51:15 UTC
Permalink
I switched to a different workspace and am able to get past this error.
(It's no longer looking for the Zend library file path that had somehow
gotten linked to a (now invalid) location.)

Now it's looking for a controller based on my complete directory path, and
it's not skipping over the directories within the webserver that my project
is located within (even though I've got the documents root of the webserver
correctly set to the 'public' folder of my project. I can trace the code
into the Http class, where it gets assigned the path info.

The weird part is -- it works fine outside of Eclipse - at least displaying
the initial page (whew!), but the re-write is not working. I've read every
piece of documentation on this -- how do you get re-write to work on Ubuntu
on a virtual webhost? Is there some trick? Spending this much time just
getting the Quickstart not working is quite frustrating, especially as
others don't seem to have this issue.... arghh! Any ideas?



Hi, I cannot seem to get any of the sample projects working. I can get it
to work in the browser, and the initial page does show up as expected, but I
cannot run any of it through eclipse, as all I get is an "invalid
controller" message, called from the main index.php:
$application->bootstrap();
--
View this message in context: http://www.nabble.com/Getting-any-Zend-Framework-set-up-in-Eclipse---working-on-Ubuntu-tp24084782p24085149.html
Sent from the Zend Framework mailing list archive at Nabble.com.
ksgarrett
2009-06-18 02:27:57 UTC
Permalink
It's not the re-write; that's working. I followed the instructions on this
article

http://devzone.zend.com/node/view/id/70

And found the re-write is working fine, but it's still throwing a missing
controller error -- which is visible in the index page when you run in
Eclipse. The framework is looking for a controller based on the params
array of the Zend_Controller_Request_Http. Those params are:

*::_params = Array [3]
controller = (string:11) ZFMigration
action = (string:6) public
module = (string:7) default

This is the path to the default file, but I don't know why it's looking for
this... What is not configured or set up right?
<snip>.. but the re-write is not working.
--
View this message in context: http://www.nabble.com/Getting-any-Zend-Framework-set-up-in-Eclipse---working-on-Ubuntu-tp24084782p24085417.html
Sent from the Zend Framework mailing list archive at Nabble.com.
Carlton Gibson
2009-06-18 07:17:26 UTC
Permalink
Post by ksgarrett
The framework is looking for a controller based on the params
*::_params = Array [3]
controller = (string:11) ZFMigration
action = (string:6) public
module = (string:7) default
This is the path to the default file, but I don't know why it's looking for
this... What is not configured or set up right?
I can't be sure from your description but it looks like the request
object is failing to detect your Base URL (/ZFMigration/public, yes?)

Try calling setBaseUrl() -- perhaps easiest via the front controller
-- prior to dispatching.

<http://framework.zend.com/manual/en/zend.controller.request.html#zend.controller.request.http.baseurl
HTH,

Loading...