GithubHelp home page GithubHelp logo

moc.notfound's People

Contributors

aertmann avatar comir avatar dimaip avatar dlubitz avatar kdambekalns avatar mkuiphuis avatar mrimann avatar nikdro avatar peterbucher avatar sebobo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

moc.notfound's Issues

Not working with Neos 4.3 as expected

I realized today, that since Neos 4.3 this package does not longer work (reliably?).

The native 404 handling interacts in some way, so that it was always the homepage being shown. I fixed it by removing moc/notfound and using this instead:

#
# Extend error matcher to render the document with uriPathSegment `notfound`
# for exceptions with 4xx status code
#
error {
    @context.notfoundDocument = ${q(site).children('[instanceof Acme.Com:ErrorPage]').get(0)}

    4xx {
        @position = 'start'
        condition = ${statusCode >= 400 && statusCode < 500 && notfoundDocument}
        renderer = Neos.Fusion:Renderer {
            @context.node = ${notfoundDocument}
            renderPath = '/root'
        }
    }
}

exclude certain HTTP method from 404 status

I admit that this is a real edge case, but I'm asking anyway ๐Ÿ˜„ :

Is it somehow possible to exclude certain HTTP methods from the 404 status?
The reason why I ask: There is a contactform embedded within my 404 page. When I hit send the POST request comes back with a 404 response.

Unable to alter path variable

In my site package's Configuration/Settings.yaml I added the following lines:

Neos:
  Flow:
    error:
      exceptionHandler:
        renderingGroups:
          notFoundExceptions:
            options:
              variables:
                path: '404'

But I get the error: Uri with path "http://docker.vm/de/404.html" could not be found.

Seems like the setting cannot be overwritten:

bildschirmfoto 2017-10-13 um 15 49 52

404 status code is returned twice

First of all thanks for the plugin, works great so far!

There is one little thing I noticed when monitoring the network traffic:
image

The status code 404 is returned twice. Once for the document, and another time for what seems to be the same document. Not a real issue, just curious if that is normal.

Plugin not compatible with Neos 5.X

This plugin does not appear to work anymore in Neos 5.X. Could have been caused by the introduction of PSR-7....

I tried to look into this issue myself, but couldn't get it working unfortunately. Any help would be greatly appreciated.

Double //

Fatal error: Uncaught exception 'Exception' with message 'Uri with path "http://www.xxx.de//404" could not be found.' in /home/030306-01_xxx.de/Neos-2.0/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/MOC_NotFound_ViewHelpers_RequestViewHelper.php:65 Stack trace: #0 [internal function]: MOC\NotFound\ViewHelpers\RequestViewHelper_Original->render('404') #1 /home/030306-01_xxx.de/Neos-2.0/Packages/Framework/TYPO3.Fluid/Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php(302): call_user_func_array(Array, Array) #2 /home/030306-01_xxx.de/Neos-2.0/Packages/Framework/TYPO3.Fluid/Classes/TYPO3/Fluid/Core/ViewHelper/AbstractViewHelper.php(283): TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper->callRenderMethod() #3 /home/030306-01_xxx.de/Neos-2.0/Data/Temporary/Development/Cache/Code/Fluid_TemplateCache/Standalone_template_file_404_dbdf4a2c4b35c40c443173c497bafff09af1acf5.php(54): TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper->initializeArgumentsAndRender() #4 /home/030306-01_xxx.de/N in /home/030306-01_xxx.de/Neos-2.0/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/MOC_NotFound_ViewHelpers_RequestViewHelper.php on line 65

No controller could be resolved which would match your request.

What i did:

  1. Installed the package
  2. Added settings like described
  3. Open neos frontend, navigate to a page which isnt existing
  4. Got Exception :

`No controller could be resolved which would match your request.

Package key: "404.html", controller name: "Standard". (GET http://*****.de/test/testsdfs)

Exception Code 1303209195
Exception Type Neos\Flow\Mvc\Controller\Exception\InvalidControllerException`

Using Neos 3.1.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.