Already sent.That is bizarre. Can you PM me the contents of the file 'S.1,L.1,conversation_view.php' ?
How to fix this for now?Yeah, Like Data isn't deleted when the add-on is uninstalled to prevent accidently deleting data if XF supports conversation Likes since I picked the same field names they use.
Thanks.Already sent.
How to fix this for now?
I want remove this addon for now as it is not being use much.
Thanks!
ALTER TABLE `xf_conversation_message` DROP `likes`;
ALTER TABLE `xf_conversation_message` DROP `like_users`;
ALTER TABLE `xf_conversation_message` DROP ` edit_count`;
ALTER TABLE `xf_conversation_message` DROP` last_edit_date`;
ALTER TABLE `xf_conversation_message` DROP `last_edit_user_id`;
ALTER TABLE `xf_conversation_master` DROP `conversation_edit_count`,
ALTER TABLE `xf_conversation_master` DROP `conversation_last_edit_date`,
ALTER TABLE `xf_conversation_master` DROP `conversation_last_edit_user_id`;
But how to fix this?It doesn't really make much of a difference to remove them if you plan on re-enabling my add-on in the future.
Thanks for this, seems solved now after I run this query.This should fully remove the database changes:
ALTER TABLE `xf_conversation_message` DROP `likes`;
ALTER TABLE `xf_conversation_message` DROP `like_users`;
ALTER TABLE `xf_conversation_message` DROP `edit_count`;
ALTER TABLE `xf_conversation_message` DROP `last_edit_date`;
ALTER TABLE `xf_conversation_message` DROP `last_edit_user_id`;
ALTER TABLE `xf_conversation_master` DROP `conversation_edit_count`;
ALTER TABLE `xf_conversation_master` DROP `conversation_last_edit_date`;
ALTER TABLE `xf_conversation_master` DROP `conversation_last_edit_user_id`;
- Preventing the following error during the install process for members viewing conversations:
- An exception occurred: Argument 4 passed to XenForo_Template_Helper_Core::helperLikesHtml() must be of the type array, null given
v1.2.0 adds edit support, which requires schema changes which you may wish to-do manually for large forums.Do you still run the database edits in latest update if add-on is already installed and just updating to latest version?
v1.2.0 adds edit support, which requires schema changes which you may wish to-do manually for large forums.
v1.2.1 doesn't make any schema changes.
Yup, it'll be fine. It is just when you have millions of conversation messages it takes a little while to separately add 3 columns.Right, sorry, didn't see v1.2.1 released yet when I was posting. So it going onto a small board, the add-on itself will run the edit not requiring me to do it manually?
I tried again now, Install then like some convo then uninstall the addon.I even try to flush Redis.
redis-cli FLUSHALL
Still receiving that error on conversation message.
Code:Server Error Log Error Info TypeError: Argument 4 passed to XenForo_Template_Helper_Core::helperLikesHtml() must be of the type array, null given, called in /library/XenForo/Template/Helper/Core.php on line 853 - library/XenForo/Template/Helper/Core.php:411 Generated By: Draft, A moment ago Stack Trace #0 /library/XenForo/Template/Helper/Core.php(853): XenForo_Template_Helper_Core::helperLikesHtml(1, NULL, NULL, NULL) #1 /internal_data/templates/S.1,L.1,conversation_view.php(1473): XenForo_Template_Helper_Core::callHelper('likeshtml', Array) #2 /library/XenForo/Template/Abstract.php(260): include('/home/nginx/dom...') #3 /library/XenForo/Template/Abstract.php(191): XenForo_Template_Abstract->_renderInternal('/home/nginx/dom...', Array) #4 /library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render() #5 /library/XenForo/ViewRenderer/HtmlPublic.php(123): XenForo_Template_Public->render() #6 /library/XenForo/FrontController.php(637): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array) #7 /library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array) #8 /index.php(13): XenForo_FrontController->run() #9 {main} Request State array(3) { ["url"] => string(56) "http://www.phcorner.net/conversations/boss-draft.248289/" ["_GET"] => array(1) { ["/conversations/boss-draft_248289/"] => string(0) "" } ["_POST"] => array(0) { } }
Is it still causing the helperLikesHtml error after uninstalling? If so please set the php option 'opcache.revalidate_freq' to zero, restart php-fpm. Then use the "rebuild caches" option under 'Add-ons' that my alpha version of Addon Installer provides.I tried again now, Install then like some convo then uninstall the addon.
And still I'm receiving an error.
This add-on doesn't look like it is conflicting when I install it, might be another one.Might be conflict with: https://xenforo.com/community/resources/icewind-conversation-tools.2882/ ?
Ah, need to purge the old liked content from another table:And I've seen conversation message with unlike button, even if I still didn't like it.
Looks like old like data is not properly removed or sync with my account after several install/un-install.
delete
from xf_liked_content
where content_type = 'conversation_message';
- Update schema to prevent errors view conversations when the add-on is disabled or uninstalled.
- Argument 4 passed to XenForo_Template_Helper_Core::helperLikesHtml() must be of the type array, null given
- Remove all schema changes and data created by the add-on on uninstall.
- When viewing a conversation, the conversation start date is now correctly displayed under the title.
We use essential cookies to make this site work, and optional cookies to enhance your experience.