1
zzzzsg
WF-Links 1.0.3 permissions not working on Xoops 2.2.x
  • 2006/4/7 18:54

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


Hi

I am using the WF-Links 1.0.3 from the XOOPS 2.2.x community pack (supposedly modified for XOOPS 2.2.x).

When I click on Permissions in the module administration, I get a blank page.

When I log on as a non-admin user, I cannot view any of the categories I created. Get the following message:

" Sorry, you don't have permission to perform this action.
Please register or login first! "

Can anybody help?

Thank you very much in anticipation.

2
McDonald
Re: WF-Links 1.0.3 permissions not working on Xoops 2.2.x
  • 2006/4/7 19:25

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Don't use the WF-Links version from the Community Pack because there are too many bugs in it!
Instead you should use this fixed one which should be compatible with the forthcoming SmartLinks module from the SmartFactory.
Just upload this fixed version of WF-Links to your server and install or update from the admin panel.
Create at least one category and set it's persmissions after creating it.

3
zzzzsg
Re: WF-Links 1.0.3 permissions not working on Xoops 2.2.x
  • 2006/4/7 21:40

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


hi McDonald

I installed your version. Still the same blank page when clicking Permissions in the module admin.

I think the problem starts from line 24 onwards
( in modules/wflinks/admin/permissions.php )

$cat_form -> addItem( $cat_row['cid'], $cat_row['title'], $cat_row['pid'] );
...

Thank you.

gui

4
McDonald
Re: WF-Links 1.0.3 permissions not working on Xoops 2.2.x
  • 2006/4/7 22:27

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Some questions first:

1. What PHP and MySQL version are using?
2. What PHP or MySQL notices/warnings do you get when you run in debug mode?
3. Can you use any of the other functions in the admin panel?

In the file admin/permissions.php you'll find 5 times the following little piece of code:

prefixWFLINKS_CAT )


Replace this by:

prefix'wflinks_cat' )


The above code calls the database table wflinks_cat. It can make a difference sometimes if it is in upper or lower case and/or between quotes. This depends on MySQL or PHP version you're using. This was a problem with the blocks of WF-Links too. I've changed it to lower case in some files, but not all.

If you keep having problems with WF-Links please submit them to the bug tracker of SmartLinks:http://dev.xoops.org/modules/xfmod/tracker/?group_id=1291&atid=1333

Good luck!

PS. I'm out of my 'office' for the next 4 weeks and am not able to answer questions during that period.

5
zzzzsg
Re: WF-Links 1.0.3 permissions not working on Xoops 2.2.x
  • 2006/4/8 19:31

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


Hi McDonald

Thank you once again for all the help.

I got the same error again because I imported the old data from the previous WF-Links 1.0.3 (the one from the community pack).

Now, I have re-created all my categories and links, and everything is fine. It seems that the old WF-Links database tables have some problems.

Warmest regards

gui

6
McDonald
Re: WF-Links 1.0.3 permissions not working on Xoops 2.2.x
  • 2006/4/8 20:59

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Good to hear that everything is running fine now.
Don't know caused the database problems because the sql-file used to create the tables during setup is for both versions the same.

Good luck with WF-Links!

Login

Who's Online

201 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 201


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits