Skip to main content

add to wishlist gives blank display

More
12 years 11 months ago - 12 years 11 months ago #130522 by blastedkane
I have been working on this for a while. Clicking on the "add to wishlist" button leads the user to a blank page. some preliminary investigation leads me to

components/com_hikashop/views/cart/tmpl/showcart.php and in dreamweaver there is a section of code which brings up the following error on line 93

Invalid Markup
Marked invalid because it doesn't belong inside the tag it's in.

This is the offending code with the surrounding areas

<a href="<?php echo JRoute::_('index.php?option='.HIKASHOP_COMPONENT.'&ctrl=cart&task=showcarts&cart_type='.$cart_type.$Itemid); ?>" >

Code:
<?php if($this->cartVal->display && ($userCurrent == $this->cartVal->user_id)){ ?> <td> <a href="#" onclick="javascript:document.forms['hikashop_show_cart_form'].submit();"> <span class="icon-32-save" title="<?php echo JText::_('HIKA_SAVE'); ?>"> </span> <?php echo JText::_('HIKA_SAVE'); ?> </a> </td> <?php } ?> <td> <?php if(!$config->get('enable_multicart') && $cart_type == 'cart'){ ?> <a href="#" onclick="history.back()"> <?php }else{ ?> [color=#ff0000]<a href="<?php echo JRoute::_('index.php?option='.HIKASHOP_COMPONENT.'&ctrl=cart&task=showcarts&cart_type='.$cart_type.$Itemid); ?>" >[/color] <?php } ?> <span class="icon-32-back" title="<?php echo JText::_('HIKA_BACK'); ?>"> </span> <?php echo JText::_('HIKA_BACK'); ?> </a> </td> </tr> </table> </div>

This is about as far as I can take it. Can anyone help


-- url of the page with the problem -- : apt-creative.com/janesredevelopment/admi...ikashop&ctrl=product
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.3.20
-- Browser(s) name and version -- : Firefox 25
-- Error-message(debug-mod must be tuned on) -- : none
Last edit: 12 years 11 months ago by blastedkane. Reason: Correct more information

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #130538 by Jerome
Hi,

Please check your PHP error log in order to have the precise error message.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #130569 by blastedkane
THe error log shows
Code:
[30-Sep-2013 07:10:24 America/Chicago] PHP Notice: Undefined property: stdClass::$characteristic_id in *****************************/administrator/components/com_hikashop/types/characteristic.php on line 194 [30-Sep-2013 07:10:24 America/Chicago] PHP Notice: Undefined property: stdClass::$characteristic_value in *****************************/administrator/components/com_hikashop/types/characteristic.php on line 196

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #130705 by nicolas
These are just notice messages and they date back from the end of september. So it's clearly not linked to that problem.
Don't you have fatal error messages in your log ?
Do you have a completely blank page ? Or just a page with the template without text in the middle ?

If you turn on the "debug mode" and the "error reporting" options of the joomla configuration and try again, do you get error messages ?

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #130909 by blastedkane
Ok, Further to the above

with no debug on I get a completely blank page when trying to add an item to the wish list. no error just nothing (including no available source code)

With Debug on I get the following message

Fatal error: Call to a member function get() on a non-object in /**********************************/components/com_hikashop/views/cart/view.html.php on line 55

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #130937 by Xavier
Hi,

Thanks to give us the corresponding line.
Because at line "55" I have the code: $cart_type = JRequest::getVar('cart_type','cart');
And that should not cause this kind of error.

Please Log in or Create an account to join the conversation.

Time to create page: 0.156 seconds
Powered by Kunena Forum