Keyword

Image not loading

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 7 months ago #151070 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image not loading
If you insert K2's default code.
  <?php if($this->item->params->get('catItemExtraFields') && count($this->item->extra_fields)): ?>
      <!-- Item extra fields -->
      <div class="liItemExtraFields catItemExtraFields">
        <h4><?php echo JText::_('K2_ADDITIONAL_INFO'); ?></h4>
        <ul>
        <?php foreach ($this->item->extra_fields as $key=>$extraField): ?>
        <?php if($extraField->value != ''): ?>
        <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
          <?php if($extraField->type == 'header'): ?>
          <h4 class="extraFieldsHeader"><?php echo $extraField->name; ?></h4>
          <?php else: ?>
          <span class="extraFieldsLabel"><?php echo $extraField->name; ?></span>
          <span class="extraFieldsValue"><?php echo $extraField->value; ?></span>
          <?php endif; ?>
        </li>
        <?php endif; ?>
        <?php endforeach; ?>
        </ul>
        <div class="clr"></div>
      </div>
      <?php endif; ?>

Is there anything appearing?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Dave Spring
  • Dave Spring's Avatar Topic Author
  • Offline
  • New Member
More
8 years 7 months ago #151086 by Dave Spring
Replied by Dave Spring on topic Image not loading
No - it's weird because it used to work fine and something changed. This code is used in 3 separate sites and they all started acting like this. Not sure if its the code, an update or something got in from the spam attack but this is the only code to stop working correctly.

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

  • Dave Spring
  • Dave Spring's Avatar Topic Author
  • Offline
  • New Member
More
8 years 7 months ago #151087 by Dave Spring
Replied by Dave Spring on topic Image not loading
When you inspect it using the Chrome Inspect option, it's linking correctly but the graphic doesn't come up. It stops the path when it comes to the image. This only happens when it produces a narrow type list where it filters (K2easyfilter) a category with a tag (uses the generic.php to produce the list) but if its just a category list, it works fine with the same field and echo call.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 7 months ago #151107 by Krikor Boghossian
Replied by Krikor Boghossian on topic Image not loading
Can you try disabling all 3rd party K2 extensions?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum