Upgrade from 2.64 to 2.6.7 Causes errors in savequestion.php

Please report bugs here!

Moderator: Thorsten

Post Reply
AidyPie
Posts: 15
Joined: Wed Oct 21, 2009 10:04 am
Location: UK

Upgrade from 2.64 to 2.6.7 Causes errors in savequestion.php

Post by AidyPie »

Hi,
I have just upgraded phpMyFAQ form 2.6.4 to 2.6.7 and everything thing went smooth apart from:
When using the ASK QUESTION page, after pressing the SUBMIT button, I get the following error displayed:
phpMyFAQ notice [8]: Undefined property: stdClass::$thema in savequestion.php on line 169

Any ideas as to how I can rectify this?

Regards,
AidyPie
Last edited by AidyPie on Tue Aug 17, 2010 3:13 pm, edited 2 times in total.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrading from 2.64 to 2.7 Causes errors in savequestion.php

Post by Thorsten »

Hi,

do you mean 2.6.7 or 2.7.0-alpha?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
AidyPie
Posts: 15
Joined: Wed Oct 21, 2009 10:04 am
Location: UK

Re: Upgrading from 2.64 to 2.7 Causes errors in savequestion.php

Post by AidyPie »

Thorsten wrote:Hi,

do you mean 2.6.7 or 2.7.0-alpha?

bye
Thorsten
Hi,
My Apologies, I do mean 2.6.7
I ahve correct my title and post content to reflect this for other who may search on this same issue.

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

Re: Upgrade from 2.64 to 2.6.7 Causes errors in savequestion.php

Post by Thorsten »

Hi,

I found the issue, here's the fix: http://github.com/thorsten/phpMyFAQ/com ... 73a603bea7

Thanks for the hint!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
AidyPie
Posts: 15
Joined: Wed Oct 21, 2009 10:04 am
Location: UK

Re: Upgrade from 2.64 to 2.6.7 Causes errors in savequestion.php

Post by AidyPie »

Thorsten wrote:Hi,

I found the issue, here's the fix: http://github.com/thorsten/phpMyFAQ/com ... 73a603bea7

Thanks for the hint!

bye
Thorsten
Thanks Thorsten, this works a treat! :D
AidyPie
Posts: 15
Joined: Wed Oct 21, 2009 10:04 am
Location: UK

Re: Upgrade from 2.64 to 2.6.7 Causes errors in savequestion.php

Post by AidyPie »

I am real sorry, it appears I did not test this properly.
After putting in the suggested fix I now get this error:

Code: Select all

phpMyFAQ recoverable error [4096]: Argument 1 passed to PMF_Faq::addCategoryRelations() must be an array, null given, called in D:\Websites\ComfySales\live\faq\save.php on line 108 and defined in Faq.php on line 984

phpMyFAQ warning [2]: Invalid argument supplied for foreach() in save.php on line 113
This is on the refreshed page that appears saying:
Thank you for your suggestion!
AidyPie
Posts: 15
Joined: Wed Oct 21, 2009 10:04 am
Location: UK

Re: Upgrade from 2.64 to 2.6.7 Causes errors in savequestion.php

Post by AidyPie »

AidyPie wrote:I am real sorry, it appears I did not test this properly.
After putting in the suggested fix I now get this error:

Code: Select all

phpMyFAQ recoverable error [4096]: Argument 1 passed to PMF_Faq::addCategoryRelations() must be an array, null given, called in D:\Websites\ComfySales\live\faq\save.php on line 108 and defined in Faq.php on line 984

phpMyFAQ warning [2]: Invalid argument supplied for foreach() in save.php on line 113
This is on the refreshed page that appears saying:
Thank you for your suggestion!
Ooops, my mistake! I didn't select a category with my test post!
I also notice if a user does as I have in FireFox, that when they press the "One Page back" button, all the fields they filled will be empty?
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade from 2.64 to 2.6.7 Causes errors in savequestion.php

Post by Thorsten »

Hi,

this will be also fixed in 2.6.8, so please stay tuned. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
david_de
Posts: 72
Joined: Tue Dec 13, 2005 12:09 am

Re: Upgrade from 2.64 to 2.6.7 Causes errors in savequestion.php

Post by david_de »

I updated from 2.5.0 to 2.6.7 and had the same problem with the submit question. I saw that a fix would be out in 2.6.8.

I went on to check the Contact and that failed 3 times in a row the message was that there were required fields. I assume it meant one or more had not been filled. It had a list of the required ones but not which one failed. I then removed the CAPTCHA requirement. That caused both forms to work correctly and mail the message.

Hope this information helps.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade from 2.64 to 2.6.7 Causes errors in savequestion.php

Post by Thorsten »

Hi,

did you entered the captcha code correct? I couldn't reproduce your issue.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
david_de
Posts: 72
Joined: Tue Dec 13, 2005 12:09 am

Re: Upgrade from 2.64 to 2.6.7 Causes errors in savequestion.php

Post by david_de »

Yes I tried both several times. I thought I had made a mistake or something at first so I kept trying. I started with the add a question and failed it at least 3 times in a row. Later when trying the contact I tried it a couple times that is when I went to the admin section and removed the requirement. Both of them worked the first time after that.

I wish it was just me, then I could turn it back on.

Thanks for all your hard work on this faq over the years too.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Upgrade from 2.64 to 2.6.7 Causes errors in savequestion.php

Post by Thorsten »

Hi,

okay, I try to reproduce that.

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