Notice (8): Undefined variable: ub [APP/Plugin/Pwa/Lib/PwaListener.php, line 301]Code Context
// finally get the correct version number
$known = array('Version', $ub, 'other');
$u_agent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)'
$bname = 'Unknown'
$platform = 'Unknown'
$version = ''
PwaListener::getBrowser() - APP/Plugin/Pwa/Lib/PwaListener.php, line 301
PwaListener::doBeforeRenderContent() - APP/Plugin/Pwa/Lib/PwaListener.php, line 195
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 244
MooView::renderContent() - APP/View/MooView.php, line 697
MooListener::appendRender() - APP/Lib/MooListener.php, line 281
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 244
View::render() - CORE/Cake/View/View.php, line 474
MooView::render() - APP/View/MooView.php, line 807
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
AppController::render() - APP/Controller/AppController.php, line 1147
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 80
Notice (8): Undefined variable: ub [APP/Plugin/Pwa/Lib/PwaListener.php, line 313]Code Context //we will have two since we are not using 'other' argument yet
//see if version is before or after the name
if (strripos($u_agent,"Version") < strripos($u_agent,$ub)){
$u_agent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)'
$bname = 'Unknown'
$platform = 'Unknown'
$version = ''
$known = array(
(int) 0 => 'Version',
(int) 1 => null,
(int) 2 => 'other'
)
$pattern = '#(?<browser>Version||other)[/ ]+(?<version>[0-9.|a-zA-Z.]*)#'
$matches = array(
(int) 0 => array(
(int) 0 => '/5.0',
(int) 1 => ' AppleWebKit',
(int) 2 => '/537.36',
(int) 3 => '',
(int) 4 => ' like',
(int) 5 => ' Gecko',
(int) 6 => ' compatible',
(int) 7 => ' ClaudeBot',
(int) 8 => '/1.0',
(int) 9 => ''
),
'browser' => array(
(int) 0 => '',
(int) 1 => '',
(int) 2 => '',
(int) 3 => '',
(int) 4 => '',
(int) 5 => '',
(int) 6 => '',
(int) 7 => '',
(int) 8 => '',
(int) 9 => ''
),
(int) 1 => array(
(int) 0 => '',
(int) 1 => '',
(int) 2 => '',
(int) 3 => '',
(int) 4 => '',
(int) 5 => '',
(int) 6 => '',
(int) 7 => '',
(int) 8 => '',
(int) 9 => ''
),
'version' => array(
(int) 0 => '5.0',
(int) 1 => 'AppleWebKit',
(int) 2 => '537.36',
(int) 3 => '',
(int) 4 => 'like',
(int) 5 => 'Gecko',
(int) 6 => 'compatible',
(int) 7 => 'ClaudeBot',
(int) 8 => '1.0',
(int) 9 => ''
),
(int) 2 => array(
(int) 0 => '5.0',
(int) 1 => 'AppleWebKit',
(int) 2 => '537.36',
(int) 3 => '',
(int) 4 => 'like',
(int) 5 => 'Gecko',
(int) 6 => 'compatible',
(int) 7 => 'ClaudeBot',
(int) 8 => '1.0',
(int) 9 => ''
)
)
$i = (int) 10
PwaListener::getBrowser() - APP/Plugin/Pwa/Lib/PwaListener.php, line 313
PwaListener::doBeforeRenderContent() - APP/Plugin/Pwa/Lib/PwaListener.php, line 195
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 244
MooView::renderContent() - APP/View/MooView.php, line 697
MooListener::appendRender() - APP/Lib/MooListener.php, line 281
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 244
View::render() - CORE/Cake/View/View.php, line 474
MooView::render() - APP/View/MooView.php, line 807
Controller::render() - CORE/Cake/Controller/Controller.php, line 968
AppController::render() - APP/Controller/AppController.php, line 1147
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 200
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 80