Beitrag löschen klappt nicht: Fehler in record.save.php ?

Please report bugs here!

Moderator: Thorsten

Post Reply
Medical
Posts: 7
Joined: Fri Jun 09, 2006 12:27 pm

Beitrag löschen klappt nicht: Fehler in record.save.php ?

Post by Medical »

Hy,

habe gerade meine erste phpMyFaq-Installation hingelegt - klappte auch gut...aber: Beim Löschen eines Beitrages kommt die Meldung
Notice: Undefined index: submit in c:\inetpub\wwwroot\faq\admin\record.save.php on line 27
Im Script nachgeschaut was Zeile 27 ist: $submit = $_POST["submit"];

Im Bereich der offenen Fragen erscheine die Beiträge übrigens auch nicht ;-(

Kann mir da jemand weiterhelfen?

phpMyFAQ: 1.6.1
PHP: 4.3.6
MySQL: 4.1.15
Server: Win2000 mit IIS 5.0
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: Beitrag löschen klappt nicht: Fehler in record.save.php

Post by matteo »

Hi,
Medical wrote:Kann mir da jemand weiterhelfen?

phpMyFAQ: 1.6.1
PHP: 4.3.6
MySQL: 4.1.15
Server: Win2000 mit IIS 5.0
unfortunately this is a known bug already fixed in CVS.
Please change that line with this one below:

Code: Select all

$submit = $_REQUEST["submit"];
PS: FYI, read here
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Medical
Posts: 7
Joined: Fri Jun 09, 2006 12:27 pm

Post by Medical »

Wow, fast answer - Thanks.

I changed this line of Code. Now no error occurs and i get the Message that the article was deleted sucessful...but its still there???

Any further idea?

Thanks in advance
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
Medical wrote:Any further idea?
I miss to give you another fix. Please locate also this line:

Code: Select all

<input type="hidden" name="language" value="<?php print $_POST["language"]; ?>">
and replace it with this one below:

Code: Select all

<input type="hidden" name="language" value="<?php print $_REQUEST["language"]; ?>">
BTW, you could give a chance to the PMF code currently into CVS, using the nightly built snapshot.

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Medical
Posts: 7
Joined: Fri Jun 09, 2006 12:27 pm

Post by Medical »

changed it. There are some more $POST entries in this script - should all be changed into $_REQUEST ?

CVS? Whats that?

Regards
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
Medical wrote:changed it. There are some more $POST entries in this script - should all be changed into $_REQUEST ?
No: the 2 changes above are those we changed as the fix for the delete bug.
Medical wrote:CVS? Whats that?
It stands for Concurrent Versions System
Basically it is our public source repository and there you'll find the whole of the code changes after releasing a version (currently, 1.6.1). Sometimes that code has significant fixes and could be used for solving some blocking issues.
Said this, if the posted changes fix your issue, there is no need of using the PMF code coming from the nightly built CVS snapshot.
FYI, in the 2nd half of June we'll release PMF 1.6.2.
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Medical
Posts: 7
Joined: Fri Jun 09, 2006 12:27 pm

Post by Medical »

I love it, if it Forum works fine like this...

Thank you.
Post Reply