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 » Fri Apr 28, 2017 1:31 pm

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: 14482
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Configuration not saving

Post by Thorsten » Sun May 07, 2017 7:39 am

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 » Sun May 07, 2017 9:38 am

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

LOL

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

Re: Configuration not saving

Post by JochenS » Wed May 10, 2017 1:26 pm

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: 14482
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Configuration not saving

Post by Thorsten » Thu May 11, 2017 7:11 pm

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: 120
Joined: Wed Feb 16, 2011 3:51 pm
Location: Schönaich
Contact:

Re: Configuration not saving

Post by JochenS » Fri May 12, 2017 12:53 pm

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: 14482
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Configuration not saving

Post by Thorsten » Fri May 12, 2017 7:11 pm

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 » Sun Nov 19, 2017 8:33 am

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: 5
Joined: Tue Nov 28, 2017 2:35 pm

Re: Configuration not saving

Post by hprosupp » Tue Nov 28, 2017 2:37 pm

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: 14482
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Configuration not saving

Post by Thorsten » Tue Nov 28, 2017 8:55 pm

Hi,

you uninstalled Adblock and it worked again?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

hprosupp
Posts: 5
Joined: Tue Nov 28, 2017 2:35 pm

Re: Configuration not saving

Post by hprosupp » Thu Nov 30, 2017 11:33 am

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

you uninstalled Adblock and it worked again?

bye
Thorsten
Yes

scape
Posts: 172
Joined: Tue Apr 08, 2003 1:16 pm

Re: Configuration not saving

Post by scape » Tue Dec 05, 2017 3:23 pm

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: 14482
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Configuration not saving

Post by Thorsten » Fri Dec 08, 2017 10:16 pm

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: 172
Joined: Tue Apr 08, 2003 1:16 pm

Re: Configuration not saving

Post by scape » Mon Dec 11, 2017 8:59 am

Wenn möglich kannst Du bei uns gern debuggen. Vielleicht über ein extra PHP-Script?

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

Re: Configuration not saving

Post by Thorsten » Mon Dec 11, 2017 8:13 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest