How to pass data from page to widget functions?

It should be possible to read the global $post variable in your widget function. This will contain all information about the post (or page) displayed on the current page.

404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.