ElkArte Community

Title: Problem with all posts timing out - resolved by editing Settings.php
Post by: overscan on October 02, 2014, 04:47:54 am
I installed Elkarte in the apache site previously used for SMF beta testing. It installed perfectly but then I couldn't make any posts or edit any configuration pages without a timeout.

I fixed this by editing the cache to "apc" and "level 2" which were the settings previously used in SMF.

Thought this was odd enough to share.

Like what I see so far - will be test converting www.secretprojects.co.uk to play with shortly.
Title: Re: Problem with all posts timing out - resolved by editing Settings.php
Post by: emanuele on October 02, 2014, 05:07:57 am
Hello overscan and welcome! :)

It's not the first report about APC messing with sessions, see for example this (http://www.elkarte.net/community/index.php?topic=1616.0) (and maybe this message (http://www.elkarte.net/community/index.php?topic=1616.msg10346#msg10346) in particular. :-\).

Glad you like it! :D
Title: Re: Problem with all posts timing out - resolved by editing Settings.php
Post by: overscan on October 02, 2014, 05:31:25 am
Yes - that gave me the clue - but it wouldn't be a great experience for average users trying out the forum software. I'm not exactly a newbie. I've used SMF on my forum since December 2005, and have been feeling very restless after never quite warming to 2.0 and the glacial pace of development since 1.1. Elkarte seems like a good fork so far and fixes most of my dissasatisfaction with SMF.
Title: Re: Problem with all posts timing out - resolved by editing Settings.php
Post by: Spuds on October 02, 2014, 09:06:19 am
QuoteI fixed this by editing the cache to "apc" and "level 2" which were the settings previously used in SMF.
Before you did that it was blank then? 

If so maybe what is happening is (theory)
Since APC was running on the site/server, at least at the opcache, and that opcache that is destroying the static binding (timeouts). 
If the cache was blank in settings.php then ElkArte may not have registered the register_shutdown_function() 
We need to check that code to see if its doing the register based on detection vs settings value. 
One you updated the value, it would be seen and then register the handler

And thanks for giving ElkArte a test, we have done a heck of a lot of work on it  :)
Title: Re: Problem with all posts timing out - resolved by editing Settings.php
Post by: overscan on October 03, 2014, 08:05:41 pm
Yes, the values in Settings.php were blank before I edited them.

Really impressed with Elkarte so far. My main challenge will be getting a usable theme which is not too dissimilar to the old forum while working well on mobile - the default theme is good but quite far from the old forum stylistically (which was edited Curve blended with some elements from previous Aero79 theme).
Title: Re: Problem with all posts timing out - resolved by editing Settings.php
Post by: Spuds on October 03, 2014, 09:18:42 pm
Quote from: overscan – Yes, the values in Settings.php were blank before I edited them.
Thanks, then I think my theory is right, will make a change.
Quote from: overscan –
Really impressed with Elkarte so far. My main challenge will be getting a usable theme which is not too dissimilar to the old forum while working well on mobile - the default theme is good but quite far from the old forum stylistically (which was edited Curve blended with some elements from previous Aero79 theme).
Glad you are enjoing it :D ... I'm not sure if this will help or not with your theme efforts http://www.elkarte.net/community/index.php?topic=1124.msg8336#msg8336 I'm not sure how complete that is, but its an example of what you would need to get a curvish look.
Title: Re: Problem with all posts timing out - resolved by editing Settings.php
Post by: overscan on October 04, 2014, 05:23:58 pm
Had some ongoing issues with authentication with apc turned on - for example I would log on ok to the forum then fail to authenticate as an admin for example.

I've turned apc off for this vhost via .htaccess:

php_flag apc.cache_by_default Off

and now everything seems fine. Would eventually like to turn it on for production go-live though.

I already looked at that theme, yes a good start indeed, but I acctually prefer the new default theme, so considering a more radical overhaul of the forum look.
Title: Re: Problem with all posts timing out - resolved by editing Settings.php
Post by: Spuds on October 04, 2014, 06:45:12 pm
I don't recall reports about authentication problems, not to say that there may not be another APC issue.

Do note that by default you need to enter your password to enter the admin panel.  You can disable this in admin->security and moderation -> general ... and check  Disable administration security and Disable moderation security.  The second password prompt is there to improve session security.

What version of PHP are you using?

Title: Re: Problem with all posts timing out - resolved by editing Settings.php
Post by: overscan on October 04, 2014, 07:19:52 pm
Yes, I am aware about the second admin prompt - the problem was it refusing my password. Hard to admin forum in that circumstance :)

Running Ubuntu 10.04 LTS (until later this month)

PHP Version 5.3.2-1ubuntu4.27
APC Version 3.1.9

It all works ok with SMF 2.0.x

Title: Re: Problem with all posts timing out - resolved by editing Settings.php
Post by: Spuds on October 04, 2014, 09:17:51 pm
I'm out of ideas for the moment.

I have not been able to reproduce login errors on my apc test environment but its a 12.04 base so saying that works is comparing apples and oranges to your 10.04 base.  Now I use 14.04 and don't use apc at all,  although I may play with apcu at some point.

Maybe someone else has some ideas that can be tried.