Frontend crashes after creating more than one category

Please report bugs here!

Moderator: Thorsten

melpheos
Posts: 15
Joined: Thu Feb 27, 2014 3:07 pm

Frontend crashes after creating more than one category

Post by melpheos » Thu Feb 27, 2014 3:13 pm

Hi,

i did several time this test.
Install a new phpMyFAQ instance, configure, login, create one category
The category will show ok
As soon as i create another category, the frontend will not work anymore
I cannot see anything logs in apache error log.
Everything is working fine untill i create this 2nd category. Name of the category is not relevant (at first i though the name "PROXY" was not handled correctly somewhere in the code)

Any though ?

melpheos
Posts: 15
Joined: Thu Feb 27, 2014 3:07 pm

Re: Frontend crashes after creating more than one category

Post by melpheos » Fri Feb 28, 2014 1:58 pm

Additional info :
i deployed a new VM with centos6.5, installed everything and got exactly the same issue (and nothing in the logs)

I will do another test with ubuntu and keep you posted

melpheos
Posts: 15
Joined: Thu Feb 27, 2014 3:07 pm

Re: Frontend crashes after creating more than one category

Post by melpheos » Fri Feb 28, 2014 3:53 pm

Same deal on Debian would probably be the same on Ubuntu...
As soon as you create a second category, the frontend will crash...

I'm using the latest version of phpMyFAQ

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

Re: Frontend crashes after creating more than one category

Post by Thorsten » Sun Mar 02, 2014 11:47 am

Hi,

I need more information about PHP versions, database versions and so on.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

melpheos
Posts: 15
Joined: Thu Feb 27, 2014 3:07 pm

Re: Frontend crashes after creating more than one category

Post by melpheos » Mon Mar 03, 2014 5:20 pm

Hi Thorsten,

on the latest install i did it's running
mysql 5.1.73.1
php ver is : 5.3.3.7

OS on this install is Debian 6.0.7
I'm not sure what version was running on the CentOS install i did but the result was exactly the same.

Working fine until i have the bad idea to create a 2nd category.

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

Re: Frontend crashes after creating more than one category

Post by Thorsten » Mon Mar 03, 2014 5:28 pm

Hi,

versions and Debian look fine. Is it possible to see the crash in action?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

melpheos
Posts: 15
Joined: Thu Feb 27, 2014 3:07 pm

Re: Frontend crashes after creating more than one category

Post by melpheos » Tue Mar 04, 2014 3:29 pm

I have uploaded a flash file made with wink to show what happens when i create the second category... (not sure if it's properly attached tho)
I've tried english and french as language interface (only english on the video)

edit : can't see the file... Is it supposed to show in the forum ?

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

Re: Frontend crashes after creating more than one category

Post by Thorsten » Tue Mar 04, 2014 4:17 pm

Hi,

please use http://www.screenr.com/

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

melpheos
Posts: 15
Joined: Thu Feb 27, 2014 3:07 pm

Re: Frontend crashes after creating more than one category

Post by melpheos » Tue Mar 04, 2014 4:43 pm

Didn't knew this website, it's nice

http://www.screenr.com/dEBN

melpheos
Posts: 15
Joined: Thu Feb 27, 2014 3:07 pm

Re: Frontend crashes after creating more than one category

Post by melpheos » Wed Mar 05, 2014 3:31 pm

After looking at another post i have enabled debug and this is what i get when i create a 2nd category

Fatal error: Call to a member function fetch_assoc() on a non-object in /var/www/inc/PMF/DB/Mysqli.php on line 155

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

Re: Frontend crashes after creating more than one category

Post by Thorsten » Fri Mar 07, 2014 12:08 pm

Hi,

ah, great, thx, I'll check it!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

melpheos
Posts: 15
Joined: Thu Feb 27, 2014 3:07 pm

Re: Frontend crashes after creating more than one category

Post by melpheos » Fri Mar 07, 2014 3:45 pm

Strangely enough i have the same error on Debian7 but this time without even being able to create a category as the crash occur just after the installation
On this machine it's running
php ver 5.4.4-14+deb7u8
mysql 14.14

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

Re: Frontend crashes after creating more than one category

Post by Thorsten » Fri Mar 07, 2014 4:00 pm

Hi,

would it be possible to enable the DEBUG MODE in inc/Bootstrap.php so that we can get a full stack trace of the error?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

melpheos
Posts: 15
Joined: Thu Feb 27, 2014 3:07 pm

Re: Frontend crashes after creating more than one category

Post by melpheos » Fri Mar 07, 2014 4:20 pm

Where are the logs supposed to go because on screen i have nothing but this error message when it occurs :( and there is nothing in access or error.log for apache but this very error message ?

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

Re: Frontend crashes after creating more than one category

Post by Thorsten » Fri Mar 07, 2014 4:28 pm

Hi,

you can edit the file inc/PMF/DB/Mysqli.php at line 153 and use this code instead:

Code: Select all

    public function fetchArray($result)
    {
        if (!is_object($result)) {
            echo debug_print_backtrace();
        }
        return $result->fetch_assoc();
    }
When the whole stack trace will be printed.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply