Skip to main content
Topic: Split topic here at elkarte.net (Read 2903 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Split topic here at elkarte.net

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

Re: Split topic here at elkarte.net

Reply #1

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.)
Bugs creator.
Features destroyer.
Template killer.

Re: Split topic here at elkarte.net

Reply #2

I clicked on this message on "more", "split". I selected messages to be split, this one and this one. 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.  ;)

Re: Split topic here at elkarte.net

Reply #3

I merged one or two topics here but never tried splitting yet.

Re: Split topic here at elkarte.net

Reply #4

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
Bugs creator.
Features destroyer.
Template killer.

Re: Split topic here at elkarte.net

Reply #5

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.
Bugs creator.
Features destroyer.
Template killer.

Re: Split topic here at elkarte.net

Reply #6

Okay, the messages are now in the appropriate topics.

The relevant errors in the log are:
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: 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
Bugs creator.
Features destroyer.
Template killer.


Re: Split topic here at elkarte.net

Reply #8

I don't think this one is tracked yet for 1.1.6.