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

Vincent-1’s picture

I 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.

r_honey’s picture

Hi 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..

abaddon’s picture

Status: Active » Needs review

i 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..

r_honey’s picture

Version: 6.x-2.0 » 6.x-2.x-dev
Priority: Critical » Normal
Status: Needs review » Fixed

Fixed and committed to CVS.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.