hobbymachinist
Customer
Tried to create PM Threshold, got error.
ErrorException: [E_WARNING] Illegal offset type in isset or empty src/addons/DBTech/Donate/Application/AbstractCache.php:158
Generated by: Hobby Mac Dec 31, 2017 at 10:58 AM
Stack trace
#0 src/addons/DBTech/Donate/Application/AbstractCache.php(158): XF::handlePhpError(2, 'Illegal offset ...', '/home/hobbymac/...', 158, Array)
#1 src/addons/DBTech/Donate/Application/EntityManager.php(88): DBTech\Donate\Application\AbstractCache->get('threshold', Array)
#2 src/addons/DBTech/Donate/ActionAbstract.php(169): DBTech\Donate\Application\EntityManager->findOne('DBTech\\Donate:T...', Array, NULL)
#3 src/addons/DBTech/Donate/ActionAdmin/Threshold.php(263): DBTech\Donate\ActionAbstract->assertRecordExists('DBTech\\Donate:T...', Array, NULL, NULL)
#4 src/addons/DBTech/Donate/ActionAdmin/Threshold.php(161): DBTech\Donate\ActionAdmin\Threshold->assertThresholdExists(Array)
#5 src/addons/DBTech/Donate/Application/Core.php(173): DBTech\Donate\ActionAdmin\Threshold->actionUpdate()
#6 src/addons/DBTech/Donate/Admin/Controller/Route.php(39): DBTech\Donate\Application\Core->runAction('threshold')
#7 src/XF/Mvc/Dispatcher.php(249): DBTech\Donate\Admin\Controller\Route->actionIndex(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('DBTech\\Donate:R...', 'index', 'json', Object(XF\Mvc\ParameterBag), 'dbtech_donate', Object(DBTech\Donate\Admin\Controller\Route), NULL)
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 admin.php(13): XF::runApp('XF\\Admin\\App')
#13 {main}
Request state
array(4) {
["url"] => string(34) "/admin.php?dbtech-donate/threshold"
["referrer"] => string(79) "https://www.hobby-machinist.com/admin.php?dbtech-donate/threshold&action=modify"
["_GET"] => array(1) {
["dbtech-donate/threshold"] => string(0) ""
}
["_POST"] => array(6) {
["action"] => string(6) "update"
["threshold"] => array(6) {
["title"] => string(17) "Example Threshold"
["description"] => string(20) "Example description."
["active"] => string(1) "1"
["minimum_amount"] => string(2) "25"
["pm_title"] => string(70) "Thank you for your donation of {amount_primary] to The Hobby-Machinist"
["pm_message"] => string(365) "Dear {username},
ErrorException: [E_WARNING] Illegal offset type in isset or empty src/addons/DBTech/Donate/Application/AbstractCache.php:158
Generated by: Hobby Mac Dec 31, 2017 at 10:58 AM
Stack trace
#0 src/addons/DBTech/Donate/Application/AbstractCache.php(158): XF::handlePhpError(2, 'Illegal offset ...', '/home/hobbymac/...', 158, Array)
#1 src/addons/DBTech/Donate/Application/EntityManager.php(88): DBTech\Donate\Application\AbstractCache->get('threshold', Array)
#2 src/addons/DBTech/Donate/ActionAbstract.php(169): DBTech\Donate\Application\EntityManager->findOne('DBTech\\Donate:T...', Array, NULL)
#3 src/addons/DBTech/Donate/ActionAdmin/Threshold.php(263): DBTech\Donate\ActionAbstract->assertRecordExists('DBTech\\Donate:T...', Array, NULL, NULL)
#4 src/addons/DBTech/Donate/ActionAdmin/Threshold.php(161): DBTech\Donate\ActionAdmin\Threshold->assertThresholdExists(Array)
#5 src/addons/DBTech/Donate/Application/Core.php(173): DBTech\Donate\ActionAdmin\Threshold->actionUpdate()
#6 src/addons/DBTech/Donate/Admin/Controller/Route.php(39): DBTech\Donate\Application\Core->runAction('threshold')
#7 src/XF/Mvc/Dispatcher.php(249): DBTech\Donate\Admin\Controller\Route->actionIndex(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(89): XF\Mvc\Dispatcher->dispatchClass('DBTech\\Donate:R...', 'index', 'json', Object(XF\Mvc\ParameterBag), 'dbtech_donate', Object(DBTech\Donate\Admin\Controller\Route), NULL)
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1880): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 admin.php(13): XF::runApp('XF\\Admin\\App')
#13 {main}
Request state
array(4) {
["url"] => string(34) "/admin.php?dbtech-donate/threshold"
["referrer"] => string(79) "https://www.hobby-machinist.com/admin.php?dbtech-donate/threshold&action=modify"
["_GET"] => array(1) {
["dbtech-donate/threshold"] => string(0) ""
}
["_POST"] => array(6) {
["action"] => string(6) "update"
["threshold"] => array(6) {
["title"] => string(17) "Example Threshold"
["description"] => string(20) "Example description."
["active"] => string(1) "1"
["minimum_amount"] => string(2) "25"
["pm_title"] => string(70) "Thank you for your donation of {amount_primary] to The Hobby-Machinist"
["pm_message"] => string(365) "Dear {username},