Link list in OP Resources not working after moving to another server

Events happening in the community are now at Drupal community events on www.drupal.org.
stattler's picture

I have a strange problem regarding OpenPublish resources items. In an OP resource item, there is an option to add the URLs with descriptions. I have a few such items and they used to work fine until I moved my site to another vps. Instead of showing the listed link items, it only shows the bullets.

It could be permission related issue, but I am not sure. Both servers (old and new) run Debian 5.0 and I've rsynced the files.

For example, I've created a test resource at http://www.stattler.com/resource/test-resource which shows the bullets only.

Any insight or clue would be much appreciated.

Note: I am testing varnish http accelerator (without installing Pressflow yet) on this server/site.

Comments

check your source: <?print

resveld's picture

check your source:

  • <?print $link; ?>
  • <?print $link; ?>
  • See node-resource.tpl.php and check if it says:

    <?php
    print $link;
    ?>

    -Ronald

    Ron In node-resource.tpl.php

    stattler's picture

    Ron

    In node-resource.tpl.php it does have something like this:

    <?php if ($resource_links): ?>
    <div class="resource-links">
      <ul>
      <?php foreach($resource_links as $link): ?>
        <li><?print $link; ?></li>
      <?php endforeach; ?>
      </ul>

    It used to work, but not working after I moved the site to another VPS. I appreciate your help, Ron.

    If you change it to <?php

    resveld's picture

    If you change it to

    <?php
    print $link
    ?>

    Does it work? It should :)

    And you're welcome!

    -Ronald

    I changed <li><?print $link;

    stattler's picture

    I changed
    <li><?print $link; ?></li>
    to
    <li><?php print $link; ?></li>

    and that worked. But why? Is it good to hack the core?

    Thanks a lot again, Ron.

    actually <?print is not good

    resveld's picture

    actually <?print is not good php.
    In order to display for instance the link which is set up as $;link you need to tell php to print it.

    Which is why you need to say ?php print $link; ?>

    I just checked and the bug is in OP2.3 with the default theme.
    I've raised a bug @ http://drupal.org/node/1041162

    And you're welcome!

    I'm almost ready to move my site to to my own VPS with Varnish in front of it.

    -Ronald

    OpenPublish

    Group organizers

    Group categories

    Group notifications

    This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

    Hot content this week