CA: Resolve error message to filename
Posted: Tue Jun 23, 2015 3:28 am
[PROBLEM]
In CollectiveAccess Providence, I ran into an error like this:
Hm.
Where's the file that the access-restriction is referring to?
[SOLUTION]
According to the path I found for the referred PHP file, the error-message path seems to be built up like this (written with bash-style variables):
That resolves to:
Inside that file, I found the ${FUNCTION} name "ListForms()".
In CollectiveAccess Providence, I ran into an error like this:
It looked like a file path, but it wasn't (since it starts with "index.php").Errors occurred when trying to access /index.php/manage/SearchForm/ListForms:
* Access denied
Hm.
Where's the file that the access-restriction is referring to?
[SOLUTION]
According to the path I found for the referred PHP file, the error-message path seems to be built up like this (written with bash-style variables):
Code: Select all
/index.php/manage/${CONTROLLER}/${FUNCTION}
Code: Select all
app/controllers/manage/${CONTROLLER}Controller.php