Couldn't get "Hello World!" to work
Reported by andrew | June 5th, 2009 @ 09:49 AM | in Release 0.3 - Citronnade
I just downloaded Limonade. However, the "Hello World!" example didn't work for me. It just spits out a bunch of error messages starting with "undefined variable line 484" and "undefined offset line 1632". Just thought you should know. I don't know if it has anything to do with my environment setup, but there isn't any explanation why it doesn't work.
Let me know if you know how to fix this.
Comments and changes to this ticket
-
Fabrice Luraine June 5th, 2009 @ 12:19 PM
Hello,
the "Hello World!" example works for me. I've commited my Limonade last changes on the repo.
Could you try again with the latest sources ?thks
-
andrew June 5th, 2009 @ 12:42 PM
Sorry, still getting all the same errors.
Notice: Undefined variable: errfile in /...../lib/limonade.php on line 484
-
Fabrice Luraine June 5th, 2009 @ 01:18 PM
ok,
can you please post here the full error return and more information about your server ?Thks
-
andrew June 5th, 2009 @ 01:25 PM
I'm running this locally on my Mac OS X 10.5, with MAMP. Here's the full error return:
Notice: Undefined variable: errfile in /Users/andrew/Sites/library/layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php on line 484
Notice: Undefined variable: errline in /Users/andrew/Sites/library/layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php on line 484
Notice: Undefined offset: 2 in /Users/andrew/Sites/library/layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php on line 1639
Notice: Undefined offset: 2 in /Users/andrew/Sites/library/layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php on line 1639
Warning: Cannot modify header information - headers already sent by (output started at /Users/andrew/Sites/library/layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php:484) in /Users/andrew/Sites/library/layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php on line 1551
Notice: Undefined offset: 2 in /Users/andrew/Sites/library/layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php on line 1639
Warning: Cannot modify header information - headers already sent by (output started at /Users/andrew/Sites/library/layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php:484) in /Users/andrew/Sites/library/layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php on line 1192
Notice: Undefined offset: 2 in /Users/andrew/Sites/library/layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php on line 1639
Internal Server Error[WARNING] Cannot modify header information - headers already sent by (output started at /Users/andrew/Sites/library/layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php:484) (in /Users/andrew/Sites/library/layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php line 306)
Debug Trace
Array
([0] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 1169 [function] => include ) [1] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade/views/error.html.php [line] => 6 [function] => render [args] => Array ( [0] => _debug.html.php [1] => [2] => Array ( [_lim_err_debug_args] => [errno] => 2 [errstr] => Cannot modify header information - headers already sent by (output started at /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php:484) [errfile] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [errline] => 306 [is_http_error] => ) ) ) [2] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 1169 [args] => Array ( [0] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade/views/error.html.php ) [function] => include ) [3] => Array ( [function] => render [args] => Array ( [0] => error.html.php [1] => default_layout.php [2] => Array ( [errno] => 2 [errstr] => Cannot modify header information - headers already sent by (output started at /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php:484) [errfile] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [errline] => 306 [is_http_error] => ) ) ) [4] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 1194 [function] => call_user_func_array [args] => Array ( [0] => render [1] => Array ( [0] => error.html.php [1] => default_layout.php [2] => Array ( [errno] => 2 [errstr] => Cannot modify header information - headers already sent by (output started at /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php:484) [errfile] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [errline] => 306 [is_http_error] => ) ) ) ) [5] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 620 [function] => html [args] => Array ( [0] => error.html.php [1] => default_layout.php [2] => Array ( [errno] => 2 [errstr] => Cannot modify header information - headers already sent by (output started at /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php:484) [errfile] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [errline] => 306 [is_http_error] => ) ) ) [6] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 623 [function] => server_error [args] => Array ( [0] => 2 [1] => Cannot modify header information - headers already sent by (output started at /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php:484) [2] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [3] => 306 ) ) [7] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 559 [function] => error_server_error_output [args] => Array ( [0] => 2 [1] => Cannot modify header information - headers already sent by (output started at /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php:484) [2] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [3] => 306 ) ) [8] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 527 [function] => error_default_handler [args] => Array ( [0] => 2 [1] => Cannot modify header information - headers already sent by (output started at /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php:484) [2] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [3] => 306 ) ) [9] => Array ( [function] => error_handler_dispatcher [args] => Array ( [0] => 2 [1] => Cannot modify header information - headers already sent by (output started at /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php:484) [2] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [3] => 1551 [4] => Array ( [code] => 404 [str] => HTTP/1.1 404 Not Found ) ) ) [10] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 1551 [function] => header [args] => Array ( [0] => HTTP/1.1 404 Not Found ) ) [11] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 546 [function] => status [args] => Array ( [0] => 404 ) ) [12] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 527 [function] => error_default_handler [args] => Array ( [0] => 404 [1] => (GET) /_library/_layout%20frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/examples/example01 [2] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [3] => 306 ) ) [13] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 484 [function] => error_handler_dispatcher [args] => Array ( [0] => 404 [1] => (GET) /_library/_layout%20frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/examples/example01 [2] => [3] => ) ) [14] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 306 [function] => halt [args] => Array ( [0] => 404 [1] => (GET) /_library/_layout%20frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/examples/example01 ) ) [15] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade.php [line] => 347 [function] => route_missing [args] => Array ( [0] => GET [1] => /_library/_layout%20frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/examples/example01 ) ) [16] => Array ( [file] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/examples/example01/index.php [line] => 90 [function] => run [args] => Array ( ) )
)
Limonade options
Array
([root_dir] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/examples/example01 [limonade_dir] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/ [public_dir] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/examples/example01/public/ [views_dir] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/lib/limonade/views/ [controllers_dir] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/examples/example01/controllers/ [lib_dir] => /Users/andrew/Sites/_library/_layout frameworks/sofadesign-limonade-bc6df0f516ebdece1df39408934198a9202c9a07/examples/example01/lib/ [env] => 100 [debug] => 1 [encoding] => utf-8 [x-sendfile] => 0
)
-
Fabrice Luraine June 5th, 2009 @ 04:10 PM
- State changed from new to resolved
You can now download the latest code and everything will work fine.
Thks again for your feedback: it helps me to fix some little things with error notices, HTTP headers errors and, most important, a big inifinite loop that might occur in renderer !
-
andrew June 5th, 2009 @ 04:36 PM
I'm glad I could be of help. =]
However, it still does not quite work yet for me.
Now there is a different error message.
Page not found:
(GET) /library/layout frameworks/limonade/examples/example01 -
Fabrice Luraine June 5th, 2009 @ 04:57 PM
- State changed from resolved to open
arf,
i made additionnal tests with MAMP on OSX 10.5 and it's still ok for me.
Could you try to call it in different maners in url:- /library/layout frameworks/limonade/examples/example01/
- /library/layout frameworks/limonade/examples/example01/index.php
- /library/layout frameworks/limonade/examples/example01/?
- /library/layout frameworks/limonade/examples/example01/?/
- /library/layout frameworks/limonade/examples/example01/index.php?
- /library/layout frameworks/limonade/examples/example01/index.php?/
is it always the same ?
-
Fabrice Luraine June 5th, 2009 @ 05:10 PM
- State changed from open to resolved
i've found it! this is because of the space character of the 'layout framework' directory.
I've fixed Limonade to support non-alphanumeric characters in the uri.
You can check the latest sourceThks
-
Fabrice Luraine June 10th, 2009 @ 09:08 AM
- Milestone set to Release 0.3 - Citronnade
[milestone:ID#42088 bulk edit command]
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Limonade is a PHP micro-framework.