-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Attachments and Tags not added in database #62
Comments
New tags are also not saved to the item or database. On both sites J4/PHP 8.1 and database schemes are up to date (different servers). Could it be someting with count() or store()? Also the extra field radio buttons are stacked/ displayed inline. |
I can't reproduce the problem. I tried adding a tag and an attachment to a K2 article on a test site, and I have no problem with it. Perhaps this is a local problem? I think this issue has already been resolved. |
Thanks for your reaction. I have the same problem in two different environments without any errors... I will be pulling my hair a little longer. Is it possible to install the package over the existing one and/ or use it on a fresh J4 install? I will test further |
I think it is enough to install the new revision of K2ForJ4 over of the old release. Perhaps these two fixed bugs are similar to your problem? - Can you provide technical information about your database server? What database encoding is used? The two servers I use do not have the problem you describe. |
With latest revision installed, first tried the attachment: In com_k2/models/item.php Upload is working: files move to media/k2/attachments Added tag via menu: "Field description doesn't have a value" Then I finally found the conflicting ordering row in the attachments table from this old fix (on both sites): Database Version 10.11.6-MariaDB-log Database Version 10.5.24-MariaDB For now it works. Thanks! |
But k2_tags does not have a description column! do you have a customized K2 version that you tried to update from? |
Not that I am aware of. Please check the latest K2 install: https://github.com/getk2/k2/blob/7ec1dbdb1283fb6134a1ed83c0886e3fd8e253db/install.k2.php#L181C5-L187C6 |
Apparently k2 official version added description feature for tags which this fork do not support for the moment, update is on the way |
please update and check if your issue remains. If latest update fixes your issue, please close this |
@eworkers, is this update safe for those users who upgraded from K2 to K2forJ4 before the official K2 had this field? |
Works for me. Also changed back tags db. I guess with new migrations better not use the latest K2. Thanks |
…imum K2 rollup release to prevent conflicts that can be caused by new features.)
Yes of course |
Uploading a pdf to an existing item is uploaded to the media folder, but not added to the database and not attached the item. Maybe this behaviour is just on my side, but the rest of item editing seems to work fine on front- and backend. I did change the item model getname() with basename() and there is a JavaScript error: cannot read properties of undefined (reading 'msie'). Not sure if this affects the addAttachment to database function.
Unfortunately the same behaviour on my other upgrade; file is uploaded, but not inserted into db.
The text was updated successfully, but these errors were encountered: