@akd12 , could you open up the \upload\src\addons\AIXF\AlbumActivity\XFMG\Entity\MediaItem.php in a editor and tell me what line 30 says?
Code:
if ($this->isChanged('media_state'))
@akd12 , could you open up the \upload\src\addons\AIXF\AlbumActivity\XFMG\Entity\MediaItem.php in a editor and tell me what line 30 says?
if ($this->isChanged('media_state'))
What other caches you recommend rebuilding? I think having the sort menu will help you debug effectively?So it looks like the file is correct but the upgrade didn't clear the old behavior. So you will have to try and clear it by Rebuild cache. Not just the Media one you did. Or you could uninstall and and try to reinstall. Of course your going to have to Rebuild caches each time.
If rebuilding the caches does fix the issue, I will note it on the addon and my next release should fix the issue.
Also, when you looked at this line, was it the file you had uploaded to the addon? Or was it from the download on your desktop?@akd12 , could you open up the \upload\src\addons\AIXF\AlbumActivity\XFMG\Entity\MediaItem.php in a editor and tell me what line 30 says?
from the addon/serverAlso, when you looked at this line, was it the file you had uploaded to the addon? Or was it from the download on your desktop?
Had to do some code adjustments.
Do you have any other addons for XFMG installed? You can try and disabling them and see what happens. If you want, DM me your site info and I will take a look.I did everything as suggested, the album parent category is not sorted by last activty. Sorted by date album was created (earliest to latest), so if I add to a previously created album today, it will still show up on page 10 etc of the corresponding category.
Sorry Ford, I forgot to reply to this post and was AFK. Yes, I tried disabling the other addon's but did not make any difference. I will Dm you.Do you have any other addons for XFMG installed? You can try and disabling them and see what happens. If you want, DM me your site info and I will take a look.
So I updated the sort abit to try and help with older media in albums. Also added a filter for album activity in the filter menu.
Made sorting better/stronger on this release. This includes older images in the gallery.
Server error log
ErrorException: Fatal Error: Declaration of SV\TitleEditHistory\XFMG\Entity\Album::getStructure(XF\Mvc\Entity\Structure $structure) must be compatible with AIXF\AlbumActivity\XFMG\Entity\Album::getStructure(XF\Mvc\Entity\Structure $structure): XF\Mvc\Entity\Structure
src/addons/SV/TitleEditHistory/XFMG/Entity/Album.php:78
Generated by: Unknown account
Oct 26, 2025 at 1:49 PM
Stack trace
#0 [internal function]: XF::handleFatalError()
#1 {main}
[HEADING=2]Request state[/HEADING]
array(4) {
["url"] => string(63) "/threads/"
["referrer"] => bool(false)
["_GET"] => array(1) {
["post"] => string(7) "9932336"
}
["_POST"] => array(0) {
}
}
Error that @dutchbb reported.
Code:Server error log ErrorException: Fatal Error: Declaration of SV\TitleEditHistory\XFMG\Entity\Album::getStructure(XF\Mvc\Entity\Structure $structure) must be compatible with AIXF\AlbumActivity\XFMG\Entity\Album::getStructure(XF\Mvc\Entity\Structure $structure): XF\Mvc\Entity\Structure src/addons/SV/TitleEditHistory/XFMG/Entity/Album.php:78 Generated by: Unknown account Oct 26, 2025 at 1:49 PM Stack trace #0 [internal function]...
Copy and paste the code please.After the recent update, I'm getting mysql error from last activity table. Will try to post the screenshots soon.
XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'last_activity_date' in 'INSERT INTO' src/XF/Db/AbstractStatement.php:230
Generated by: loveless Nov 3, 2025 at 8:41 PM
Stack trace
INSERT INTO `xf_mg_album` (`user_id`, `username`, `album_state`, `title`, `description`, `view_privacy`, `category_id`, `create_date`, `album_hash`, `album_id`, `last_update_date`, `media_item_cache`, `view_users`, `add_privacy`, `add_users`, `ip_id`, `media_count`, `view_count`, `warning_id`, `warning_message`, `default_order`, `thumbnail_date`, `custom_thumbnail_date`, `last_comment_date`, `last_comment_id`, `last_comment_user_id`, `last_comment_username`, `rating_count`, `rating_sum`, `rating_avg`, `rating_weighted`, `reaction_score`, `reactions`, `reaction_users`, `last_media_date`, `last_activity_date`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
------------
#0 src/XF/Db/Mysqli/Statement.php(207): XF\Db\AbstractStatement->getException('MySQL statement...', 1054, '42S22')
#1 src/XF/Db/Mysqli/Statement.php(43): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1054, '42S22')
#2 src/XF/Db/Mysqli/Statement.php(61): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Db/AbstractAdapter.php(219): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array)
#5 src/XF/Mvc/Entity/Entity.php(1578): XF\Db\AbstractAdapter->insert('xf_mg_album', Array, false)
#6 src/XF/Mvc/Entity/Entity.php(1306): XF\Mvc\Entity\Entity->_saveToSource()
#7 src/addons/XFMG/Service/Album/Creator.php(192): XF\Mvc\Entity\Entity->save()
#8 src/XF/Service/ValidateAndSavableTrait.php(42): XFMG\Service\Album\Creator->_save()
#9 src/addons/XFMG/Pub/Controller/Media.php(1011): XFMG\Service\Album\Creator->save()
#10 src/addons/XFMG/Pub/Controller/Media.php(875): XFMG\Pub\Controller\Media->getContainerToSaveMedia()
#11 src/XF/Mvc/Dispatcher.php(362): XFMG\Pub\Controller\Media->actionSaveMedia(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XFMG:Media', 'SaveMedia', Object(XF\Mvc\RouteMatch), Object(XFMG\Pub\Controller\Media), NULL)
#13 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFMG\Pub\Controller\Media), NULL)
#14 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()
#16 src/XF.php(806): XF\App->run()
#17 index.php(23): XF::runApp('XF\\Pub\\App')
#18 {main}
Request state
array(4) {
["url"] => string(24) "/forums/media/save-media"
["referrer"] => string(67) "/forums/media/categories/
-for-swaps.9/add"
["_GET"] => array(0) {
}
["_POST"] => array(10) {
["_xfToken"] => string(8) "********"
["attachment_hash"] => string(32) "b1dccbd7f4de04e8d8c3c3d420990473"
["attachment_hash_combined"] => string(91) "{"type":"xfmg_media","context":{"category_id":9},"hash":"b1dccbd7f4de04e8d8c3c3d420990473"}"
["media"] => array(4) {
[18135] => array(6) {
["title"] => string(24) "Civil Rights Act of 1964"
["description"] => string(179) "Landmark civil rights and labor law signed by President Lyndon Johnson that outlaws discrimination based on race, color, religion, sex, and national origin.
Mixed media collage. "
["temp_media_id"] => string(5) "18135"
["media_hash"] => string(32) "f1195341d40e31a3c094477b2a5ad723"
["media_type"] => string(5) "image"
["attachment_id"] => string(6) "818476"
}
[18136] => array(6) {
["title"] => string(26) "Music Chart Toppers, 1960s"
["description"] => string(99) "Pictured: Beatles, Rolling Stones, Bob Dylan, The Supremes, and Jimi Hendrix
Mixed media collage. "
["temp_media_id"] => string(5) "18136"
["media_hash"] => string(32) "fa993b8ca7bf001b1b37b970240c6736"
["media_type"] => string(5) "image"
["attachment_id"] => string(6) "818477"
}
[18137] => array(6) {
["title"] => string(14) "Op Art Fashion"
["description"] => string(61) "Black and white and fabulous all over.
Mixed media collage. "
["temp_media_id"] => string(5) "18137"
["media_hash"] => string(32) "84fa37c8caea140d20dc403582811f4d"
["media_type"] => string(5) "image"
["attachment_id"] => string(6) "818478"
}
[18138] => array(6) {
["title"] => string(6) "Hippie"
["description"] => string(78) "Youth movement or counterculture challenged the "norm".
Mixed media collage. "
["temp_media_id"] => string(5) "18138"
["media_hash"] => string(32) "1a8f1de5f3c83c3f0dd68323682b6be4"
["media_type"] => string(5) "image"
["attachment_id"] => string(6) "818479"
}
}
["album"] => array(2) {
["title"] => string(29) "A Walk Through Time — 1960s"
["description"] => string(32) "A look back to the way we lived."
}
["category_id"] => string(1) "9"
["album_id"] => string(1) "0"
["_xfResponseType"] => string(4) "json"
["_xfWithData"] => string(1) "1"
["_xfRequestUri"] => string(45) "/forums/media/categories/atcs-for-swaps.9/add"
}
}
Thanks! Will look into it and release an update. Looks like something didn't get placed in the database correct.PHP:XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'last_activity_date' in 'INSERT INTO' src/XF/Db/AbstractStatement.php:230 Generated by: loveless Nov 3, 2025 at 8:41 PM Stack trace INSERT INTO `xf_mg_album` (`user_id`, `username`, `album_state`, `title`, `description`, `view_privacy`, `category_id`, `create_date`, `album_hash`, `album_id`, `last_update_date`, `media_item_cache`, `view_users`, `add_privacy`, `add_users`, `ip_id`, `media_count`, `view_count`, `warning_id`, `warning_message`, `default_order`, `thumbnail_date`, `custom_thumbnail_date`, `last_comment_date`, `last_comment_id`, `last_comment_user_id`, `last_comment_username`, `rating_count`, `rating_sum`, `rating_avg`, `rating_weighted`, `reaction_score`, `reactions`, `reaction_users`, `last_media_date`, `last_activity_date`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ------------ #0 src/XF/Db/Mysqli/Statement.php(207): XF\Db\AbstractStatement->getException('MySQL statement...', 1054, '42S22') #1 src/XF/Db/Mysqli/Statement.php(43): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1054, '42S22') #2 src/XF/Db/Mysqli/Statement.php(61): XF\Db\Mysqli\Statement->prepare() #3 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute() #4 src/XF/Db/AbstractAdapter.php(219): XF\Db\AbstractAdapter->query('INSERT INTO `x...', Array) #5 src/XF/Mvc/Entity/Entity.php(1578): XF\Db\AbstractAdapter->insert('xf_mg_album', Array, false) #6 src/XF/Mvc/Entity/Entity.php(1306): XF\Mvc\Entity\Entity->_saveToSource() #7 src/addons/XFMG/Service/Album/Creator.php(192): XF\Mvc\Entity\Entity->save() #8 src/XF/Service/ValidateAndSavableTrait.php(42): XFMG\Service\Album\Creator->_save() #9 src/addons/XFMG/Pub/Controller/Media.php(1011): XFMG\Service\Album\Creator->save() #10 src/addons/XFMG/Pub/Controller/Media.php(875): XFMG\Pub\Controller\Media->getContainerToSaveMedia() #11 src/XF/Mvc/Dispatcher.php(362): XFMG\Pub\Controller\Media->actionSaveMedia(Object(XF\Mvc\ParameterBag)) #12 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XFMG:Media', 'SaveMedia', Object(XF\Mvc\RouteMatch), Object(XFMG\Pub\Controller\Media), NULL) #13 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFMG\Pub\Controller\Media), NULL) #14 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch)) #15 src/XF/App.php(2824): XF\Mvc\Dispatcher->run() #16 src/XF.php(806): XF\App->run() #17 index.php(23): XF::runApp('XF\\Pub\\App') #18 {main} Request state array(4) { ["url"] => string(24) "/forums/media/save-media" ["referrer"] => string(67) "/forums/media/categories/ -for-swaps.9/add" ["_GET"] => array(0) { } ["_POST"] => array(10) { ["_xfToken"] => string(8) "********" ["attachment_hash"] => string(32) "b1dccbd7f4de04e8d8c3c3d420990473" ["attachment_hash_combined"] => string(91) "{"type":"xfmg_media","context":{"category_id":9},"hash":"b1dccbd7f4de04e8d8c3c3d420990473"}" ["media"] => array(4) { [18135] => array(6) { ["title"] => string(24) "Civil Rights Act of 1964" ["description"] => string(179) "Landmark civil rights and labor law signed by President Lyndon Johnson that outlaws discrimination based on race, color, religion, sex, and national origin. Mixed media collage. " ["temp_media_id"] => string(5) "18135" ["media_hash"] => string(32) "f1195341d40e31a3c094477b2a5ad723" ["media_type"] => string(5) "image" ["attachment_id"] => string(6) "818476" } [18136] => array(6) { ["title"] => string(26) "Music Chart Toppers, 1960s" ["description"] => string(99) "Pictured: Beatles, Rolling Stones, Bob Dylan, The Supremes, and Jimi Hendrix Mixed media collage. " ["temp_media_id"] => string(5) "18136" ["media_hash"] => string(32) "fa993b8ca7bf001b1b37b970240c6736" ["media_type"] => string(5) "image" ["attachment_id"] => string(6) "818477" } [18137] => array(6) { ["title"] => string(14) "Op Art Fashion" ["description"] => string(61) "Black and white and fabulous all over. Mixed media collage. " ["temp_media_id"] => string(5) "18137" ["media_hash"] => string(32) "84fa37c8caea140d20dc403582811f4d" ["media_type"] => string(5) "image" ["attachment_id"] => string(6) "818478" } [18138] => array(6) { ["title"] => string(6) "Hippie" ["description"] => string(78) "Youth movement or counterculture challenged the "norm". Mixed media collage. " ["temp_media_id"] => string(5) "18138" ["media_hash"] => string(32) "1a8f1de5f3c83c3f0dd68323682b6be4" ["media_type"] => string(5) "image" ["attachment_id"] => string(6) "818479" } } ["album"] => array(2) { ["title"] => string(29) "A Walk Through Time — 1960s" ["description"] => string(32) "A look back to the way we lived." } ["category_id"] => string(1) "9" ["album_id"] => string(1) "0" ["_xfResponseType"] => string(4) "json" ["_xfWithData"] => string(1) "1" ["_xfRequestUri"] => string(45) "/forums/media/categories/atcs-for-swaps.9/add" } }