Code: Select all
A general error has occurred: 200: Unknown server error
» /switchaccount/2
When I try to switch back to my admin account, I'm logged out ..
No other error messages in server logs. Just the one above in acp
phpBB 3.2.2
PHP 7.0.22
Code: Select all
A general error has occurred: 200: Unknown server error
» /switchaccount/2
Erm, can't remember now. Corrupt file probablyFroddelaar wrote: ↑Sun Mar 25, 2018 7:42 pm
What was the problem? I have the same ...
Only that I also get logged out when I switch back to my admin account
I installed the extension, created a custom page with it and switched accounts from within that page without any kind of problem. I am not able to replicate this problem.Froddelaar wrote: ↑Mon Mar 26, 2018 12:18 pm Strange, logout problem seems to be gone.
But the "Unknown server error" keeps when switch account on some random pages made with the "Pages extension"
https://www.phpbb.com/customise/db/extension/pages/
To be honest I didn't take into account all other auth methods available in phpBB, mostly because I'm not very sure about how they work and how phpBB handles them. If anyone with more expertise on the matter would be so kind to help I would appreciate it.
That feature is already supported by the extension. You can change the permissions of both the ability to switch account and to access the ACP management module.
I can not confirm that. Let me give you details of my tests and efforts to resolve this. But very nice ext.Flerex wrote: ↑Mon Mar 12, 2018 9:17 pmI can confirm that doesn't happen with Linked Accounts.
Code: Select all
{% if switchable_account %}
{% INCLUDECSS '@flerex_linkedaccounts/linkedaccounts.css' %}
<li id="linked_accounts" class="bg1">
<ul>
{% for account in switchable_account %}
<li><a href="{{ account.SWITCH_LINK }}">
{% if account.AVATAR %}
{{ account.AVATAR }}
{% else %}
<img src="{T_THEME_PATH}/images/no_avatar.gif" class="avatar" alt="">
{% endif %}
{{ account.NAME }}
</a></li>
{% endfor %}
</ul>
</li>
{% elseif U_USE_LINKED_ACCOUNT %}
<li class="bg1">
<a href="{{ U_PROFILE }}?i=-flerex-linkedaccounts-ucp-main_module&mode=link">
<i class="icon fa-user-secret fa-fw" aria-hidden="true"></i><span>{{ lang('LINKING_ACCOUNT') }}</span></a>
</li>
{% endif %}
Code: Select all
$this->template->assign_block_vars('switchable_account', array(
'U_USE_LINKED_ACCOUNT' => $this->auth->acl_get('u_link_accounts') ? true : false,
{% if switchable_account %}
shows the linked accounts I have setup.{% if not switchable_account %}