Forums / Cotonti / Extensions / Support / T3 Faq missing argument 4 for sed_rights(...)

Kingsley
#1 2010-08-02 15:14
Warning: Missing argument 4 for sed_rights_parseline(), called in /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/plugins/faq/faq.admin.rights.end.php on line 43 and defined in /home/ecutionerz/domains/x-ecutionerz.com/public_html/site/system/core/admin/admin.rights.inc.php on line 143

Until a couple of days ago, this plug-in worked fine. Suddenly I get the error mentioned above, with the result that no one, not even admins can use this plugin. Can get in the plugin settings, but when I try to open the front-end I get:

You're not allowed to do this.

Redirecting...


any ideas?
tensh
#2 2010-08-02 15:31
Yep, it has a bit of typos in code.

Edit the file faq.admin.rights.end.php and replace at the end:

while ($row = sed_sql_fetcharray($sql_t3faq))
	{
	$link = "admin.php?m=tools&p=faq";
	$title = $faq_cat[$row['auth_option']]['tpath'];
	$adminmain .= sed_rights_parseline($row, $title, $link, $name);
	}

It did the trick, but I don't know if it's 100% correct. $name is not defined.

Added 6 minutes later:

There was also a typo somewhere that didn't display the "rights" icon... but I don't remember where, check out the code. The link to icon is old, and so it's broken, system icons in Seditio were somewhere else.
This post was edited by tensh (2010-08-02 15:38, 13 years ago)
Kingsley
#3 2010-08-02 16:34
Thx tensh.

I can now access it when I am logged out. But when logged in as admin, I can do everything but look at the front end.. go figure.. But it works again, and that's what counts.

you the man! :P
tensh
#4 2010-08-02 21:56
Hmm, maybe try to reinstall it, and check the access rights...