Content Title Edit History

Content Title Edit History 2.5.1

No permission to download
What addon are conflicting with this addon?

Unfortunately this addon is way more important to me than edit history. I'll notify Andy about it though.
 
Today i got this error:
  • XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'resource_title_last_edit_date' in 'field list'
  • src/XF/Db/AbstractStatement.php:228

Changed things in my forum in the last days: i add [XFA] RM Marketplace 4.3.2

I checked all used add-ons with a text-search and found in this add-on

class ResourceItem extends XFCP_ResourceItem implements IHistoryTrackedTitle
{
public function getTitleEditKeys()
{
return [
'edit_date' => 'resource_date',
'last_edit_date' => 'resource_title_last_edit_date',
'last_edit_user_id' => 'resource_title_last_edit_user_id',
'edit_count' => 'resource_title_edit_count',
'content_type' => 'resource_title',
'content_id' => 'resource_id',
'title' => 'title',
'editor' => 'XFRM:ResourceItem\Edit',
];
}
 
Installing XFRM should trigger this add-on to inject the require changes, did you have v2.2.0 of this add-on installed?
 
Hello @Xon,
we use your addon Title Edit History and @AndyB addon EditThreadTitle.
Unfortunately, your addon will not be noticed if the thread title is changed with AndyB addon.

If the title is changed by a mod, (with XF-Function) there is no problem, the history is there. If the user changes his title himself with andys addon, this history has also disappeared.

Is there a trigger that I have to / can trigger to trigger the event and tell your addon?
 
This sounds like the EditThreadTitle add-on is not using the Thread Edit service like it should be. As it is a paid add-on there is little I can easily do
 
This sounds like the EditThreadTitle add-on is not using the Thread Edit service like it should be. As it is a paid add-on there is little I can easily do

Yes we can ;D
I'll check your code and get back to you if I can't figure it out.
I only asked in the hope that there would be a simple procedure call to your addon to notify the "event" from the other addon.
 
I only asked in the hope that there would be a simple procedure call to your addon to notify the "event" from the other addon.
The most simple solution is to ensure the code uses the \XF\Service\Thread\Editor class as intended (all the permission checks are in the caller anyway).
 
Hey @Xon

XF Support directed me to you for an error we are experiencing after installing XFMG; When attempting to add new content to a gallery we get the following:

Code:
XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'media_title_last_edit_date' in 'field list' in src/XF/Db/AbstractStatement.php at line 230
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 198
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 41
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 56
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 220
XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1514
XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1246
XF\Mvc\Entity\Entity->save() in src/addons/XFMG/Service/Media/Creator.php at line 233
XFMG\Service\Media\Creator->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 42
XFMG\Service\Media\Creator->save() in src/addons/XFMG/Pub/Controller/Media.php at line 884
XFMG\Pub\Controller\Media->actionSaveMedia() in src/XF/Mvc/Dispatcher.php at line 352
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2351
XF\App->run() in src/XF.php at line 517
XF::runApp() in index.php at line 20

I rebuilt the addon and the error disappeared. Thought it was worth reporting.
 
This add-on is supposed to add the columns when it detects XFMG being installed, build a rebuild can trigger the columns to be added. Without knowing details of the install order or if this add-on was disabled when XFMG was installed troubleshooting is next to impossible.
 
This add-on is supposed to add the columns when it detects XFMG being installed, build a rebuild can trigger the columns to be added. Without knowing details of the install order or if this add-on was disabled when XFMG was installed troubleshooting is next to impossible.
Just additional details for you:
  • XFMG was installed significantly longer after Content Title Edit History, and was active at the time of install. Version 2.3.0.
  • Latest XFMG and XF were also installed.
Issue is resolved for me, and while I do understand troubleshooting said issue could be difficult, I am just providing the information I have and am reporting it incase others have the same issue in the future.
 
Back
Top Bottom