Frontend crashes after creating more than one category
Moderator: Thorsten
Frontend crashes after creating more than one category
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 ?
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 ?
Re: Frontend crashes after creating more than one category
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
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
Re: Frontend crashes after creating more than one category
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
As soon as you create a second category, the frontend will crash...
I'm using the latest version of phpMyFAQ
Re: Frontend crashes after creating more than one category
Hi,
I need more information about PHP versions, database versions and so on.
bye
Thorsten
I need more information about PHP versions, database versions and so on.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Frontend crashes after creating more than one category
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.
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.
Re: Frontend crashes after creating more than one category
Hi,
versions and Debian look fine. Is it possible to see the crash in action?
bye
Thorsten
versions and Debian look fine. Is it possible to see the crash in action?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Frontend crashes after creating more than one category
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 ?
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 ?
Re: Frontend crashes after creating more than one category
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Frontend crashes after creating more than one category
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
Fatal error: Call to a member function fetch_assoc() on a non-object in /var/www/inc/PMF/DB/Mysqli.php on line 155
Re: Frontend crashes after creating more than one category
Hi,
ah, great, thx, I'll check it!
bye
Thorsten
ah, great, thx, I'll check it!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Frontend crashes after creating more than one category
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
On this machine it's running
php ver 5.4.4-14+deb7u8
mysql 14.14
Re: Frontend crashes after creating more than one category
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
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
amazon.de Wishlist
Re: Frontend crashes after creating more than one category
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 ?
Re: Frontend crashes after creating more than one category
Hi,
you can edit the file inc/PMF/DB/Mysqli.php at line 153 and use this code instead:
When the whole stack trace will be printed.
bye
Thorsten
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();
}
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist