[Skip to main content](#vessel-content)

#   Hikashop user plugin form view is not well formed

##

- **[ropreoso](/forum/user/25201-ropreoso "View ropreoso's Profile")**
- [![ropreoso's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/25201-ropreoso "View ropreoso's Profile") Topic Author
- [ Offline](/forum/user/25201-ropreoso)

Less More

- Posts: 7
- Thank you received: 1
-
-

12 years 9 months ago -  12 years 9 months ago [\#140086](#140086) by [ropreoso](/forum/user/25201-ropreoso "View ropreoso's Profile")  *[Hikashop user plugin form view is not well formed](/forum/33-customers/865075-hikashop-user-plugin-form-view-is-not-well-formed#140086 "-- url of the page with the problem -- :   www.sator.cz  (Not accessible for public yet.) -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.11 -- PHP version -- : 5.2.9 -- Browser(s) name and version -- : Google Chrome 30.0.1599.101 m -- Error-message(debug-mod must be tuned on) -- : N/A  Here is source code of plugins/system/hikashopuser/hikashopuser.php starting on line 225 with highlighted bug.  is not well formed. Depending on HIKASHOP&#95;J30 only begin part of tag or end part of tag is generated.  if(){ $data .= ''.JText::&#95;('HIKASHOP&#95;USER&#95;DETAILS').''; }else{ $data .= ''.JText::&#95;('HIKASHOP&#95;USER&#95;DETAILS').''; } foreach($extraFields as $fieldName =&gt; $oneExtraField) { if(HIKASHOP&#95;J30){ $data .= ''.$fieldsClass-&gt;getFieldName($oneExtraField).''; }else{ $data .= ''.$fieldsClass-&gt;getFieldName($oneExtraField).''; } $onWhat='onchange'; if($oneExtraField-&gt;field&#95;type=='radio') $onWhat='onclick'; $data .= '.$onWhat.'=&quot;hikashopToggleFields(this.value,&#92;''.$fieldName.'&#92;',&#92;'user&#92;',0);&quot;'); if(HIKASHOP&#95;J30){ $data .= ''; }else{ $data .= ''; } } if(){ $data .= ''; }else{ $data .= ''; }")* was created by *[ropreoso](/forum/user/25201-ropreoso "View ropreoso's Profile")*

-- url of the page with the problem -- : [ www.sator.cz](http://www.sator.cz) (Not accessible for public yet.)
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 2.5.11
-- PHP version -- : 5.2.9
-- Browser(s) name and version -- : Google Chrome 30.0.1599.101 m
-- Error-message(debug-mod must be tuned on) -- : N/A

Here is source code of plugins/system/hikashopuser/hikashopuser.php starting on line 225 with highlighted bug. &lt;dl&gt; is not well formed. Depending on HIKASHOP_J30 only begin part of tag or end part of tag is generated.

if(HIKASHOP\_J30){
$data .= '&lt;fieldset class="hikashop_user_edit"&gt;&lt;legend&gt;'.JText::_('HIKASHOP_USER_DETAILS').'&lt;/legend&gt;&lt;dl&gt;';
}else{
$data .= '&lt;fieldset class="hikashop_user_edit"&gt;&lt;legend&gt;'.JText::_('HIKASHOP_USER_DETAILS').'&lt;/legend&gt;';
}
foreach($extraFields as $fieldName =&gt; $oneExtraField) {
if(HIKASHOP_J30){
$data .= '&lt;div class="control-group"&gt;&lt;div class="control-label"&gt;&lt;label&gt;'.$fieldsClass-&gt;getFieldName($oneExtraField).'&lt;/label&gt;&lt;/div&gt;&lt;div class="controls"&gt;';
}else{
$data .= '&lt;dt&gt;&lt;label&gt;'.$fieldsClass-&gt;getFieldName($oneExtraField).'&lt;/label&gt;&lt;/dt&gt;&lt;dd&gt;';
}
$onWhat='onchange';
if($oneExtraField-&gt;field_type=='radio')
$onWhat='onclick';
$data .= $fieldsClass-&gt;display($oneExtraField,@$user-&gt;$fieldName,'data[user]',false,' '.$onWhat.'="hikashopToggleFields(this.value,\''.$fieldName.'\',\'user\',0);"');
if(HIKASHOP_J30){
$data .= '&lt;/div&gt;&lt;/div&gt;';
}else{
$data .= '&lt;/dd&gt;';
}
}
if(HIKASHOP\_J30){
$data .= '&lt;/fieldset&gt;';
}else{
$data .= '&lt;/dl&gt;&lt;/fieldset&gt;';
}

Last edit: 12 years 9 months ago by [ropreoso](/forum/user/25201-ropreoso "View ropreoso's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjUwNzUtaGlrYXNob3AtdXNlci1wbHVnaW4tZm9ybS12aWV3LWlzLW5vdC13ZWxsLWZvcm1lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 9 months ago [\#140146](#140146) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop user plugin form view is not well formed](/forum/33-customers/865075-hikashop-user-plugin-form-view-is-not-well-formed#140146 "-- url of the page with the problem -- :   www.sator.cz  (Not accessible for public yet.) -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.11 -- PHP version -- : 5.2.9 -- Browser(s) name and version -- : Google Chrome 30.0.1599.101 m -- Error-message(debug-mod must be tuned on) -- : N/A  Here is source code of plugins/system/hikashopuser/hikashopuser.php starting on line 225 with highlighted bug.  is not well formed. Depending on HIKASHOP&#95;J30 only begin part of tag or end part of tag is generated.  if(){ $data .= ''.JText::&#95;('HIKASHOP&#95;USER&#95;DETAILS').''; }else{ $data .= ''.JText::&#95;('HIKASHOP&#95;USER&#95;DETAILS').''; } foreach($extraFields as $fieldName =&gt; $oneExtraField) { if(HIKASHOP&#95;J30){ $data .= ''.$fieldsClass-&gt;getFieldName($oneExtraField).''; }else{ $data .= ''.$fieldsClass-&gt;getFieldName($oneExtraField).''; } $onWhat='onchange'; if($oneExtraField-&gt;field&#95;type=='radio') $onWhat='onclick'; $data .= '.$onWhat.'=&quot;hikashopToggleFields(this.value,&#92;''.$fieldName.'&#92;',&#92;'user&#92;',0);&quot;'); if(HIKASHOP&#95;J30){ $data .= ''; }else{ $data .= ''; } } if(){ $data .= ''; }else{ $data .= ''; }")*

Thanks for the report !

We'll add that fix in next version of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NjUwNzUtaGlrYXNob3AtdXNlci1wbHVnaW4tZm9ybS12aWV3LWlzLW5vdC13ZWxsLWZvcm1lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.150 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
