Fatal error: Uncaught exception 'Symfony\Component\Routing \Exception\ MissingMandatory ParametersException'

สำหรับผู้ที่ เริ่มต้น Programming - PHP มีอะไร แนะนำ หรือข้อสงสัยต้องบอร์ด นี้ คนที่มีความรู้ แบ่งปันคนอื่นบ้างนะ ปัญหาการเขียนโปรแกรม แบบ OOP Session Cookies php network

Moderators: mindphp, ผู้ดูแลกระดาน

User avatar
thatsawan
PHP VIP Members
PHP VIP Members
Posts: 27218
Joined: 31/03/2014 10:02 am
Contact:

Fatal error: Uncaught exception 'Symfony\Component\Routing \Exception\ MissingMandatory ParametersException'

Post by thatsawan »

Fatal error: Uncaught exception 'Symfony\Component\Routing\Exception\MissingMandatoryParametersException' with message 'Some mandatory parameters are missing ("action") to generate a URL for route "xxxx_m_register_facebook_controller".' in /opt/lampp/htdocs/phpbb5/vendor/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php:155 Stack trace: #0 /opt/lampp/htdocs/phpbb5/vendor/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php(140): Symfony\Component\Routing\Generator\UrlGenerator->doGenerate(Array, Array, Array, Array, Array, 'xxxx_m_regis...', false, Array) #1 /opt/lampp/htdocs/phpbb5/phpbb/controller/helper.php(173): Symfony\Component\Routing\Generator\UrlGenerator->generate('xxxxx_m_regis...', Array, false) #2 /opt/lampp/htdocs/phpbb5/ext/xxxx/m_register_facebook/event/listener.php(36): phpbb\controller\helper->route('xxxx_m_regis...') #3 [internal function]: xxxxx\m_register_facebook\event\listener->load_language_on_setup(Object(phpbb\event\data)) #4 /opt/lampp/htdocs/ph in /opt/lampp/htdocs/phpbb5/vendor/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php on line 155
User avatar
thatsawan
PHP VIP Members
PHP VIP Members
Posts: 27218
Joined: 31/03/2014 10:02 am
Contact:

Re: Fatal error: Uncaught exception 'Symfony\Component\Routing\Exception\MissingMandatoryParametersException'

Post by thatsawan »

เจอปัญหามาจาก listener.php

Code: Select all

$this->template->assign_vars(array(
                 'AJAX_URL' => $this->helper->route('xxxx_m_register_facebook_controller', array('action' => 'log_in')),
                 'LODE_PAGE' => $this->helper->route('xxxx_m_register_facebook_controller'),
              )); 
User avatar
thatsawan
PHP VIP Members
PHP VIP Members
Posts: 27218
Joined: 31/03/2014 10:02 am
Contact:

Re: Fatal error: Uncaught exception 'Symfony\Component\Routing\Exception\MissingMandatoryParametersException'

Post by thatsawan »

ได้เเล้วค่ะ

Code: Select all

               $this->template->assign_vars(array(
                 'AJAX_URL' => $this->helper->route('mindphp_m_register_facebook_controller', array('action' => 'log_in')),
                 'LODE_PAGE' => append_sid($this->root_path . 'app.' . $this->php_ext .'/lode_homepage'),
              )); 
Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Programming - PHP”

Who is online

Users browsing this forum: No registered users and 22 guests