• REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Fixed CAS Auto Feature CRON causes error

Nik

Member
CAS Premium
IMS Premium
RMS Premium
SC Premium
Sportsbook
CAS Version
2.3.6
XenForo Version
2.3.4
PHP Version
8.3
Database & Version
10.6
Are there any errors being throw?
Yes
Interestingly enough, started playing with CAS auto feature now and running the auto feature cron is producing this error.


EDIT: This appears to be caused when I select Exclusive on the CAS Options page under the auto feature section @Bob .

  • Error: Object of class XF\Options could not be converted to string
  • src/addons/XenAddons/CAS/Repository/Ad.php:945
  • Generated by: Nik
  • Feb 22, 2025 at 4:13 PM

Stack trace​

#0 src/addons/XenAddons/CAS/Cron/AutoFeature.php(13): XenAddons\CAS\Repository\Ad->autoFeatureAds()
#1 src/XF/Admin/Controller/CronEntryController.php(119): XenAddons\CAS\Cron\AutoFeature::runAutoFeatureAds(Array)
#2 src/XF/Mvc/Dispatcher.php(362): XF\Admin\Controller\CronEntryController->actionRun(Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:CronEntry', 'Run', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\CronEntryController), NULL)
#4 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\CronEntryController), NULL)
#5 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#6 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#7 src/XF.php(806): XF\App->run()
#8 admin.php(15): XF::runApp('XF\\Admin\\App')
#9 {main}

Request state​

array(4) {
["url"] => string(38) "/admin.php?cron/xaLdAutoFeatureAds/run"
["referrer"] => string(50) "https://mysite.com/admin.php?cron/"
"
["_GET"] => array(1) {
["cron/xaLdAutoFeatureAds/run"] => string(0) ""
}
["_POST"] => array(1) {
["_xfToken"] => string(8) "********"
}
}
 
Thank you for reporting this. This has been resolved in CAS 2.3.7

The issue was a rogue additional $ on the $options variable.

Selection_503.png

Note: All other addons that have auto featuring did not have this issue, just CAS.
 
  • Like
Reactions: Nik
Back
Top