terminal42 / contao-url-rewrite

Provides a back end module in Contao that allows you to specify url rewrites that are added to the Symfony Route collection
MIT License
15 stars 4 forks source link

Cache problem: URL rewrite config ID #19

Closed MDevster closed 4 years ago

MDevster commented 5 years ago

After about 24 hours, I always get the following error message when I try to call a URL that should be redirected.

Example / 3106 to /view/expose/my-object-3106.html

When I empty the cache the call works again for about 24h as desired.

Contao 4.7.5. Url Rewrite 1.3.0

error message

[2019-07-12 09:27:37] request.INFO: Matched route "url_rewrite_47". {"route":"url_rewrite_47","route_parameters":{"_route":"url_rewrite_47","_controller":"terminal42_url_rewrite.rewrite_controller:indexAction","_url_rewrite":"Terminal42\UrlRewriteBundle\ConfigProvider\DatabaseConfigProvider:7770"},"request_uri":"https://www.domain.de/3106","method":"GET"} [] [2019-07-12 09:27:37] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "URL rewrite config ID Terminal42\UrlRewriteBundle\ConfigProvider\DatabaseConfigProvider:7770 does not exist" at /var/www/vhosts/domain.de/httpdocs/domains/www.domain.de/vendor/terminal42/contao-url-rewrite/src/Controller/RewriteController.php line 65 {"exception":"[object] (Symfony\Component\Routing\Exception\RouteNotFoundException(code: 0): URL rewrite config ID Terminal42\UrlRewriteBundle\ConfigProvider\DatabaseConfigProvider:7770 does not exist at /var/www/vhosts/domain.de/httpdocs/domains/www.domain.de/vendor/terminal42/contao-url-rewrite/src/Controller/RewriteController.php:65)"} []

frontendschlampe commented 5 years ago

I have a similar problem: I make a new redirect and than a delete the redirect. After that the target URL of the deleted redirect shows an error, even though it works before redirecting. After empty the prod-cache it's working again.

I get the following error:

[2019-09-25 14:04:53] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "URL rewrite config ID Terminal42\UrlRewriteBundle\ConfigProvider\DatabaseConfigProvider:9 does not exist" at /www/htdocs/XXX/XXX/vendor/terminal42/contao-url-rewrite/src/Controller/RewriteController.php line 65 {"exception":"[object] (Symfony\\Component\\Routing\\Exception\\RouteNotFoundException(code: 0): URL rewrite config ID Terminal42\\UrlRewriteBundle\\ConfigProvider\\DatabaseConfigProvider:9 does not exist at /www/htdocs/XXX/XXX/vendor/terminal42/contao-url-rewrite/src/Controller/RewriteController.php:65)"} []

Contao 4.7.7 Url Rewrite 1.3.0

qzminski commented 5 years ago

Hey @frontendschlampe thanks for confirming the issue. Now that you know the exact steps to reproduce, can you write me point-by-point how to do it? Like 1. create entry with this and that configuration; 2. do something; etc.

frontendschlampe commented 5 years ago

*wtf

Now we can't reproduce it again! :-(