-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't switch to classic on gnusocial.de and gnusocial.ch #224
Comments
@mmn can you figure out why the UI is always hijacked on gnusocial.de and gnusocial.ch? i think you rewrote that part. could it be that the prefs enable_qvitter and disable_qvitter is set as '1' and '0' and that you treat them as true and false in https://github.com/hannesmannerheim/qvitter/blob/master/QvitterPlugin.php#L133 and https://github.com/hannesmannerheim/qvitter/blob/master/QvitterPlugin.php#L134 ? just guessing as it works on my instances |
@MarcusMoeller i'm trying stuff in the blind here, since it works on my test instances. can you update qvitter and try now? |
@MarcusMoeller, i've made some more small changes in the hope of fixing this. would be interesting to see if it made any difference! |
Now it's always disabled and I cannot re-enable it. |
interesting! |
you've not written |
$config['site']['qvitter']['enabledbydefault'] = true; |
ok, so we've ruled that out... |
I can just say that I haven't had a problem at all disabling or enabling qvitter on my instance with latest GNU social etc. I'm mostly confused regarding the "disabled by user" and "enabled by user" preferences. I would prefer it if there was instead just one setting (either enabled or disabled by user) which is either 1 or 0 depending on preferred logic. And I'm too tired to think about this now. But if it's a problem of logic, use pen and paper and colorful boxes ;) |
it's not, it works on my test instances, and everywhere except gnusocial.de and gnusocial.ch |
Sounds like it's not related to Qvitter nor GNU social :] |
@mmn do you use php 5.6? |
@hannesmannerheim No, but neither does @MarcusMoeller $ curl -sI https://gnusocial.ch | grep PHP $ curl -sI https://social.umeahackerspace.se | grep PHP $ curl -sI https://gnusocial.de | grep PHP |
fan också trodde jag var nåt på spåren |
In the past it worked fine on gs.de too. Are you also using latest qvitter code @mmn ? |
Yes. Latest everything. Why don't you put some debug logging statements here and there and see which values are in effect? It's impossible to remotely debug these kinds of problems, so lots more info is needed. Or root access. |
@mmn but i think we can conclude it has to do with since:
so... for some reason |
On my instance the admin panel is displayed. I could define a sidebar text there. But all is in Classic Mode. |
yep, same as for vinz. i just asked that because if you had got an error, that would mean that QvitterPlugin::initialize() wasn't executed, but it is. |
i'm in initialized! |
thanks!! |
so it doesn't have to do with the initialize() function at all :) sorry for bugging you about this @mmn! |
@MarcusMoeller there is no number three? |
No, just PHP message: |
sorry, there is one above : 2015/07/11 14:57:59 [error] 17612#0: *58248 FastCGI sent in stderr: "PHP message: 3) $this->hijack_ui = false |
many thanks. now try the latest regular QvitterPlugin.php file! |
All works perfectly now. Thanks a lot! |
:))) i'm grateful for your patience! @mmn it works when i moved the hijack ui check back from initialize() to onRouterInitialized() |
@hannesmannerheim the "conflicted" statement was because I cherry-pick'ed it from the crazy_stunt stuff and it was a merge conflict. (because the two different branches had different declarations of QvitterPlugin::settings). I don't understand why it wouldn't work as it should when $this->hijack_ui is set in initialize() though. |
The reason I put it in initialize() was mainly because that function exists to do exactly such preparations and initialization (having configuration and preference parsing done in onRouterInitialized is a bit unintuitive imho :]) |
i also don't understand why it doesn't work in initialize() [on gnusocial.de and gnusocial.ch] but at least it works now... there's no security issue or something having it in onRouterInitialized until we understand the real problem with initialize()? |
closing this as at least it's working now... |
https://gnusocial.de/notice/6653367
The text was updated successfully, but these errors were encountered: