Hello,

The HTML output produced by UberCart is somewhere wrong...

I get this code:

Only local images are allowed.


Shopping cart


Only local images are allowed.

">

There are no products in your shopping cart.

0 Items Total: 0.00€

Of course, the result on the page is:

Shopping Cart icon ">

Where can i fix this bug?

Thanks in advance.

Ricardo

Comments

ricardobaeta’s picture

Hello again,

Sorry... miss the code tags

The html output is

<div id="<a href="/istpress/pt/cart">
	<img src="/istpress/sites/default/modules/ubercart/uc_cart/images/cart_empty.gif" id="block-cart-title-image" alt="" /></a>
	<span class="block-cart-title-bar cart-block-toggle" id="block-cart-title-bar-text">
		<span id="block-cart-title">Shopping cart</span>
	</span>
	<span class="block-cart-title-bar cart-block-toggle" id="block-cart-title-bar-arrow">
		<img id="block-cart-title-arrow" src="/istpress/sites/default/modules/ubercart/uc_cart/images/bullet-arrow-up.gif" alt="[]" title="Expand cart block." />
	</span>">
	
	<div id="block-cart-contents">
		<p>There are no products in your shopping cart.</p>
	</div>
	<table class="cart-block-summary-table">
		<tbody class="cart-block-summary-tbody">
			<tr class="cart-block-summary-tr">
				<td class="cart-block-summary-items">0 Items</td>
				<td class="cart-block-summary-total"><strong>Total:</strong> 0.00€</td>
			</tr>
		</tbody>
	</table>
</div>

The result is the same as I mencioned:

Shopping Cart icon ">

Bug?

cha0s’s picture

I don't see this output on my cart from the latest bzr.

I get code like this:

<h2>
  <a href="/cha0s/dev/ubercart/1/cart" class="active">
    <img src="/cha0s/dev/ubercart/1/sites/all/modules/ubercart/uc_cart/images/cart_empty.gif" id="block-cart-title-image" alt="" />
  </a>
  <span class="block-cart-title-bar cart-block-toggle" id="block-cart-title-bar-text">
    <span id="block-cart-title">Shopping cart</span>
  </span>
  <span class="block-cart-title-bar cart-block-toggle" id="block-cart-title-bar-arrow">
    <img id="block-cart-title-arrow" src="/cha0s/dev/ubercart/1/sites/all/modules/ubercart/uc_cart/images/bullet-arrow-up.gif" alt="[]" title="Expand cart block." />
  </span>
</h2>
ricardobaeta’s picture

Hello,

Thank you for your reply.

I'm using D5. What version do you use?

Maybe if I reinstall the module...

Any ideias?

Best Regards,

Ricardo

ricardobaeta’s picture

Hi,

Reporting the same problem... can't find a solution. The module is simply generating wrong html output. I've reinstalled the module. Still the same.

Help...!

Best Regards,

Ricardo

cha0s’s picture

Status: Active » Postponed (maintainer needs more info)

What theme are you using?

I use the latest version directly from the Bazaar repository.

ricardobaeta’s picture

Hi,

Garland Theme.

Thanks you,

Ricardo

rszrama’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

The div causing your trouble is not produced by Ubercart.

ricardobaeta’s picture

Hello rszrama,

I've instaled Ubercart ubercart-5.x-1.7.

The theme is customized by me. Maybe it's because i've changed block.tlp.php

<div id="<?php print $block->subject ?>">
<?php
    $operator = $block->region;

    if (
$operator=="content" || $operator=="header" || $operator=="main_highlight")
        print $block->content;
    elseif ($operator=="funny_box")
        print '<div class="'. $block->region .'">'.
            $block->content.
          '</div>';
    else
    print '<div id="'. $block->region .'">'.
        $block->content.
      '</div>';
    ;
    ;
    ?>
</div>

I never had problems before because of this changes.

You think it's because of this?.

Thanks,
Ricardo

rszrama’s picture

It might be. The best thing to do would be to disable your customization and see if that clears it up. If so, then your custom code is suspect. : )