Keyword

Gallery and/or Video from other items appearing on new k2 items

  • Marc S. Boas
  • Marc S. Boas's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #86308 by Marc S. Boas
We're seeing some strange behavior where the video or image gallery from an older item will be attached to a new item that was saved without gallery or video.We haven't identified a specific sequence but it's confusing the hell out of the users.  The create a new item and save it, then reopen and it has the gallery from a different item.Using K2 2.2 right now.Has anyone seen this?

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #86309 by william white
Have you deleted a lot of items? and trashed or anything to cause the id's to change?
Has anyone been in the backend of mysql changing things?
Does this have anything to do with a cache issue?
just guessing

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #86310 by Bryan Smith
HELP, I'm now seeing this happen on two websites!!

This time I have a little more info because it just happened.

Website is joomla 1.5.17 k2.2

Today I opened an existing article and added a youtube video and an image gallery to the article. Now every article in that category that did not have a gallery or video has the same content in the db

k2 the db looks like this

{youtube}l2iZl1dgvzc{/youtube} {gallery}10{/gallery}
{youtube}l2iZl1dgvzc{/youtube} {gallery}10{/gallery}
{youtube}l2iZl1dgvzc{/youtube} {gallery}10{/gallery}
{youtube}l2iZl1dgvzc{/youtube} {gallery}10{/gallery}
{youtube}l2iZl1dgvzc{/youtube} {gallery}10{/gallery}


no, not deleted any items. This is a fairly new site.

nothing done on the backend.

Don't know how this is caching. I did not open each of the items that now has the duplicate content. The content was written into those records.

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #86311 by natecovington
I've seen this a few times as well. Happened just now so I looked up this thread.

Running Joomla 1.5.21 and K2 2.4.1 on a local server here, brand new site / fresh install. Had a news item with video and gallery. Edited another item and the video and gallery from the other item was stuck to this one.

Glad to know I'm not the only one with this - any help?

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #86312 by william white
Just thinking about this behavior. Please someone post if i am incorrect.
When adding an item there must be - insert into jos_items and the first field id is autoincrement, gets a unique k2 item number.
Looking at the created record from the "real backend" you can see the tag inserted in the gallery field contains the unique k2 item number.


If this record is edited and a gallery added it should issue a mysql update command for id="k2id number" affecting only one record.
The behavior described must be some sort of problem with either bad code in the k2 or joomla core, or something wrong with mysql.
Since this seems to happen on sites that are working, What changed just prior to this behavior? Were new "bad" extensions added?

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #86313 by Bryan Smith
I'm pretty sure that I've identified the cause of this.

Strange characters in the filenames of images in the zip files.

Everytime I had this happen I was able to find some strange characters in a filename.

Scrubbing filenames for spaces and characters now and it's never happened again.

I use Bulk Rename Utility which you can find on the web. Awesome tool!!

Please Log in or Create an account to join the conversation.

More
14 years 5 months ago #86314 by william white
It would be interesting to know if this happens on both windows and unix servers....unix is not windows AND the old dos filename convention works BEST everywhere for sure.

Lownotes said:I'm pretty sure that I've identified the cause of this.
Strange characters in the filenames of images in the zip files.

Everytime I had this happen I was able to find some strange characters in a filename.

Scrubbing filenames for spaces and characters now and it's never happened again.

I use Bulk Rename Utility which you can find on the web. Awesome tool!!

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #86315 by Josh
Had the same problem for sometime now, just used the Bulk Rename Utility too. Really saved me big time. What a handy app. Thanks Lownotes

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #86316 by Josh
Damn, ok so I tried using Bulk Rename Utility and the problem appeared to have been fixed however much to my dismay it seems to have returned. I checked that the filenames of the suspected images and gallery are correct and they appear to be fine. Any further information or tips regarding this? Has anyone spotter the problem returning after using the Bulk Rename Utility tool to fix the filenames?

 

thanks, Josh

Please Log in or Create an account to join the conversation.

More
14 years 3 weeks ago #86317 by Farid
I'm facing this problem in my new website, and there's nothing wrong with file names.

most of new items have videos and galleries from other published items.

I urgently need to fix this issue!

any suggestions?

Please Log in or Create an account to join the conversation.

More
14 years 2 weeks ago #86318 by Josh
No luck my side yet but still desperately trying to find a solution. Will let you know if I find one.

In the mean time I have to manually monitor and remove incorrect galleries from articles.

 

Does anyone know where you can inspect the actual names of the uploaded zip folders. I know they get stored in numbered folders inside /media however is it possible that the actual zip files name (if it contains spaces or other characters) could be causing the problem?

Please Log in or Create an account to join the conversation.

More
14 years 1 week ago #86319 by Alan Sparkes
Have just hit this problem too in K2 svn 2.5 . Am working on solution this morning

Please Log in or Create an account to join the conversation.

More
14 years 1 week ago #86320 by Alan Sparkes
I cant recreate this now in SVN version :(

However I can confirm that we were using 2.4.1 and that the database had the same youtube tags on many articles in the  video column. If you can I suggest removing from db and testing with SVN version.

 

The save  function happens in the item model and there is nothing really in there that looks wrong or obvious as a culprit. It uses main core Joomla functions to perform the save Alan Sparkes said:

Have just hit this problem too in K2 svn 2.5 . Am working on solution this morning

Please Log in or Create an account to join the conversation.

More
14 years 1 week ago #86321 by Josh
Thanks for taking a look. I'm going to check out my db again however I am always cautious as this problem is on one of my larger more active site so I need to be careful not to break something.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #86322 by Momchil
OK I think I may have solved teh puzzle here .... Apparently you will have to manually tell the item ( article) in K2 to show the gallery - item view options - Image gallery - show! And it worked for me... I hope it does for you too :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum