Webmastersite.net
Register Log In

Can no longer login as admin

Comments on Can no longer login as admin

nelgin


Usergroup: Customer
Joined: Jul 17, 2003

Total Topics: 39
Total Comments: 100
nelgin
Can no longer login as admin
Posted Oct 01, 2012 - 4:49 PM:

I logged out of MyBB to do some testing, now when I login as the admin, I no longer get the option to become administrator within WSNLinks. This is obviously a major headache. Would you please login and check that 7.1.0 didn't break anything that is needed for integration.

Thanks,
Nigel
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 02, 2012 - 6:02 AM:

I tried to edit links/index.php to check, but it won't let me. I can view files but not write changes to them.

I notice there's a phpbb3 integration file in the integration directory now, I don't remember that being there before. Did you install phpbb and integrate with that? That would make it no longer integrated with mybb.

Edit for update: actually the debug output indicates it's not integrated with anything now, it's using the native WSN members, so you'll need to login with whatever the WSN admin user was and re-selected member integration. That could've been the result of a failed attempt to integrate phpbb.

At any rate, I can't do anything without write access.
nelgin


Usergroup: Customer
Joined: Jul 17, 2003

Total Topics: 39
Total Comments: 100
nelgin
Posted Oct 02, 2012 - 9:17 AM:

mysql> select * from wsnlinks_settings where name='integration';
+----+-------------+---------+------+
| id | name | content | type |
+----+-------------+---------+------+
| 57 | integration | | |
+----+-------------+---------+------+
1 row in set (0.04 sec)

hmm, the upgrade process from 7.1 wiped out the integration settings.

I have not run any sort of integration since you got it working in MyBB for me.

mysql> update wsnlinks_settings set content='mybb_users.php';
Query OK, 563 rows affected (0.03 sec)
Rows matched: 563 Changed: 563 Warnings: 0

Never make changes when you're sleepy :/ lol. Better get this table from backup lol.


...ok settings table reloaded from backup ....

mysql> update wsnlinks_settings set content='mybb_users' where name='integration';
Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0


Once I did that it was working again. I know that I didn't make any integration changes.

Also, I'll drop you the "britnet" password so we don't have permissions issues.

Thanks,
Nigel
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 03, 2012 - 2:36 PM:

The only code (outside of the admin panel integration page) capable of turning off integration is

if (!file_exists($thefile))
{ // integration file was deleted, so we should turn integration off
$settings->integration = '';
$settings->update('integration');
}

which will turn it off if the integration file is deleted. I suppose if there were some sort of temporary filesystem error that made that file unreadable during the middle of the page processing that could've resulted in it turning off. Haven't seen that happen before though.
nelgin


Usergroup: Customer
Joined: Jul 17, 2003

Total Topics: 39
Total Comments: 100
nelgin
Posted Oct 04, 2012 - 10:21 PM:

Ah that may explain it.

I had made a copy when I was trying to run it all from one directory and when I put it back I forgot to move the integration directory back. So, now you have smiling face and now that you have, it might be good to produce a warning that the integration file has gone awol and produce an error rather than just reverting back.

Thanks,
Nigel
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.