truonglv
Well-known member
- Affected version
- Latest
In the class extension form when i have omitted the field "Extension class name". I faced this error:
Expect error: Please enter a valid class extension or something error.
- [E_NOTICE] Uninitialized string offset: 0
- src/vendor/composer/ClassLoader.php:375
PHP:
#0 src/vendor/composer/ClassLoader.php(375): XF::handlePhpError(8, '[E_NOTICE] Unin...', '/var/www/html/x...', 375, Array)
#1 src/vendor/composer/ClassLoader.php(351): Composer\Autoload\ClassLoader->findFileWithExtension('', '.php')
#2 src/XF/Entity/ClassExtension.php(35): Composer\Autoload\ClassLoader->findFile('')
#3 src/XF/Mvc/Entity/Entity.php(716): XF\Entity\ClassExtension->verifyToClass('', 'to_class', 5, Array)
#4 src/XF/Mvc/Entity/Entity.php(570): XF\Mvc\Entity\Entity->_verifyValueCustom('', 'to_class', 5, Array)
#5 src/XF/Mvc/Entity/Entity.php(674): XF\Mvc\Entity\Entity->set('to_class', '', Array)
#6 src/XF/Mvc/FormAction.php(34): XF\Mvc\Entity\Entity->bulkSet(Array)
#7 src/XF/Mvc/FormAction.php(136): XF\Mvc\FormAction->XF\Mvc\{closure}(Object(XF\Mvc\FormAction))
#8 src/XF/Admin/Controller/ClassExtension.php(82): XF\Mvc\FormAction->run()
#9 src/XF/Mvc/Dispatcher.php(249): XF\Admin\Controller\ClassExtension->actionSave(Object(XF\Mvc\ParameterBag))
#10 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:ClassExtensi...', 'Save', 'json', Object(XF\Mvc\ParameterBag), 'classExtensions', Object(XF\Admin\Controller\ClassExtension), NULL)
#11 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#13 src/XF.php(328): XF\App->run()
#14 admin.php(13): XF::runApp('XF\\Admin\\App')
#15 {main}
Expect error: Please enter a valid class extension or something error.