Configuration not saving

Please report bugs here!

Moderator: Thorsten

rudibr78
Posts: 2
Joined: Fri Apr 28, 2017 1:26 pm

Re: Configuration not saving

Post by rudibr78 »

Hello

I started using phpmyfaq today and also run into this trouble.

There's a bug where the request token for the form submission gets reset.
I haven't been able to fix it, but I did manage to workaround it.

If you want to apply this temporary fix, edit file admin/configuration.php and change line 37 from

Code: Select all

if ('saveConfig' === $userAction && $currentToken === $csrfToken) {
to

Code: Select all

if ('saveConfig' === $userAction) {
this way the token validation gets ignored and you can save the configs
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Configuration not saving

Post by Thorsten »

Hi,

with this change you're creating a possible security issue.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
User
Posts: 8
Joined: Tue Sep 13, 2016 11:34 am

Re: Configuration not saving

Post by User »

Thorsten wrote: Sun May 07, 2017 7:39 amwith this change you're creating a possible security issue.
So your solution is not to save configuration for better security?

LOL
JochenS
Posts: 121
Joined: Wed Feb 16, 2011 3:51 pm
Location: Schönaich
Contact:

Re: Configuration not saving

Post by JochenS »

I can reproduce it my system with 2.9.7.

The problem is visible if the automatic content negotiation of the browser language detects de-de, but the main language is English.
Workaround is to switch inthe backend to the database language.

I have another FAQ with main laguage German and here the backend saves the result if backend language is set to Deutsch..
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Configuration not saving

Post by Thorsten »

Hi Jochen,

good to see you back again. I cannot reproduce the issue... tested with latest Chrome, configured with DE-DE, on a FAQ in English. Is it possible to get access to your FAQ?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
JochenS
Posts: 121
Joined: Wed Feb 16, 2011 3:51 pm
Location: Schönaich
Contact:

Re: Configuration not saving

Post by JochenS »

Yes, It is fun to have more time on phpMyFAQ. We are moving to an server in the enterprize system. I can provide access with Teamviewer from my PC. Monday or Tuesday afternoon next week?
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Configuration not saving

Post by Thorsten »

Hi,

next week I'm on a business trip on monday and tuesday.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
PuppyShad
Posts: 1
Joined: Sun Nov 19, 2017 8:30 am

Re: Configuration not saving

Post by PuppyShad »

Hi i am using 2.9.9 and having the same issue. is there a fix for this? ill give FTP info. how should i send ftp info?
hprosupp
Posts: 7
Joined: Tue Nov 28, 2017 2:35 pm

Re: Configuration not saving

Post by hprosupp »

Hi,

I had the same issue on my fresh install (today) but i just desactivated Adblocks and it works fine (you need to uninstall it).

Best regards
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Configuration not saving

Post by Thorsten »

Hi,

you uninstalled Adblock and it worked again?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
hprosupp
Posts: 7
Joined: Tue Nov 28, 2017 2:35 pm

Re: Configuration not saving

Post by hprosupp »

Thorsten wrote: Tue Nov 28, 2017 8:55 pm Hi,

you uninstalled Adblock and it worked again?

bye
Thorsten
Yes
scape
Posts: 201
Joined: Tue Apr 08, 2003 1:16 pm

Re: Configuration not saving

Post by scape »

Hallo Thorsten, wir haben hier ebenfalls ein sehr komisches Verhalten, was das Speichern von Änderungen an der Konfiguration angeht. Nehmen wir beispielsweise den Bereich Konfiguration > FAQ-Konfiguration > SEO

An meinem Rechner ist es so, dass meine Änderungen in zwei Installationen (2.9.9) gar nicht erst gespeichert werden.
Am Rechner des Kollegen ist es so, dass er sich eingeloggt hat > versucht hat die Änderungen vorzunehmen > er wurde vom System ausgeloggt > und wieder auf die Startseite des Adminbereichs geleitet. Bei seinem erneuten Versuch wurde die Änderung dann aber übernommen.

Irgendetwas scheint hier (vielleicht mit der Session) nicht richtig zu laufen :geek:
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Configuration not saving

Post by Thorsten »

Hi,

ja, ich kann das aber bei meinen Testinstallationen nicht reproduzieren und konnte es bisher nur auf fremden Systemen ohne Debug-Möglichkeiten sehen... das macht es für mich etwas schwer.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
scape
Posts: 201
Joined: Tue Apr 08, 2003 1:16 pm

Re: Configuration not saving

Post by scape »

Wenn möglich kannst Du bei uns gern debuggen. Vielleicht über ein extra PHP-Script?
Thorsten
Posts: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Configuration not saving

Post by Thorsten »

Hi,

es reicht erstmal ein Account auf einer Installation. Schreib mir doch bitte mal ne Mail, wenn das bei euch klappen würde.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply