{"action":"created","issue":{"url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues/53","repository_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP","labels_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues/53/comments","events_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues/53/events","html_url":"https://github.com/mebjas/CSRF-Protector-PHP/issues/53","id":179527229,"number":53,"title":"Incomplete Configuration File error although config.php has values","user":{"login":"lewislacook","id":583387,"avatar_url":"https://avatars.githubusercontent.com/u/583387?v=3","gravatar_id":"","url":"https://api.github.com/users/lewislacook","html_url":"https://github.com/lewislacook","followers_url":"https://api.github.com/users/lewislacook/followers","following_url":"https://api.github.com/users/lewislacook/following{/other_user}","gists_url":"https://api.github.com/users/lewislacook/gists{/gist_id}","starred_url":"https://api.github.com/users/lewislacook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewislacook/subscriptions","organizations_url":"https://api.github.com/users/lewislacook/orgs","repos_url":"https://api.github.com/users/lewislacook/repos","events_url":"https://api.github.com/users/lewislacook/events{/privacy}","received_events_url":"https://api.github.com/users/lewislacook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-27T15:28:43Z","updated_at":"2016-09-29T20:36:48Z","closed_at":null,"body":"I am experiencing an Incomplete configuration file fatal error, though my jsUrl checks out (path is correct), jsFile checks out, I have values for all of what is required. \r\n\r\nHere is my config file (with some info redacted for security):\r\n\r\n<?php                                                                                                                                  \r\n/**                                                                                                                                    \r\n * Configuration file for CSRF Protector                                                                                               \r\n * Necessary configurations are (library would throw exception otherwise)                                                              \r\n * ---- logDirectory                                                                                                                   \r\n * ---- failedAuthAction                                                                                                               \r\n * ---- jsPath                                                                                                                         \r\n * ---- jsUrl                                                                                                                          \r\n * ---- tokenLength                                                                                                                    \r\n */                                                                                                                                    \r\nreturn array(                                                                                                                          \r\n        \"CSRFP_TOKEN\" => \"vccsrfp\",                                                                                                    \r\n        \"logDirectory\" => \"../log\",                                                                                                    \r\n        \"failedAuthAction\" => array(                                                                                                   \r\n                \"GET\" => 0,                                                                                                            \r\n                \"POST\" => 0),                                                                                                          \r\n        \"errorRedirectionPage\" => \"http://mydomain.com/index.php\",                                                                \r\n        \"customErrorMessage\" => \"Failed CSRF\",                                                                                         \r\n        \"jsPath\" => \"../js/csrfprotector.js\",                                                                                          \r\n        \"jsUrl\" => \"http://mydomain.com/classic/resources/vendors/owasp/csrf-protector-php/js/csrfprotector.js\",                  \r\n        \"tokenLength\" => 10,                                                                                                           \r\n        \"disabledJavascriptMessage\" => \"This site attempts to protect users against <a href=\\\"https://www.owasp.org/index.php/Cross-Sit\r\ne_Request_Forgery_%28CSRF%29\\\">                                                                                                        \r\n        Cross-Site Request Forgeries </a> attacks. In order to do so, you must have JavaScript enabled in your web browser otherwise th\r\nis site will fail to work correctly for you.                                                                                           \r\n         See details of your web browser for how to enable JavaScript.\",                                                               \r\n         \"verifyGetFor\" => array(\"*://*/*\")                                                                                            \r\n);   "},"comment":{"url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues/comments/250583782","html_url":"https://github.com/mebjas/CSRF-Protector-PHP/issues/53#issuecomment-250583782","issue_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues/53","id":250583782,"user":{"login":"lewislacook","id":583387,"avatar_url":"https://avatars.githubusercontent.com/u/583387?v=3","gravatar_id":"","url":"https://api.github.com/users/lewislacook","html_url":"https://github.com/lewislacook","followers_url":"https://api.github.com/users/lewislacook/followers","following_url":"https://api.github.com/users/lewislacook/following{/other_user}","gists_url":"https://api.github.com/users/lewislacook/gists{/gist_id}","starred_url":"https://api.github.com/users/lewislacook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewislacook/subscriptions","organizations_url":"https://api.github.com/users/lewislacook/orgs","repos_url":"https://api.github.com/users/lewislacook/repos","events_url":"https://api.github.com/users/lewislacook/events{/privacy}","received_events_url":"https://api.github.com/users/lewislacook/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T20:36:48Z","updated_at":"2016-09-29T20:36:48Z","body":"I'll have to check my server set up; I'm getting nothing at all from the var_dump.  All I get is in my error_log:\r\nPHP Fatal error:  Uncaught incompleteConfigurationE\r\nxception: OWASP CSRFProtector: Incomplete configuration file! in /opt/decisionlink/staging/ui/build/production/Decisionlink/classic/res\r\nources/vendors/owasp/csrf-protector-php/libs/csrf/csrfprotector.php:138\\nStack trace:\\n#0 /opt/decisionlink/staging/ui/build/production\r\n/Decisionlink/app.php(10): csrfProtector::init()\\n#1 {main}\\n  thrown in /opt/decisionlink/staging/ui/build/production/Decisionlink/cla\r\nssic/resources/vendors/owasp/csrf-protector-php/libs/csrf/csrfprotector.php on line 138\r\n                                                \r\nPHP Fatal error:  Uncaught incompleteConfigurationEx\r\nception: OWASP CSRFProtector: Incomplete configuration file! in /opt/decisionlink/staging/ui/build/production/Decisionlink/classic/resources/vendors/owasp/csrf-protector-php/libs/csrf/csrfprotector.php:138\\nStack trace:\\n#0 /opt/decisionlink/staging/ui/build/production/\r\nDecisionlink/app.php(10): csrfProtector::init()\\n#1 {main}\\n  thrown in /opt/decisionlink/staging/ui/build/production/Decisionlink/classic/resources/vendors/owasp/csrf-protector-php/libs/csrf/csrfprotector.php on line 138  "}}
{"actor":{"display_login":"lewislacook"}}