|
[F] Missing images after merging posts [R] [C-Michael83]
|
|
03-05-2009, 10:34 PM
(This post was last modified: 03-05-2009 10:37 PM by hemi.)
Post: #1
|
|||
|
|||
|
[F] Missing images after merging posts [R] [C-Michael83]
One of my mods merged some posts into one, the merged post lost it's images. The attachements were showing as added into the page and all I see is text. So I deleted the attachments in the post and the images still wont show in the post in the attachments box. The images still show as attachments are their when in full edit, they just aren't showing. Couldnlt find anything in the bugs section that matched this. I could be wrong however because all I looked at are the titles since there are 99 bugs.
Using the lastest version 1.4.4 |
|||
|
03-06-2009, 12:50 AM
(This post was last modified: 03-06-2009 01:32 AM by dvb.)
Post: #2
|
|||
|
|||
|
RE: Missing images after merging posts [R]
In the first look you can see that the problem is with $thread['attachmentcount'] (showthread.php line 765), sometimes it doesn't updated to the right value.
Recount & rebuild thread counters solved the problem, as well as adding a new attachment to the thread. Update: I've tested this bug only with merges of 2 posts and the problem occur only when the first post has attachments and the second post has NO attachments, then I've take a look over 'inc\class_moderation.php' function merge_posts(): line 606 Wrote:$pidin is a comma separated list of all post's ids to be merged, $masterpid is the post id of the first post (with 'ORDER BY p.dateline ASC') The result is the new $thread['attachmentcount'] : PHP Code: $attachment_count = $db->fetch_field($query2, "count");So it's actually sets the $thread['attachmentcount'] to the count of all attachment from all of the posts that need to be merged except the first one, why does the query built like this? Creativity is a drug I cannot live without. |
|||
|
03-06-2009, 01:46 AM
Post: #3
|
|||
|
|||
|
RE: Missing images after merging posts [R]
I remember something like this already being reported and fixed for the SVN
|
|||
|
03-06-2009, 01:58 AM
Post: #4
|
|||
|
|||
|
RE: Missing images after merging posts [R]
The line you remember is line 585 (trunk), with the users table
Creativity is a drug I cannot live without. |
|||
|
03-06-2009, 02:54 AM
(This post was last modified: 03-06-2009 03:02 AM by dvb.)
Post: #5
|
|||
|
|||
|
RE: Missing images after merging posts [R]
dvb, great job, confirmed the re-count and re-build DID put the images back. However keep in mind, this took me over 45 minutes to do all my processes. I do not have a small forum. So a fix would be much appreciated my friends. Thank you again dvb as we use photo viewing in our <....>
Over 7000 kit photos now ![]() Thanks gentlemen |
|||
|
03-06-2009, 03:00 AM
(This post was last modified: 03-06-2009 03:02 AM by dvb.)
Post: #6
|
|||
|
|||
|
RE: Missing images after merging posts [R]
Of course we'll write a fix, we're working on it.
And please play nice you're on public view
Creativity is a drug I cannot live without. |
|||
|
03-06-2009, 03:00 AM
Post: #7
|
|||
|
|||
|
RE: Missing images after merging posts [R]
Thanks again dvb
|
|||
|
03-07-2009, 05:08 AM
(This post was last modified: 03-08-2009 06:03 PM by hemi.)
Post: #8
|
|||
|
|||
RE: Missing images after merging posts [R]
(03-06-2009 03:00 AM)dvb Wrote: Of course we'll write a fix, we're working on it. Ermmm I was playing nice... drum Porn is not real porn.. It's just pictures of drumsets... that's it... Nothing more... The people treat drumset pics as a pleasure to view, classic ones, new ones etc... We're a musical forum, not a porn site.. O.o It's just a phrase.There's posts here with porn mentioned in them in the subject with the same no meaning my post has btw.. And btw- Your welcome for me taking the time out of my schedule to report your bugs regards |
|||
|
03-16-2009, 01:40 AM
Post: #9
|
|||
|
|||
|
[F] Missing images after merging posts [R]
Thank you for your bug report.
This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated. With regards, MyBB Group |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help





Over 7000 kit photos now
you're on public view
It's just pictures of drumsets... that's it... Nothing more... The people treat drumset pics as a pleasure to view, classic ones, new ones etc... We're a musical forum, not a porn site.. O.o It's just a phrase.