Status
Not open for further replies.

semprot

Customer
As in title.

PHP version : 7.*

Error message :

Code:
Illegal string offset 'enabled'
XenForo_Application::handlePhpError() in DBTech/Optimise/XenForo/Model/DataRegistry.php at line 114
DBTech_Optimise_XenForo_Model_DataRegistry->set() in XenForo/Model/CodeEvent.php at line 421
XenForo_Model_CodeEvent->rebuildEventListenerCache() in XenForo/Model/AddOn.php at line 515
XenForo_Model_AddOn->rebuildAddOnCachesAfterActiveSwitch() in XenForo/DataWriter/AddOn.php at line 164
XenForo_DataWriter_AddOn->_postSave() in XenForo/DataWriter.php at line 1423
XenForo_DataWriter->save() in XenForo/ControllerAdmin/Abstract.php at line 134
XenForo_ControllerAdmin_Abstract->_getToggleResponse() in XenForo/ControllerAdmin/AddOn.php at line 320
XenForo_ControllerAdmin_AddOn->actionToggle() in XenForo/FrontController.php at line 351
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/XXXXXXX/public_html/admin.php at line 13
 
Last edited:
Because of that error, I did uninstallation of 3.1.0, reupload new files of 3.2.0, reinstall the XML of 3.2.0, and i get new error :

Code:
ErrorException: Missing argument 3 for DBTech_Optimise_XenForo_Model_Forum::_getCacheEntryName(), called in /home/XXXXXXX/public_html/library/DBTech/Optimise/XenForo/Model/Forum.php on line 27 and defined - library/DBTech/Optimise/XenForo/Model/Forum.php:83
Generated By: Unknown Account, 1 menit lalu
Stack Trace
#0 /home/XXXXXXX/public_html/library/DBTech/Optimise/XenForo/Model/Forum.php(83): XenForo_Application::handlePhpError(2, 'Missing argumen...', '/home/XXXXX/pub...', 83, Array)
#1 /home/XXXXXXX/public_html/library/DBTech/Optimise/XenForo/Model/Forum.php(27): DBTech_Optimise_XenForo_Model_Forum->_getCacheEntryName('forum.139', Array)
#2 /home/XXXXXXX/public_html/library/XenForo/ControllerHelper/ForumThreadPost.php(177): DBTech_Optimise_XenForo_Model_Forum->getForumById(139, Array)
#3 /home/XXXXXXX/public_html/library/XenForo/ControllerHelper/ForumThreadPost.php(38): XenForo_ControllerHelper_ForumThreadPost->getForumOrError(139, Array)
#4 /home/XXXXXXX/public_html/library/XenForo/ControllerHelper/ForumThreadPost.php(77): XenForo_ControllerHelper_ForumThreadPost->assertForumValidAndViewable(139, Array)
#5 /home/XXXXXXX/public_html/library/XenForo/ControllerPublic/Thread.php(32): XenForo_ControllerHelper_ForumThreadPost->assertThreadValidAndViewable(1162723, Array, Array)
#6 /home/XXXXXXX/public_html/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Thread->actionIndex()
#7 /home/XXXXXXX/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#8 /home/XXXXXXX/public_html/index.php(13): XenForo_FrontController->run()
#9 {main}

Code:
library/DBTech/Optimise/XenForo/Model/Forum.php

Line 27 :
PHP:
$key = $this->_getCacheEntryName('forum.' . $id, $joinOptions);

Line 83 :
PHP:
protected function _getCacheEntryName($prefix, array $info, $suffix)

You can see on line 27, the "$suffix" argument is missing.
 
Last edited:
Hotfixed Forum.php
PHP:
protected function _getCacheEntryName($prefix, array $info, $suffix = '')
 
Hotfixed Forum.php
PHP:
protected function _getCacheEntryName($prefix, array $info, $suffix = '')
Thank you, in DonationLog.php, i see this

PHP:
protected function _getCacheEntryName($info, $suffix)

Should we change it to this too?
PHP:
protected function _getCacheEntryName($info, $suffix = '')
 
Hello semprot,

This ticket has now been closed with the status Fixed.

We hope your issue or question has been addressed to your satisfaction. If not, please feel free to re-open it by clicking this link.

If you have any further issues or questions, please feel free to start a new support ticket via the button at the top of every page.

Thank you!
 
Status
Not open for further replies.

Legacy DragonByte Optimise

XenForo 1.5.3+
Seller
DragonByte Technologies
Release date
Last update
Total downloads
258
Customer rating
0.00 star(s) 0 ratings
Back
Top