• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Server error logs

Affected version
2.0.0

Nirjonadda

Well-known member
#1
I have found Server error logs in my admin CP.

Code:
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '12700-password' for key 'PRIMARY' src/XF/Db/AbstractStatement.php:212

Generated by: Unknown account Nov 30, 2017 at 10:39 PM

Stack trace

INSERT  INTO xf_user_confirmation (`user_id`, `confirmation_type`, `confirmation_key`, `confirmation_date`) VALUES (?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(174): XF\Db\AbstractStatement->getException('MySQL query err...', 1062, '23000')
#1 src/XF/Db/Mysqli/Statement.php(69): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1062, '23000')
#2 src/XF/Db/AbstractAdapter.php(69): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(145): XF\Db\AbstractAdapter->query('INSERT  INTO xf...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1381): XF\Db\AbstractAdapter->insert('xf_user_confirm...', Array)
#5 src/XF/Mvc/Entity/Entity.php(1113): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Service/User/AbstractConfirmationService.php(61): XF\Mvc\Entity\Entity->save()
#7 src/XF/Pub/Controller/LostPassword.php(45): XF\Service\User\AbstractConfirmationService->triggerConfirmation()
#8 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\LostPassword->actionIndex(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:LostPassword', 'Index', 'json', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\LostPassword), NULL)
#10 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#11 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#12 src/XF.php(328): XF\App->run()
#13 index.php(13): XF::runApp('XF\\Pub\\App')
#14 {main}

Request state

array(4) {
  ["url"] => string(15) "/lost-password/"
  ["referrer"] => string(38) "/login/login"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(7) {
    ["email"] => string(21) "@gmail.com"
    ["captcha_question_answer"] => string(5) "Dhaka"
    ["captcha_question_hash"] => string(40) "7bf41f41f6adf40e6831c48cfad525e7ed587b32"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(12) "/login/login"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
Code:
ErrorException: [E_WARNING] filesize(): stat failed for <path> src/XF/Service/ImageProxy.php:174

Generated by: Unknown account Nov 30, 2017 at 7:46 PM

Stack trace

#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] fil...', '/home/nadda/pub...', 174, Array)
#1 src/XF/Service/ImageProxy.php(174): filesize('/home/nadda/pub...')
#2 src/XF/Service/ImageProxy.php(104): XF\Service\ImageProxy->fetchImageDataFromUrl('http://s11.post...')
#3 src/XF/Service/ImageProxy.php(39): XF\Service\ImageProxy->refetchImage(Object(XF\Entity\ImageProxy))
#4 src/XF/Proxy/Controller.php(108): XF\Service\ImageProxy->getImage('http://s11.post...')
#5 proxy.php(29): XF\Proxy\Controller->outputImage('http://s11.post...', '9802a1f9053b893...')
#6 {main}

Request state

array(4) {
  ["url"] => string(120) "/proxy.php?image=<url>&hash=9802a1f9053b89370adfdb13e2e75f42"
  ["referrer"] => string(52) "/threads/gimmy-kimmy.5976/"
  ["_GET"] => array(2) {
    ["image"] => string(55) "<url>"
    ["hash"] => string(32) "9802a1f9053b89370adfdb13e2e75f42"
  }
  ["_POST"] => array(0) {
  }
}
 
Last edited by a moderator:

Nirjonadda

Well-known member
#2
One more error log:

Code:
InvalidArgumentException: Accessed unknown getter 'Promotions' on XF:Post[264546] src/XF/Mvc/Entity/Entity.php:179

Generated by: Unknown account Dec 2, 2017 at 6:07 AM

Stack trace

#0 src/XF/Mvc/Entity/Entity.php(97): XF\Mvc\Entity\Entity->get('Promotions')
#1 internal_data/code_cache/templates/l1/s22/public/post_macros.php(374): XF\Mvc\Entity\Entity->offsetGet('Promotions')
#2 src/XF/Template/Templater.php(643): XF\Template\Templater->{closure}(Object(DBTech\Shop\XF\Template\Templater), Array, Array)
#3 internal_data/code_cache/templates/l1/s22/public/thread_view.php(516): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#4 src/XF/Template/Templater.php(1230): XF\Template\Templater->{closure}(Object(DBTech\Shop\XF\Template\Templater), Array)
#5 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#6 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#7 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#8 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#10 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 index.php(13): XF::runApp('XF\\Pub\\App')
#13 {main}

Request state

array(4) {
  ["url"] => string(33) "/threads/amar-ma-er-ghotona.5752/"
  ["referrer"] => string(58) "/forums/cest-choti.112/page-21"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 

Nirjonadda

Well-known member
#3
One more error log.

Code:
Server error log

    XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '4-0' for key 'tag_id_user_id' src/XF/Db/AbstractStatement.php:212

    Generated by: Unknown account Dec 8, 2017 at 10:36 PM

Stack trace

INSERT  INTO xf_tag_result_cache (`tag_id`, `user_id`, `expiry_date`, `results`, `result_cache_id`, `cache_date`) VALUES (?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(174): XF\Db\AbstractStatement->getException('MySQL query err...', 1062, '23000')
#1 src/XF/Db/Mysqli/Statement.php(69): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1062, '23000')
#2 src/XF/Db/AbstractAdapter.php(69): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(145): XF\Db\AbstractAdapter->query('INSERT  INTO xf...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1381): XF\Db\AbstractAdapter->insert('xf_tag_result_c...', Array)
#5 src/XF/Mvc/Entity/Entity.php(1113): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Pub/Controller/Tag.php(147): XF\Mvc\Entity\Entity->save()
#7 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Tag->actionTag(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Tag', 'Tag', 'html', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Tag), Object(XF\Mvc\Reply\Reroute))
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 index.php(13): XF::runApp('XF\\Pub\\App')
#13 {main}

Request state

array(4) {
  ["url"] => string(8) "/tags/4/"
  ["referrer"] => string(27) "https://googleweblight.com/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
#4
One more server error log.

Code:
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '76-0' for key 'tag_id_user_id' src/XF/Db/AbstractStatement.php:212

Generated by: Unknown account Dec 9, 2017 at 11:40 AM

Stack trace

INSERT  INTO xf_tag_result_cache (`tag_id`, `user_id`, `expiry_date`, `results`, `result_cache_id`, `cache_date`) VALUES (?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(174): XF\Db\AbstractStatement->getException('MySQL query err...', 1062, '23000')
#1 src/XF/Db/Mysqli/Statement.php(69): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1062, '23000')
#2 src/XF/Db/AbstractAdapter.php(69): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(145): XF\Db\AbstractAdapter->query('INSERT  INTO xf...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1381): XF\Db\AbstractAdapter->insert('xf_tag_result_c...', Array)
#5 src/XF/Mvc/Entity/Entity.php(1113): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Pub/Controller/Tag.php(147): XF\Mvc\Entity\Entity->save()
#7 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Tag->actionTag(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Tag', 'Tag', 'html', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Tag), Object(XF\Mvc\Reply\Reroute))
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 index.php(13): XF::runApp('XF\\Pub\\App')
#13 {main}

Request state

array(4) {
  ["url"] => string(9) "/tags/76/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
#5
one error log.

Code:
TypeError: Argument 1 passed to XF\Template\Templater::setMediaSites() must be of the type array, boolean given, called in /home/nadda/public_html/src/XF/App.php on line 1446 src/XF/Template/Templater.php:383

Generated by: Unknown account Dec 9, 2017 at 11:27 PM

Stack trace

#0 src/XF/App.php(1446): XF\Template\Templater->setMediaSites(false)
#1 src/XF/App.php(1078): XF\App->setupTemplaterObject(Object(XF\Container), 'ThemeHouse\\Reac...')
#2 src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#3 src/XF/App.php(2640): XF\Container->offsetGet('templater')
#4 src/XF/Pub/App.php(348): XF\App->templater()
#5 src/XF/Mvc/Dispatcher.php(280): XF\Pub\App->preRender(Object(XF\Mvc\Reply\View), 'html')
#6 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#7 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#8 src/XF.php(328): XF\App->run()
#9 index.php(13): XF::runApp('XF\\Pub\\App')
#10 {main}

Request state

array(4) {
  ["url"] => string(1) "/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 

Nirjonadda

Well-known member
#6
More error log.

Code:
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '157-0' for key 'tag_id_user_id' src/XF/Db/AbstractStatement.php:212

Generated by: Unknown account Dec 10, 2017 at 12:27 PM

Stack trace

INSERT  INTO xf_tag_result_cache (`tag_id`, `user_id`, `expiry_date`, `results`, `result_cache_id`, `cache_date`) VALUES (?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(174): XF\Db\AbstractStatement->getException('MySQL query err...', 1062, '23000')
#1 src/XF/Db/Mysqli/Statement.php(69): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1062, '23000')
#2 src/XF/Db/AbstractAdapter.php(69): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(145): XF\Db\AbstractAdapter->query('INSERT  INTO xf...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1381): XF\Db\AbstractAdapter->insert('xf_tag_result_c...', Array)
#5 src/XF/Mvc/Entity/Entity.php(1113): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Pub/Controller/Tag.php(147): XF\Mvc\Entity\Entity->save()
#7 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Tag->actionTag(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Tag', 'Tag', 'html', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Tag), Object(XF\Mvc\Reply\Reroute))
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 index.php(13): XF::runApp('XF\\Pub\\App')
#13 {main}

Request state

array(4) {
  ["url"] => string(10) "/tags/157/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
Code:
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '76-0' for key 'tag_id_user_id' src/XF/Db/AbstractStatement.php:212

Generated by: Unknown account Dec 10, 2017 at 11:05 AM

Stack trace

INSERT  INTO xf_tag_result_cache (`tag_id`, `user_id`, `expiry_date`, `results`, `result_cache_id`, `cache_date`) VALUES (?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(174): XF\Db\AbstractStatement->getException('MySQL query err...', 1062, '23000')
#1 src/XF/Db/Mysqli/Statement.php(69): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1062, '23000')
#2 src/XF/Db/AbstractAdapter.php(69): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(145): XF\Db\AbstractAdapter->query('INSERT  INTO xf...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1381): XF\Db\AbstractAdapter->insert('xf_tag_result_c...', Array)
#5 src/XF/Mvc/Entity/Entity.php(1113): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Pub/Controller/Tag.php(147): XF\Mvc\Entity\Entity->save()
#7 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Tag->actionTag(Object(XF\Mvc\ParameterBag))
#8 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Tag', 'Tag', 'html', Object(XF\Mvc\ParameterBag), '', Object(XF\Pub\Controller\Tag), Object(XF\Mvc\Reply\Reroute))
#9 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#11 src/XF.php(328): XF\App->run()
#12 index.php(13): XF::runApp('XF\\Pub\\App')
#13 {main}

Request state

array(4) {
  ["url"] => string(9) "/tags/76/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
#9
Sure...here you go:

Code:
TypeError: Argument 1 passed to XF\Template\Templater::setUserBanners() must be of the type array, boolean given, called in /var/sites/y/yellowsforum.co.uk/public_html/src/XF/App.php on line 1449 src/XF/Template/Templater.php:397
Generated by: Unknown account Dec 15, 2017 at 7:46 AM

#0 src/XF/App.php(1449): XF\Template\Templater->setUserBanners(false, Array)
#1 src/XF/App.php(1078): XF\App->setupTemplaterObject(Object(XF\Container), 'XF\\Template\\Tem...')
#2 src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#3 src/XF/App.php(2640): XF\Container->offsetGet('templater')
#4 src/XF/Pub/App.php(348): XF\App->templater()
#5 src/XF/Mvc/Dispatcher.php(280): XF\Pub\App->preRender(Object(XF\Mvc\Reply\View), 'html')
#6 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#7 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#8 src/XF.php(328): XF\App->run()
#9 index.php(13): XF::runApp('XF\\Pub\\App')
#10 {main}

array(4) {
  ["url"] => string(23) "/forums/uk-football.10/"
  ["referrer"] => string(27) "https://yellowsforum.co.uk/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
or

Code:
TypeError: Argument 1 passed to XF\Template\Templater::setGroupStyles() must be of the type array, boolean given, called in /var/sites/y/yellowsforum.co.uk/public_html/src/XF/App.php on line 1450 src/XF/Template/Templater.php:406

#0 src/XF/App.php(1450): XF\Template\Templater->setGroupStyles(false)
#1 src/XF/App.php(1078): XF\App->setupTemplaterObject(Object(XF\Container), 'XF\\Template\\Tem...')
#2 src/XF/Container.php(28): XF\App->XF\{closure}(Object(XF\Container))
#3 src/XF/App.php(2640): XF\Container->offsetGet('templater')
#4 src/XF/Pub/App.php(348): XF\App->templater()
#5 src/XF/Mvc/Dispatcher.php(280): XF\Pub\App->preRender(Object(XF\Mvc\Reply\Error), 'html')
#6 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Error), 'html')
#7 src/XF/App.php(1879): XF\Mvc\Dispatcher->run()
#8 src/XF.php(328): XF\App->run()
#9 index.php(13): XF::runApp('XF\\Pub\\App')
#10 {main}

array(4) {
  ["url"] => string(27) "/thread/26505/james-roberts"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}