Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Admin makes weird redirect during save #746

Open
papablack opened this issue Sep 7, 2016 · 7 comments
Open

Admin makes weird redirect during save #746

papablack opened this issue Sep 7, 2016 · 7 comments

Comments

@papablack
Copy link

Q A
Bug? yes
New Feature? no
Sulu Version c38d126

The admin panel makes weird redirext after i save content look at the picture. Please help i cant put my page on production!

error-sulu

@alexander-schranz
Copy link
Member

Does it work on production environment on your dev machine? Do you have some output from the log?

Normally this redirects with the language are only done on the website to find a page which is requested without a locale not in the admin maybe some fail configuration of the webserver could be the problem e.g. a false mod rewrite.

@papablack
Copy link
Author

its a normal 404 error. Where do I look for the cause?


Pozdrawiam, Jakub Pawlik / Best regards, James Pawlik

2016-09-08 9:02 GMT+02:00 L91 notifications@github.com:

Does it work on production environment on your dev machine? Do you have
some output from the log?

Normally this redirects with the language are only done on the website to
find a page which is requested without a locale not in the admin maybe some
fail configuration of the webserver could be the problem e.g. a false mod
rewrite.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#746 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHGHTDfvwESBXe259jkSJ_2V-ZLdwrRfks5qn7LvgaJpZM4J3R1z
.

@alexander-schranz
Copy link
Member

you dont need the error or log of the 404 you need the log of the redirect which was done before. and make sure you did check disable cache on the dev toolbar.

the log are under app/logs/admin/prod/prod.log and app/logs/website/prod/prod.log.

@papablack
Copy link
Author

papablack commented Sep 13, 2016

It's crazy but after deleting logs and proceeding to save some content i have only website log. It's like my backend runs on frontend environment! Here is the app/logs/website/prod/prod.log :

[2016-09-13 15:13:10] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was not able to match, message "" [] [] [2016-09-13 15:13:10] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:10] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:10] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:10] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /pl/admin/security/profile/settings" (from "http://www.xn--archanio-epb.pl/admin/")" at /home/black92/domains/test.xn--archanio-epb.pl/public_html/app/cache/website/prod/classes.php line 2605 {"exception":"[object](Symfony\Component\HttpKernel\Exception\NotFoundHttpException%28code: 0%29: No route found for "GET /pl/admin/security/profile/settings" %28from "http://www.xn--archanio-epb.pl/admin/"%29 at /home/black92/domains/test.xn--archanio-epb.pl/public_html/app/cache/website/prod/classes.php:2605, Symfony\Component\Routing\Exception\ResourceNotFoundException%28code: 0%29: None of the routers in the chain matched this requestnGET /pl/admin/security/profile/settings HTTP/1.1rnAccept: */*rnAccept-Encoding: gzip, deflate, sdchrnAccept-Language: pl,en-US;q=0.8,en;q=0.6,af;q=0.4rnConnection: closernContent-Length: 76rnContent-Type: application/x-www-form-urlencoded; charset=UTF-8rnCookie: _ga=GA1.2.8887231.1473282331; PHPSESSID=r1e936gaj05idbvjqck8sa4tt1rnHost: www.xn--archanio-epb.plrnOrigin: http://www.xn--archanio-epb.plrnReferer: http://www.xn--archanio-epb.pl/admin/rnSurrogate-Capability: symfony2="ESI/1.0"rnUser-Agent: Mozilla/5.0 %28Windows NT 10.0; WOW64%29 AppleWebKit/537.36 %28KHTML, like Gecko%29 Chrome/52.0.2743.116 Safari/537.36rnX-Forwarded-For: 46.134.82.23rnX-Php-Ob-Level: 1rnX-Requested-With: XMLHttpRequestrnrnkey=angelColumnNavigationSelected&value=de05ea93-6268-48cd-bcc9-cd65fee56eb5 at /home/black92/domains/test.xn--archanio-epb.pl/public_html/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php:201)"} [] [2016-09-13 15:13:11] app.DEBUG: [CACHE] FLUSH OK [Sulu\Component\HttpCache\Handler\UrlHandler] [] [] [2016-09-13 15:13:12] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was not able to match, message "" [] [] [2016-09-13 15:13:12] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:12] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:12] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:12] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /pl/admin/security/profile/settings" (from "http://www.xn--archanio-epb.pl/admin/")" at /home/black92/domains/test.xn--archanio-epb.pl/public_html/app/cache/website/prod/classes.php line 2605 {"exception":"[object](Symfony\Component\HttpKernel\Exception\NotFoundHttpException%28code: 0%29: No route found for "GET /pl/admin/security/profile/settings" %28from "http://www.xn--archanio-epb.pl/admin/"%29 at /home/black92/domains/test.xn--archanio-epb.pl/public_html/app/cache/website/prod/classes.php:2605, Symfony\Component\Routing\Exception\ResourceNotFoundException%28code: 0%29: None of the routers in the chain matched this requestnGET /pl/admin/security/profile/settings HTTP/1.1rnAccept: */*rnAccept-Encoding: gzip, deflate, sdchrnAccept-Language: pl,en-US;q=0.8,en;q=0.6,af;q=0.4rnConnection: closernContent-Length: 76rnContent-Type: application/x-www-form-urlencoded; charset=UTF-8rnCookie: _ga=GA1.2.8887231.1473282331; PHPSESSID=r1e936gaj05idbvjqck8sa4tt1rnHost: www.xn--archanio-epb.plrnOrigin: http://www.xn--archanio-epb.plrnReferer: http://www.xn--archanio-epb.pl/admin/rnSurrogate-Capability: symfony2="ESI/1.0"rnUser-Agent: Mozilla/5.0 %28Windows NT 10.0; WOW64%29 AppleWebKit/537.36 %28KHTML, like Gecko%29 Chrome/52.0.2743.116 Safari/537.36rnX-Forwarded-For: 46.134.82.23rnX-Php-Ob-Level: 1rnX-Requested-With: XMLHttpRequestrnrnkey=angelColumnNavigationSelected&value=de05ea93-6268-48cd-bcc9-cd65fee56eb5 at /home/black92/domains/test.xn--archanio-epb.pl/public_html/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php:201)"} [] [2016-09-13 15:13:12] app.DEBUG: [CACHE] FLUSH OK [Sulu\Component\HttpCache\Handler\UrlHandler] [] [] [2016-09-13 15:13:15] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was not able to match, message "" [] [] [2016-09-13 15:13:15] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:15] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:15] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:15] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /pl/js/d41c63a.js" (from "http://www.xn--archanio-epb.pl/admin/")" at /home/black92/domains/test.xn--archanio-epb.pl/public_html/app/cache/website/prod/classes.php line 2605 {"exception":"[object](Symfony\Component\HttpKernel\Exception\NotFoundHttpException%28code: 0%29: No route found for "GET /pl/js/d41c63a.js" %28from "http://www.xn--archanio-epb.pl/admin/"%29 at /home/black92/domains/test.xn--archanio-epb.pl/public_html/app/cache/website/prod/classes.php:2605, Symfony\Component\Routing\Exception\ResourceNotFoundException%28code: 0%29: None of the routers in the chain matched this requestnGET /pl/js/d41c63a.js HTTP/1.1rnAccept: */*rnAccept-Encoding: gzip, deflate, sdchrnAccept-Language: pl,en-US;q=0.8,en;q=0.6,af;q=0.4rnConnection: closernCookie: _ga=GA1.2.8887231.1473282331; PHPSESSID=r1e936gaj05idbvjqck8sa4tt1rnHost: www.xn--archanio-epb.plrnReferer: http://www.xn--archanio-epb.pl/admin/rnSurrogate-Capability: symfony2="ESI/1.0"rnUser-Agent: Mozilla/5.0 %28Windows NT 10.0; WOW64%29 AppleWebKit/537.36 %28KHTML, like Gecko%29 Chrome/52.0.2743.116 Safari/537.36rnX-Forwarded-For: 46.134.82.23rnX-Php-Ob-Level: 1rnrn at /home/black92/domains/test.xn--archanio-epb.pl/public_html/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php:201)"} [] [2016-09-13 15:13:15] app.DEBUG: [CACHE] FLUSH OK [Sulu\Component\HttpCache\Handler\UrlHandler] [] [] [2016-09-13 15:13:16] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was not able to match, message "" [] [] [2016-09-13 15:13:16] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:16] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:16] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:16] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /pl/js/d41c63a.js" (from "http://www.xn--archanio-epb.pl/admin/")" at /home/black92/domains/test.xn--archanio-epb.pl/public_html/app/cache/website/prod/classes.php line 2605 {"exception":"[object](Symfony\Component\HttpKernel\Exception\NotFoundHttpException%28code: 0%29: No route found for "GET /pl/js/d41c63a.js" %28from "http://www.xn--archanio-epb.pl/admin/"%29 at /home/black92/domains/test.xn--archanio-epb.pl/public_html/app/cache/website/prod/classes.php:2605, Symfony\Component\Routing\Exception\ResourceNotFoundException%28code: 0%29: None of the routers in the chain matched this requestnGET /pl/js/d41c63a.js HTTP/1.1rnAccept: */*rnAccept-Encoding: gzip, deflate, sdchrnAccept-Language: pl,en-US;q=0.8,en;q=0.6,af;q=0.4rnConnection: closernCookie: _ga=GA1.2.8887231.1473282331; PHPSESSID=r1e936gaj05idbvjqck8sa4tt1rnHost: www.xn--archanio-epb.plrnReferer: http://www.xn--archanio-epb.pl/admin/rnSurrogate-Capability: symfony2="ESI/1.0"rnUser-Agent: Mozilla/5.0 %28Windows NT 10.0; WOW64%29 AppleWebKit/537.36 %28KHTML, like Gecko%29 Chrome/52.0.2743.116 Safari/537.36rnX-Forwarded-For: 46.134.82.23rnX-Php-Ob-Level: 1rnrn at /home/black92/domains/test.xn--archanio-epb.pl/public_html/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php:201)"} [] [2016-09-13 15:13:16] app.DEBUG: [CACHE] FLUSH OK [Sulu\Component\HttpCache\Handler\UrlHandler] [] [] [2016-09-13 15:13:30] app.DEBUG: Router Symfony\Bundle\FrameworkBundle\Routing\Router was not able to match, message "" [] [] [2016-09-13 15:13:30] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:30] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:30] app.DEBUG: Router Symfony\Cmf\Bundle\RoutingBundle\Routing\DynamicRouter was not able to match, message "" [] [] [2016-09-13 15:13:30] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /pl/admin/api/nodes/de05ea93-6268-48cd-bcc9-cd65fee56eb5" (from "http://www.xn--archanio-epb.pl/admin/")" at /home/black92/domains/test.xn--archanio-epb.pl/public_html/app/cache/website/prod/classes.php line 2605 {"exception":"[object] (Symfony\Component\HttpKernel\Exception\NotFoundHttpException(code: 0): No route found for "GET /pl/admin/api/nodes/de05ea93-6268-48cd-bcc9-cd65fee56eb5" (from "http://www.xn--archanio-epb.pl/admin/\") at /home/black92/domains/test.xn--archanio-epb.pl/public_html/app/cache/website/prod/classes.php:2605, Symfony\Component\Routing\Exception\ResourceNotFoundException(code: 0): None of the routers in the chain matched this request\nGET /pl/admin/api/nodes/de05ea93-6268-48cd-bcc9-cd65fee56eb5 HTTP/1.1\r\nAccept: application/json, text/javascript, /; q=0.01\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: pl,en-US;q=0.8,en;q=0.6,af;q=0.4\r\nConnection: close\r\nContent-Length: 1899\r\nContent-Type: application/json\r\nCookie: _ga=GA1.2.8887231.1473282331; PHPSESSID=r1e936gaj05idbvjqck8sa4tt1\r\nHost: www.xn--archanio-epb.pl\r\nOrigin: http://www.xn--archanio-epb.pl\r\nReferer: http://www.xn--archanio-epb.pl/admin/\r\nSurrogate-Capability: symfony2="ESI/1.0"\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36\r\nX-Forwarded-For: 46.134.82.23\r\nX-Php-Ob-Level: 1\r\nX-Requested-With: XMLHttpRequest\r\n\r\n{"id":"de05ea93-6268-48cd-bcc9-cd65fee56eb5","url":"/gwarancja","created":"2016-09-07T20:09:07+0200","changed":"2016-09-07T20:30:58+0200","creator":1,"changer":1,"title":"Gwarancjaz","navContexts":[],"nodeType":1,"nodeState":2,"published":"2016-09-07T20:09:07+0200","shadowOn":false,"shadowBaseLanguage":null,"ext":{"seo":{"title":"","description":"","keywords":"","canonicalUrl":"","noIndex":false,"noFollow":false,"hideInSitemap":false},"excerpt":{"title":"","more":"","description":"","categories":[],"tags":[],"icon":[],"images":[]}},"order":30,"_permissions":{"view":true,"add":true,"edit":true,"delete":true,"archive":true,"live":true,"security":true},"template":"warranty","originTemplate":"warranty","internal":false,"localizedTemplate":"Gwarancja","headText":"
Gwarancja jakości

\n","article":"
Stróż twojego samochodu chroni ciÄ™ zawsze wtedy, kiedy tego potrzebujesz. Szybka reakcja to dopiero poczÄ…tek.

\n\n
DziÄ™ki sieci wyspecjalizowanych serwisantów i najlepszych dostawców oferujemy najwyższÄ… jakość usÅ‚ug.

","notice":"* w porównaniu do ASO","children":{"dataSource":"de05ea93-6268-48cd-bcc9-cd65fee56eb5","includeSubFolders":true,"categories":[],"categoryOperator":"or","tags":[],"tagOperator":"or","sortBy":[],"sortMethod":"asc","presentAs":null},"breadcrumb":[{"uuid":"875d21e9-1f19-4a24-90d4-9ef71f546eb6","title":"Archanioł - Stróż twojego samochodu","depth":0}],"path":"/gwarancja","parentUuid":"875d21e9-1f19-4a24-90d4-9ef71f546eb6","concreteLanguages":["pl"],"enabledShadowLanguages":[],"linked":null,"publishedState":true,"hasSub":true,"_hash":"e05ae6d083e1f8d6d374ca1710f390cb","_links":{"self":{"href":"/admin/api/nodes/de05ea93-6268-48cd-bcc9-cd65fee56eb5?language=pl"},"children":{"href":"/admin/api/nodes?parent=de05ea93-6268-48cd-bcc9-cd65fee56eb5&depth=1&webspace=angel&language=pl"}}} at /home/black92/domains/test.xn--archanio-epb.pl/public_html/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php:201)"} [] [2016-09-13 15:13:30] app.DEBUG: [CACHE] FLUSH OK [Sulu\Component\HttpCache\Handler\UrlHandler] [] []

@danrot
Copy link
Contributor

danrot commented Sep 19, 2016

@papablack Have you maybe edited the getCacheDir methods of the kernels? Can you try to use a debugger or die.

And is it only happening in production or does it also happen in the dev environment? I am talking about the Symfony environment here.

@papablack
Copy link
Author

i didn't and its on prod but it works on other hosting


Pozdrawiam, Jakub Pawlik / Best regards, James Pawlik

2016-09-19 13:27 GMT+02:00 Daniel Rotter notifications@github.com:

@papablack https://github.com/papablack Have you maybe edited the
getCacheDir methods of the kernels? Can you try to use a debugger or die.

And is it only happening in production or does it also happen in the dev
environment? I am talking about the Symfony environment here.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#746 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHGHTKwpL9tCB3swM58ySobJMgX2JdAlks5qrnGFgaJpZM4J3R1z
.

@danrot
Copy link
Contributor

danrot commented Sep 19, 2016

Did you compare the webserver configurations? Has to be something like that... Are the redirects correct? Does /admin actually go to the AdminKernel?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants