Closed (fixed)
Project:
Take Control
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jun 2010 at 10:06 UTC
Updated:
10 Aug 2010 at 21:20 UTC
After having installed the module I witnessed the following error:
Warning: Call-time pass-by-reference has been deprecated in C:\wamp\www\sites\all\modules\take_control\qp\take_control_qp.module on line 141
You are not authorized to perform this action.
I can see the interface under: admin/build/take_control but it gives me the above error rendering the program useless.
I have the 2.0 latest version along with ExtJS installed under: sites\all\libraries\extjs\ext-3.2.1
- Peace out.
Comments
Comment #1
Vincent-1 commentedI changed the code in the take_control_qp.module file on line 141
from
take_control_qp_del_tree($path, $perm_oct, $perm_dec, $delete, &$log);
to
take_control_qp_del_tree($path, $perm_oct, $perm_dec, $delete, $log);
The error is now gone though I am still receiving that annoying message saying: "You are not authorized to perform this action."
I tried the fix as described in the other bug report though it didn't seem to work, I'm clueless as to what to do now.
Comment #2
r_honey commentedHi vincent, for the next version, I would be looking at introducing a debug mode where the error messages are more verbose. For now, it's hard to tell what's the problem from the outside..
Comment #3
abaddon commentedi fixed this for me
in take_control/fb/get-files.php on line 341, function take_control_fb_validate_path()
replace with $docRoot = rtrim($_SERVER['DOCUMENT_ROOT'], '/');
ive added rtrim to it.. heres why:
var_dump($appDir);
var_dump($docRoot);
var_dump($path);
var_dump(strpos($appDir, $docRoot));
var_dump(strpos($path, $appDir));
string(32) "/var/www/somesite/www/html"
string(33) "/var/www/somesite/www/html/"
string(32) "/var/www/somesite/www/html"
bool(false)
int(0)
it fails there..
Comment #4
r_honey commentedFixed and committed to CVS.