add to wishlist gives blank display

  • Posts: 7
  • Thank you received: 0
11 years 3 weeks ago #130522

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); ?>" >

<?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: 11 years 3 weeks ago by blastedkane. Reason: Correct more information

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 3 weeks ago #130538

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 7
  • Thank you received: 0
11 years 3 weeks ago #130569

THe error log shows

[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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 2 weeks ago #130705

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.

  • Posts: 7
  • Thank you received: 0
11 years 2 weeks ago #130909

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 2 weeks ago #130937

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.073 seconds
Powered by Kunena Forum