Log message #4261614

# At Username Text
# Apr 21st 2021, 14:46 marius.treu if there is no such thing its not too bad
# Apr 21st 2021, 14:46 marius.treu instead of always wrapping the code of an action with try catch, i prefer to have a generic approach
# Apr 21st 2021, 14:45 marius.treu i dont want to render exceptions (with Custom ExceptionRenderer), but i have multiple actions which throw the same error and i simply want to catch this one and react to it
# Apr 21st 2021, 14:33 admad why?
# Apr 21st 2021, 14:14 nayakvradhit Will check it and will update u
# Apr 21st 2021, 14:08 marius.treu so i can try catch all actions inside a controller?
# Apr 21st 2021, 14:08 marius.treu there are events like initialize (right after constructor), beforeRender (after execution of action) etc. . My question is now, is there a similar "event" which wraps the action execution?
# Apr 21st 2021, 14:07 marius.treu is there a possibility to catch an actions from outside?
# Apr 21st 2021, 14:07 marius.treu hi
# Apr 21st 2021, 13:28 lyndon298 I'll give that a whirl. thanks!
# Apr 21st 2021, 13:11 joacir.santos Did you try using join? Check this: https://book.cakephp.org/4/en/orm/query-builder.html#adding-joins
# Apr 21st 2021, 11:02 kevin.pfeifer or just default
# Apr 21st 2021, 11:02 kevin.pfeifer do you have some custom apache config in your /etc/apache2?
# Apr 21st 2021, 11:01 kevin.pfeifer i dont think thats it but you could try
# Apr 21st 2021, 11:01 nayakvradhit Should I copy this into that and check?
# Apr 21st 2021, 10:44 kevin.pfeifer https://github.com/cakephp/app/blob/master/webroot/.htaccess
# Apr 21st 2021, 10:44 kevin.pfeifer the default cakephp/app .htaccess looks like this
# Apr 21st 2021, 10:44 kevin.pfeifer basically not as far as i understand it
# Apr 21st 2021, 10:43 nayakvradhit Should I add some thing
# Apr 21st 2021, 10:43 nayakvradhit Content is not correct?
# Apr 21st 2021, 10:36 kevin.pfeifer :thinking_face:
# Apr 21st 2021, 10:28 nayakvradhit This is the content I. Am having inside webroot
# Apr 21st 2021, 10:27 nayakvradhit <IfModule mod_rewrite.c> RewriteEngine On RewriteRule . * -[E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteCond %{REQUEST_FILENAME} ! -d RewriteCond %{REQUEST_FILENAME} ! -f RewriteRule ^ index.php [L] </IfModule>
# Apr 21st 2021, 10:19 nayakvradhit test.php alps works
# Apr 21st 2021, 10:19 kevin.pfeifer what is the content of the .htaccess in the webroot folder
# Apr 21st 2021, 10:19 nayakvradhit Yeah it works
# Apr 21st 2021, 10:18 kevin.pfeifer but you said before that /info.php worked
# Apr 21st 2021, 10:18 nayakvradhit And if type ipaddress/ it shows apache home. Page
# Apr 21st 2021, 10:18 nayakvradhit I am getting url not found when I pass index.php
# Apr 21st 2021, 10:16 kevin.pfeifer but it should result in the same if you only go to your ipaddress as well
# Apr 21st 2021, 10:16 kevin.pfeifer yea try that
# Apr 21st 2021, 10:16 nayakvradhit I should run ipaddress/index.php right
# Apr 21st 2021, 10:15 kevin.pfeifer because the default apache html page is usually located in /var/www/html
# Apr 21st 2021, 10:15 kevin.pfeifer if not, somethings wrong with the apache config where it doesn’t load the index.php as default
# Apr 21st 2021, 10:14 kevin.pfeifer i just want to confirm that you get in that file
# Apr 21st 2021, 10:14 nayakvradhit Ok let me check
# Apr 21st 2021, 10:14 kevin.pfeifer yes
# Apr 21st 2021, 10:14 nayakvradhit Inside index.php?
# Apr 21st 2021, 10:13 kevin.pfeifer at the start
# Apr 21st 2021, 10:13 kevin.pfeifer and if you put a ```var_dump("test"); die();``` in there does it output that?
# Apr 21st 2021, 10:12 nayakvradhit Inside webroot I am having index.php file