FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Datadump not backing up forum files
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Datadump not backing up forum files [message #187513] Tue, 03 July 2018 20:54 Go to next message
GaryM is currently offline  GaryM
Messages: 118
Registered: May 2013
Location: Seattle
Karma: 3
Senior Member
I ran a datadump that usually takes a couple of minutes now ending up taking only a second to run. The log file shows it's not picking up any DATA_DIR files of any kind. Backing up the database tables looks good though. I suspect this could be a bug with 3.0.9 since this was working good in 3.0.8.

Backup progress
Backup forum files:
... backup DATA_DIR/ (0 MB)
... backup WWW_ROOT_DISK/images/ (0.02 MB)
... backup WWW_ROOT_DISK/adm/ (0.54 MB)
Backup database tables:
... dump table fud30_action_log (55 rows)
... dump table fud30_ann_forums (0 rows)
... dump table fud30_announce (0 rows)
... dump table fud30_attach (3046 rows)
... dump table fud30_avatar (39 rows)

Permissions in the data directory look like this.

.	garmye2	pg5833744	4	2014-10-19 02:39	drwxr-xr-x- (755)	chmod d/l
cache	garmye2	pg5833744	4	2018-07-03 20:43	-rwxr-xr-x- (755)	chmod d/l ren del
errors	garmye2	pg5833744	4	2014-12-27 23:20	-rwxr-xr-x- (755)	chmod d/l ren del
files	garmye2	pg5833744	80	2018-06-18 20:23	-rwxr-xr-x- (755)	chmod d/l ren del
include	garmye2	pg5833744	4	2013-10-12 04:27	-rwxr-xr-x- (755)	chmod d/l ren del
messagesgarmye2	pg5833744	4	2013-11-24 23:56	-rwxr-xr-x- (755)	chmod d/l ren del
plugins	garmye2	pg5833744	4	2013-10-12 03:37	-rwxr-xr-x- (755)	chmod d/l ren del
scripts	garmye2	pg5833744	4	2013-05-21 13:56	-rwxr-xr-x- (755)	chmod d/l ren del
sql	garmye2	pg5833744	4	2014-10-19 02:14	-rwxr-xr-x- (755)	chmod d/l ren del
src	garmye2	pg5833744	4	2018-05-28 17:02	-rwxr-xr-x- (755)	chmod d/l ren del
thm	garmye2	pg5833744	4	2013-10-12 03:37	-rwxr-xr-x- (755)	chmod d/l ren del
tmp	garmye2	pg5833744	4	2018-07-03 20:28	-rwxr-xr-x- (755)	chmod d/l ren del


Re: Datadump not backing up forum files [message #187514 is a reply to message #187513] Wed, 04 July 2018 08:02 Go to previous messageGo to next message
naudefj is currently offline  naudefj   United States
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
We changed one line in version 3.0.9. See "The each() function is deprecated in PHP 7.2" at
https://sourceforge.net/p/fudforum/code/6141/tree//trunk/install/www_root/a dm/admdump.php?diff=51a609cd5fcbc9453342c4e5:6140

Please try to reverse it and see if it helps.
Re: Datadump not backing up forum files [message #187515 is a reply to message #187514] Wed, 04 July 2018 16:25 Go to previous messageGo to next message
GaryM is currently offline  GaryM
Messages: 118
Registered: May 2013
Location: Seattle
Karma: 3
Senior Member
Thanks Frank I will give that a try. So right now I'm on PHP 5.6. I have the choice to go to PHP 7.2, the latest and greatest.

That might be the better way to go.


Re: Datadump not backing up forum files [message #187517 is a reply to message #187515] Wed, 04 July 2018 23:14 Go to previous messageGo to next message
GaryM is currently offline  GaryM
Messages: 118
Registered: May 2013
Location: Seattle
Karma: 3
Senior Member
The depreciating each() function was it. Upgrading to the latest PHP version did it! Datadumps are now working.

FUDforum: 3.0.9
PHP: 7.2.5



Re: Datadump not backing up forum files [message #187562 is a reply to message #187517] Sun, 09 September 2018 20:53 Go to previous messageGo to next message
Coretext03 is currently offline  Coretext03   United States
Messages: 12
Registered: July 2018
Karma: 0
Junior Member
Phew! I was about to reinstall the forum and came across this. I reproduced the same issue. Upgrading to the latest PHP also fixed it. Nearly lost a lot of forum data! Thank you!
Re: Datadump not backing up forum files [message #187564 is a reply to message #187562] Sun, 09 September 2018 21:21 Go to previous messageGo to next message
Coretext03 is currently offline  Coretext03   United States
Messages: 12
Registered: July 2018
Karma: 0
Junior Member
Ok I'm not sure if this relates to this issue but it mentions the foreach() function. I came across this in httpd-error.log and haven't been able to reproduce the error so far.

PHP Warning: Invalid argument supplied for foreach() in /usr/local/www/apache24/data/theme/default/post.php on line 1115

[Updated on: Sun, 09 September 2018 21:22]

Report message to a moderator

Re: Datadump not backing up forum files [message #187567 is a reply to message #187564] Mon, 10 September 2018 06:49 Go to previous message
naudefj is currently offline  naudefj   United States
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
The conversion from each() to foreach() is causing a lot of problems for us.
I'm hoping to get it all sorted out before the next release.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Multiple issues on the registration page
Next Topic: NNTP import won't work
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Mar 28 10:34:39 GMT 2024

Total time taken to generate the page: 0.04998 seconds