ElkArte Community

Elk Development => Bug Reports => Topic started by: Jorin on August 22, 2018, 05:37:24 am

Title: Split topic here at elkarte.net
Post by: Jorin on August 22, 2018, 05:37:24 am
I splitted a topic. The new thread shows not the new title I gave him. And I get an error message when I try to open it:

Database error, given array of integer values is empty. (messages)

It's this one: https://www.elkarte.net/community/index.php?topic=5403.0

The splitted messages are in the old thread and were not moved: https://www.elkarte.net/community/index.php?topic=5395.msg38516#msg38516
Title: Re: Split topic here at elkarte.net
Post by: emanuele on August 22, 2018, 07:37:24 am
Can you please detail exactly the options you selected?
And which one are the messages you selected? (If you could link all of them, or at least list the reply numbers would be helpful.)
Title: Re: Split topic here at elkarte.net
Post by: Jorin on August 22, 2018, 09:02:21 am
I clicked on this message (https://www.elkarte.net/community/index.php?topic=5395.msg38516#msg38516) on "more", "split". I selected messages to be split, this one (https://www.elkarte.net/community/index.php?topic=5395.msg38516#msg38516) and this one (https://www.elkarte.net/community/index.php?topic=5395.msg38526#msg38526). I gave a new title, selected the split notice to be shown, and that's it. I used Chrome, so it's not a IE problem.  ;)
Title: Re: Split topic here at elkarte.net
Post by: ahrasis on August 24, 2018, 06:12:26 am
I merged one or two topics here but never tried splitting yet.
Title: Re: Split topic here at elkarte.net
Post by: emanuele on August 25, 2018, 02:52:39 am
I split some from time to time, but recently I didn't use the "pick messages".
I didn't feel very well yesterday, so today I'll likely have some time. :P
Title: Re: Split topic here at elkarte.net
Post by: emanuele on August 27, 2018, 04:15:53 pm
hmm... it seems to be a nasty problem.
I tried again, but it failed to update the .
Apparently something in $_SESSION is not set properly when split picking the posts and the creation of the new topic fails.
And this second try seems to have messed up even more the situation... :-\
I'll fix the thing here and then I'll try to have a look before the end of the week.
Title: Re: Split topic here at elkarte.net
Post by: emanuele on August 27, 2018, 04:34:53 pm
Okay, the messages are now in the appropriate topics.

The relevant errors in the log are:
    Type of error: Undefined
    Notice: Undefined index: new_topic_subject

    https://www.elkarte.net/community/index.php?action=splittopics;sa=selectTopics;subname=Footer+erg%C3%A4nzen;topic=5395.0;start2=0;move=down;msg=38526;xml


    File: /.../sources/controllers/SplitTopics.controller.php
    Line: 333

Code: [Select]
    Type of error: Undefined
    Notice: Undefined index: new_topic_subject

    File: /.../sources/controllers/SplitTopics.controller.php

Code: [Select]
     Type of error: Undefined
    Notice: Undefined index: new_topic_subject

    https://www.elkarte.net/community/index.php?action=splittopics;sa=selectTopics;subname=Footer+erg%C3%A4nzen;topic=5395.0;start2=0;move=down;msg=38526;xml

    File: /.../sources/controllers/SplitTopics.controller.php
    Line: 410

Code: [Select]
    Type of error: Undefined
    Notice: Undefined index: move_to_board

    https://www.elkarte.net/community/index.php?action=splittopics;sa=splitSelection;board=19.0

    File: /.../sources/controllers/SplitTopics.controller.php
    Line: 266

Code: [Select]
    Type of error: Undefined
    Notice: Undefined index: new_topic_subject

    https://www.elkarte.net/community/index.php?action=splittopics;sa=splitSelection;board=19.0

    File: /.../sources/controllers/SplitTopics.controller.php
    Line: 269

Code: [Select]
    Type of error: Undefined
    Notice: Undefined index: messageRedirect

    https://www.elkarte.net/community/index.php?action=splittopics;sa=splitSelection;board=19.0

    File: /.../sources/controllers/SplitTopics.controller.php
    Line: 277

Then, but this is due to the fact the topic doesn't have messages, so it could be overlooked because is a situation that in theory should not happen:
Code: [Select]
    Type of error: Critical
    Database error, given array of integer values is empty. (messages)
    Function: followupTopics

    https://www.elkarte.net/community/index.php?topic=5403.0

    File: /.../sources/subs/FollowUps.subs.php
    Line: 37
Title: Re: Split topic here at elkarte.net
Post by: Jorin on August 28, 2018, 05:04:45 am
Quote from: emanuele – I'll fix the thing here and then I'll try to have a look before the end of the week.

Thanks!
Title: Re: Split topic here at elkarte.net
Post by: ahrasis on March 27, 2019, 10:08:41 am
I don't think this one is tracked yet for 1.1.6.