Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#26 2014-10-24 12:10:01

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,291
Website

Re: FluxBB 1.5.7 and 1.4.13 released

Taken from the code you posted above:

This is the line you're looking for:

$db->query('UPDATE '.$db->prefix.'users SET password=\''.$cur_user['activate_string'].'\', activate_string=NULL, activate_key=NULL'.(!empty($cur_user['salt']) ? ', salt=NULL' : '').' WHERE id='.$id) or error('Unable to update password', __FILE__, __LINE__, $db->error());

This is the line you're changing to:

$db->query('UPDATE '.$db->prefix.'users SET password=\''.$db->escape($cur_user['activate_string']).'\', activate_string=NULL, activate_key=NULL'.(!empty($cur_user['salt']) ? ', salt=NULL' : '').' WHERE id='.$id) or error('Unable to update password', __FILE__, __LINE__, $db->error());

Following the link also gives you the line number the code is on: 58. It's by no means rocket science.

Offline

#27 2014-10-25 11:52:44

joel
Member
Registered: 2014-07-04
Posts: 438

Re: FluxBB 1.5.7 and 1.4.13 released

chris98 wrote:

Taken from the code you posted above:

This is the line you're looking for:

$db->query('UPDATE '.$db->prefix.'users SET password=\''.$cur_user['activate_string'].'\', activate_string=NULL, activate_key=NULL'.(!empty($cur_user['salt']) ? ', salt=NULL' : '').' WHERE id='.$id) or error('Unable to update password', __FILE__, __LINE__, $db->error());

This is the line you're changing to:

$db->query('UPDATE '.$db->prefix.'users SET password=\''.$db->escape($cur_user['activate_string']).'\', activate_string=NULL, activate_key=NULL'.(!empty($cur_user['salt']) ? ', salt=NULL' : '').' WHERE id='.$id) or error('Unable to update password', __FILE__, __LINE__, $db->error());

Following the link also gives you the line number the code is on: 58. It's by no means rocket science.

done.

thanks for explanation


Warning! be informed and be forewarned. <p>
<?php
I'm not a native English Man. So my comments might contain some grammatical explosive (ELD), missapropreation of words (dinamyt), The use of wrong words (missiles), & mis spelling of words (war drones). Any of the occurrence can cause havoc. So be warned
?>

Offline

#28 2014-10-27 18:22:30

Error
Member
From: Portsmouth, Ohio
Registered: 2014-04-15
Posts: 12
Website

Re: FluxBB 1.5.7 and 1.4.13 released

I should give this one a test spin. smile


Laugh, and the world laughs with you;
Weep, and you weep alone.

Offline

#29 2014-11-10 20:55:05

philwareham
Member
From: UK
Registered: 2013-10-10
Posts: 8

Re: FluxBB 1.5.7 and 1.4.13 released

Trying to upgrade from v1.5.6 to v1.5.7 -  have run the update_db.php and the screen goes to white and seems to not do anything more. Trying to access the forum after that and just get the simple "Sorry, we are currently doing maintenance, please come back later."

Been like that for a few hours now so I don't think it's actually running any updater. What can I do to manually get the database up to v1.5.7 and get rid of the maintenance message and the forum working again?

Last edited by philwareham (2014-11-10 20:55:43)

Offline

#30 2014-11-10 20:56:30

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,291
Website

Re: FluxBB 1.5.7 and 1.4.13 released

A white screen is a sign of a fatal PHP error. Please enable full error reporting and check your error logs.

Regarding removing maintenance mode, this topic may be of use to you.

Last edited by chris98 (2014-11-10 20:58:02)

Offline

#31 2014-11-10 21:05:33

philwareham
Member
From: UK
Registered: 2013-10-10
Posts: 8

Re: FluxBB 1.5.7 and 1.4.13 released

It isn't actually in maintenance mode, it's trying to perform the database update (and failing).

Surely nothing major has changed in the database structure between v1.5.6 and v.1.5.7 - can't I simply remote connect to the database and make any minor adjustments there? Just need to know what's changed.

Offline

#32 2014-11-10 21:09:24

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,291
Website

Re: FluxBB 1.5.7 and 1.4.13 released

It's mainly just VARCHAR stuff that I've seen - but that is only what I've seen which was a very brief look, I haven't really looked at the code in any depth but I suggest you try your best to avoid manually editing it in phpMyAdmin, it will only over complicate stuff - it's a fairly big file. Not only that but it re-defines constants and updates some config - then regenerates all the cache.

If you add the following at the top of the file just after the <?php you'll be able to see any errors in the script, some of which are hidden by FluxBB by default:

ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);

Last edited by chris98 (2014-11-10 21:11:03)

Offline

#33 2014-11-10 21:15:22

philwareham
Member
From: UK
Registered: 2013-10-10
Posts: 8

Re: FluxBB 1.5.7 and 1.4.13 released

Put those in db_update.php file, right?

Last edited by philwareham (2014-11-10 21:15:45)

Offline

#34 2014-11-10 21:16:57

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,291
Website

Re: FluxBB 1.5.7 and 1.4.13 released

Yeah, if that's the page which is completely white.

Offline

#35 2014-11-10 21:26:33

philwareham
Member
From: UK
Registered: 2013-10-10
Posts: 8

Re: FluxBB 1.5.7 and 1.4.13 released

It's OK, I looked in the GitHub repo and the only database change between 1.5.6 and 1.5.7 was this:

-define('UPDATE_TO', '1.5.6');
+define('UPDATE_TO', '1.5.7');

So I just manually edited the entry in config table of database to the new version number and I'm back up and running with the latest version installed. Cheers anyway.

Offline

#36 2014-11-20 20:33:04

Lambertus
Member
Registered: 2009-09-02
Posts: 34
Website

Re: FluxBB 1.5.7 and 1.4.13 released

Slightly offtopic. I tried to fork FluxBB-1.5.7 for the OpenStreetMap forum (e.g. to add a custom login function) but when I go to github and change the view from branch: master to tag: fluxbb-1.5.7 then the latest commit is shown as "franzliedke authored on Jan 15  latest commit 09b6a081de".

I would expect to see the latest commit being somewhere in October, being the security fix. Do I miss something here? You may have guessed correctly by now that I'm not Github savvy...

Edit: when I clone the master of my fork then I get: FluxBB 1.5.6

Edit: I read elsewhere that master should already be 1.5.7. But anyway I thought it was strange that the 1.5.7 tag would result in the 1.5.6 code. smile

Last edited by Lambertus (2014-11-20 21:03:37)

Offline

#37 2014-11-20 23:06:03

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 6,474
Website

Re: FluxBB 1.5.7 and 1.4.13 released

I think that's because I re-applied an old commit from another branch. See this list which contains all the commits that made it into v1.5.7.


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#38 2014-11-21 15:10:58

Lambertus
Member
Registered: 2009-09-02
Posts: 34
Website

Re: FluxBB 1.5.7 and 1.4.13 released

Thanks Franz, to make matters clear for me: forking the 'master' should currently get me 1.5.7?

Offline

#39 2014-11-22 16:41:37

quy
Administrator
From: California
Registered: 2008-05-09
Posts: 905

Re: FluxBB 1.5.7 and 1.4.13 released

Yes and 1.5-next will be 1.5.8.

Offline

#40 2014-11-23 15:14:27

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 6,474
Website

Re: FluxBB 1.5.7 and 1.4.13 released

This allows us to quickly make a release based on master with just the security fixes. Makes applying them easier for you guys.


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#41 2014-12-01 19:10:30

Error
Member
From: Portsmouth, Ohio
Registered: 2014-04-15
Posts: 12
Website

Re: FluxBB 1.5.7 and 1.4.13 released

Franz wrote:

This allows us to quickly make a release based on master with just the security fixes. Makes applying them easier for you guys.

Applying them would be way easier. Nice work. smile


Laugh, and the world laughs with you;
Weep, and you weep alone.

Offline

Board footer

Powered by FluxBB