1
tan60
Modules permission not working when moving on new server
  • 2008/9/15 4:26

  • tan60

  • Just popping in

  • Posts: 4

  • Since: 2008/9/9 6


Hi everybody. There was some migration on the server of my site, and i copied all the files, backed up and transfered the db of my site to the new server (php 5), and i can log in, but:
1) when i log in as administrator it doesnt gives me the option of Control Panel.
2) I cant access modules pages (forums, news...), with any kind of user.

Seems it s a permission problem, but i have no idea where to fix it.
If somebody can give me some advice i would appreciate it.
Thanks a lot

2
ghia
Re: Modules permission not working when moving on new server
  • 2008/9/15 7:12

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Did you adapt the mainfile?
Watch out for mixing http://www.site.com/ and http://site.com/ .
Did you empty the cache?

3
tan60
Re: Modules permission not working when moving on new server
  • 2008/9/15 15:45

  • tan60

  • Just popping in

  • Posts: 4

  • Since: 2008/9/9 6


I adapted the mainfile, with all the settings fine. It even can read from database, cause i can log in users, but is like they are not allowed with any permission (even when the table groups_users_link, groups_modules_link and groups_blocks_link are not corrupted, in the sense that i can make a query on them on any db manager. The site is: http://d12492.u38.baehost.com.ar/
You can try login in with:
user: rcm
password: pass12345
You will see thatyou are logged in and you cant see any block in mainpage or access any module.
About cache i deleted files in the cache folder of the main directory. Are there more folders? thanks!

4
tan60
Re: Modules permission not working when moving on new server
  • 2008/9/16 5:22

  • tan60

  • Just popping in

  • Posts: 4

  • Since: 2008/9/9 6


i ve found a temporary solution. It seems that in the file xoopsgroups.php, where it manages the permission of groups there s some inconvinience in the function &getByUser(&$user, $asobject=false)

in the condition:
if ( get_class($user) == "xoopsuser" )

it was always returning false, so no giving permission to anything to users and hence no blocks or modules displaying. If somebody knows why this can occur it can be interesting. Meanwhile i overpassed the condition with if(1).
Strange?

5
zyspec
Re: Modules permission not working when moving on new server
  • 2008/9/16 14:01

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


You might check your folder permissions. I've seen instances where they've "changed" when copied from one server to another. I'd pay particular attention to the ./templates_c and ./cache directories but you may also check the ./uploads directory too.

Login

Who's Online

239 user(s) are online (161 user(s) are browsing Support Forums)


Members: 1


Guests: 238


Harald0123,

more...

Donat-O-Meter

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

Latest GitHub Commits