cancel
Showing results for 
Search instead for 
Did you mean: 

Page with register form

SOLVED

Page with register form

I created one page in magento and i use this in code

{{block type="core/template" template="customer/form/register.phtml"}} but have errors

 

Fatal error: Call to a member function getFirstname() on null in D:\www\magento\app\design\frontend\base\default\template\customer\widget\name.phtml on line 68 Call Stack #TimeMemoryFunctionLocation 10.0008139448{main}( )..\index.php:0 20.0105326488Mage::run( )..\index.php:87 30.0262984072Mage_Core_Model_App->run( )..\Mage.php:684 41.17206313584Mage_Core_Controller_Varien_Front->dispatch( )..\App.php:354 51.20547180688Mage_Core_Controller_Varien_Router_Standard->match( )..\Front.php:172 61.21647513496Mage_Core_Controller_Varien_Action->dispatch( )..\Standard.php:250 71.43538937688Mage_Cms_PageController->viewAction( )..\Action.php:418 81.43658974984Mage_Cms_Helper_Page->renderPage( )..\PageController.php:45 91.43658975472Mage_Cms_Helper_Page->_renderPage( )..\Page.php:52 101.951413218328Mage_Core_Controller_Varien_Action->renderLayout( )..\Page.php:137 111.951713219240Mage_Core_Model_Layout->getOutput( )..\Action.php:390 121.951713219504Mage_Core_Block_Abstract->toHtml( )..\Layout.php:555 131.951913220064Mage_Core_Block_Template->_toHtml( )..\Abstract.php:919 141.951913220120Mage_Core_Block_Template->renderView( )..\Template.php:286 151.952913220552Mage_Core_Block_Template->fetchView( )..\Template.php:272 161.954413247952include( 'D:\www\magento\app\design\frontend\rwd\default\template\page\1column.phtml' )..\Template.php:241 172.205316194632Mage_Core_Block_Abstract->getChildHtml( )..\1column.phtml:55 182.205316194696Mage_Core_Block_Abstract->_getChildHtml( )..\Abstract.php:581 192.205316194696Mage_Core_Block_Abstract->toHtml( )..\Abstract.php:637 202.205616194840Mage_Core_Block_Text_List->_toHtml( )..\Abstract.php:919 212.215316195856Mage_Core_Block_Abstract->toHtml( )..\List.php:43 222.215616196000Mage_Page_Block_Html_Wrapper->_toHtml( )..\Abstract.php:919 232.215616196176Mage_Core_Block_Abstract->getChildHtml( )..\Wrapper.php:52 242.215616196608Mage_Core_Block_Abstract->_getChildHtml( )..\Abstract.php:577 252.215616196856Mage_Core_Block_Abstract->toHtml( )..\Abstract.php:637 262.215816197232Mage_Cms_Block_Page->_toHtml( )..\Abstract.php:919 272.220816333952Mage_Core_Model_Email_Template_Filter->filter( )..\Page.php:101 282.220816334024Varien_Filter_Template->filter( )..\Filter.php:548 292.220816335256call_user_func:{D:\www\magento\lib\Varien\Filter\Template.php:163} ( )..\Template.php:163 302.220916335360Mage_Core_Model_Email_Template_Filter->blockDirective( )..\Template.php:163 312.224716356856Mage_Core_Block_Abstract->toHtml( )..\Filter.php:196 322.225216357000Mage_Core_Block_Template->_toHtml( )..\Abstract.php:919 332.225216357000Mage_Core_Block_Template->renderView( )..\Template.php:286 342.226216357056Mage_Core_Block_Template->fetchView( )..\Template.php:272 352.228116430128include( 'D:\www\magento\app\design\frontend\base\default\template\customer\form\register.phtml' )..\Template.php:241 362.231616551216Mage_Core_Block_Abstract->toHtml( )..\register.phtml:49 372.231816551656Mage_Core_Block_Template->_toHtml( )..\Abstract.php:919 382.231816551712Mage_Core_Block_Template->renderView( )..\Template.php:286 392.232316552056Mage_Core_Block_Template->fetchView( )..\Template.php:272 402.234016611480include( 'D:\www\magento\app\design\frontend\base\default\template\customer\widget\name.phtml' )..\Template.php:241 

 Fow fix that ... ?

3 REPLIES

Re: Page with register form

Hello @dinbogdan 

 

Please try using this code,

{{block type="customer/form_register" name="customer_form_register" template="customer/form/register.phtml"}}

Let me know the result

Found something useful, please give "Kudos" or "Accept as Solution" for Token of Appreciation.
Free Magento Extensions : https://magecomp.com/free-magento-extensions.html

Re: Page with register form

@theMageComp thanks... 

But not look good, not look like register page... http://awesomescreenshot.com/07d4sh04a0

Re: Page with register form

Hello @dinbogdan 

 

There may some CSS tweaks you will need to do to make it look better.

Found something useful, please give "Kudos" or "Accept as Solution" for Token of Appreciation.
Free Magento Extensions : https://magecomp.com/free-magento-extensions.html