We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

TypeError: Cannot call method 'focus' of null [Answered] | Forum

Nirmalya Ghosh
Nirmalya Ghosh May 28 '13
Changed the theme.didny resolve the issue
dave Leader
dave May 28 '13

Also looks like your big globe image is named

 

404E0816-0CC7-4616-B238-F136E7DC2B21.jpg

 

You might consider changing that name to a shorter name, im not sure if the table field config can handle that long of a name, i am getting a  "image currupt or truncated" error. 

dave Leader
dave May 28 '13

Ok i ask about facebook because im showing also some stuff in debug for that as well.   I think you can put your instant chat back online now.  Im pretty sure its not that...

 

You might try to deactivate your FB connect and see if that works, there is something that is not loading correctly and the value is null and its not supose to be null.   Im kind of scratching my head here too.   Try the FB deal and let me know...

The Forum post is edited by dave May 28 '13
Nirmalya Ghosh
Nirmalya Ghosh May 29 '13
No, didn't work.
dave Leader
dave May 29 '13

dang, im lost on this one.   Aliia, Den, Daisy, or Matt, any ideas on this one. 

Alia Team
Alia May 29 '13
Nirmalya Ghosh, tried to reproduce the issue by loging in on your site. No errors.
Alia Team
Alia May 29 '13
Got it, error is on join form.
dave Leader
dave May 29 '13
Aliia is it a user created issue or a oxwall issue.
Alia Team
Alia May 29 '13
Nirmalya, did you edit source code of join form? Like removing account types from there?
dave Leader
dave May 29 '13

@Aliia  WOW good eye, i did not even notice the account type was missing, yep thats it, thats why its bombing on element empty and focus.    Ok i wanted to know because i need to del my bug report thread on this. 

 

GOOD FIND.. youll have to teach me how you found that one day :)   i was tempted to run a print_r  to see the array but i didnt.   I should not have assumed he only changed css, he must have changed the form somehow.  rats my bad..

The Forum post is edited by dave May 29 '13
Nirmalya Ghosh
Nirmalya Ghosh May 29 '13
Can you please tell me what am I doing wrong here?

Here's my join_index.html



<table class="table_picture" width="100%">    <tr><tr>    <tr>        <td width="50%"  class="ow_center"> 




















<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="css/slider.css" rel="stylesheet" type="text/css" /><title>Go PLUGGED</title></head><body><div class="container"><div id="slider"><img src="images/404E0816-0CC7-4616-B238-F136E7DC2B21.jpg" width="450px" height="480px" border="0"></a>
</div></div></body></html>
























</div></td>        <td width="100%">
    {form name=joinForm}        <table class="ow_table_1 ow_form">            {if $diaplayAccountType==true}            <tr>                <td class="ow_label">                    {label name='accountType'}                </td>                <td class="ow_value ow_center">                    {input name='accountType'}                    <br class="ow_no_height" />                    {error name='accountType'}                </td>                <td class="ow_desc">                    {question_description_lang name="accountType"}                </td>            </tr>            <tr><td colspan="3"> </td></tr>            {/if}            {foreach from=$questionArray key='section' item='questions'}                {if !empty($section) }{/if}                {foreach from=$questions item='question'}                    <tr class="{cycle name=$section}">                        <td class="ow_label">                            {label name=$question.name}                        </td>                        <td class="ow_value">                            {input name=$question.name}                            <br class="ow_no_height" />                            {error name=$question.name}                        </td>                                            </tr>                    {if $question.name=='password'}                        <tr class="{cycle name=$section}">                            <td class="ow_label">                                {label name='repeatPassword'}                            </td>                            <td class="ow_value">                                {input name='repeatPassword'}                                <br class="ow_no_height" />                                {error name='repeatPassword'}                            </td>                            <td class="ow_desc">                                {question_description_lang name='repeatPassword'}                            </td>                        </tr>                    {/if}                {/foreach}                {if !empty($section)}<tr><td colspan="3"> </td></tr>{/if}            {/foreach}            {if $isLastStep}                {if $display_photo}                    <tr><th colspan="3">{text key="base+questions_section_user_photo_label"}</th></tr>                    <tr class="{cycle name=userPhoto}">                        <td class="ow_label">                            {label name='userPhoto'}                        </td>                        <td class="ow_value">                            {input name='userPhoto'}                            <br class="ow_no_height" />                            {error name='userPhoto'}                        </td>                        <td class="ow_desc">                            {question_description_lang name='user_photo'}                        </td>                    </tr>                {/if}                                {if $display_terms_of_use}                    <tr><th colspan="3">{text key="base+questions_section_terms_of_use_label"}</th></tr>                    <tr class="{cycle name=userPhoto}">                        <td class="ow_label">                            {label name='termOfUse'}                        </td>                        <td class="ow_value">                            {input name='termOfUse'}                            <br class="ow_no_height" />                            {error name='termOfUse'}                        </td>                        <td class="ow_desc">                                                    </td>                    </tr>                {/if}                            {/if}            <tr>                    <td colspan="3" class="ow_center">{submit name='joinSubmit'}</td>            </tr>        </table>    {/form}</td>    </tr></table>






dave Leader
dave May 29 '13

well first you have a close anchor tag  </a> and no open tag here

 

 <img src="images/404E0816-0CC7-4616-B238-F136E7DC2B21.jpg" width="450px" height="480px" border="0"></a>

 

should be like this

<img src="images/404E0816-0CC7-4616-B238-F136E7DC2B21.jpg" width="450px" height="480px" border="0" />

 

 

and then you are closing your body and html right after that but still running the table and html code.

 

also why are you redefining the doc type, im not 100% but im sure that has aready been done in the predefined header setup with the script before everything is parsed.  You might want to check that.

 

and in the very beginning you have table and 3 rows (tr) back to back.  and then you do the doc type,

 

i hope that helps you..

The Forum post is edited by dave May 29 '13
Alia Team
Alia May 30 '13
Nirmalya, so you did edit source code of the join form?

To make sure that missing account types are causing this just go to your admin panel>>users>>profile questions>>edit account types>> how many account types do you have there?

If you have more then 1, then you customized source code and that is why you are getting your error.

If you customized the source code you must have done this either in join_index.html or join.php.

1. Regarding your join.index.html. Can't tell much whether everything is ok or not, since you are not using one of our default themes. BUT if you have 1.5.3 version of Oxwall you should have had: {if $displayAccountType==true} ( instead of {if $diaplayAccountType==true}   ).


2. You have mentioned earlier that the issue didn't disappear when you change your theme to another one, so I also suspect that something is wrong with your join.php. Please find original join.php code attached ( note this is for 1.5.3 version of Oxwall). Compare it to yours.



Elisa Conesa
Elisa Conesa Jun 3 '13
Maybe it was defined an form element in the controller, but it wasn't defined in the view. Check the respective codes. That mistake causes that error sometimes.


The Forum post is edited by Elisa Conesa Jun 3 '13
Pages: « 1 2