Hi I'm working on a site trying to install "on the web" module. Have successfully installed and used on a number of other sites without issue (the older versions at least).
Just tried installing 7.x-1.3 on this latest site (D7.17), and although module enabled (no errors I can see), the block does not appear in the blocks list. (Therefore I can configure or place it).
I uninstalled and reinstalled - no joy. Ran update.php and cleared cache many times, just for luck :)
I can find anyone else has ever had this issue - so maybe it's just me....

Comments

mudsurfer’s picture

Category: bug » support

Further information: This issue is somehow related to the rendering of blocks for specific themes.
I am using Omega - and the "on the web block" does not appear as an option in the blocks list. But if I switch to Bartik, the it appears in the list. (Garland too makes it appear). So smells like this is a problem with theme, rather than this module.
However, I note I AM successfully using the "on the web" block on at least 3 other sites that are using Omega/Omega subthemes...

Anyone else see this before, or possibility suggest a direction for me to start looking for solution?
Cheers

mudsurfer’s picture

Status: Active » Closed (fixed)

Ok: had a moment of clarity - further update and workaround:
The block was NOT visible in the block list when in the Omega theme I had as my primary theme.
However it was visible when I changed to Bartik. So I changed to Bartik, found the "on the web" block in the list, hit configure, and then ADDED the block to a region in BOTH Bartik and the Omega theme (whihc you can do from that block configuration interface). Saved, and then disabled Bartik again, now the block shows up on the page in the Omega theme, AND it has appeard on the block list in the Omega theme.
Not sure of why or how - but it solved my problem for now, and I'm happy with that. Will mark this as closed.

abhishek77’s picture

Version: 7.x-1.3 » 6.x-1.3

I too am looking for a solution but on drupal 6. I am having the same problem. I have tried reinstalling the module, changing the themes as suggested here but still not getting anywhere with this. Any suggestions of what may be wrong?

abhishek77’s picture

Status: Closed (fixed) » Needs work
jenlampton’s picture

Status: Needs work » Postponed (maintainer needs more info)

That's very strange indeed.

@abhishek77 which themes have you tried, and which is it missing from? I just tested on all the themes in D6 core (Bluemarine,
Chameleon, Garland, Marvin, Minnelli, and Pushbutton) as well as Zen and Omega and the block appears everywhere, as expected.

@mudsurfer I also just checked all the core themes in D7 (Bartik, Garland, Seven, Stark) as well as Zen and Omega. It's appearing everywhere for me, even after uninstalling and reinstalling the module.

Can you both list here the steps I need to follow to reproduce the problem?

jcicolani’s picture

I am also having this problem. I've tried all of the themes included with D6 as well as Fusion and the block does not show in any list.

abhishek77’s picture

I am currently using the Giordani theme. This issue happened only after upgrading to the latest version. The other themes i have tried are Bluemarine, Chameleon, Garland, Marvin, Minnelli, and Pushbutton.

Neil Adair’s picture

I had the same problem with 6.x-1.3 on a few sites and different themes, zen, garland etc. I just couldn't get the block to show up on the blocks page. I saw there was a patch to enable other modules to modify this block committed to 6.x.1.3 so I uninstalled and installed 6.x-1.2 and it works fine on all sites in all themes. I think something may have been broken which may not be a problem if you upgraded but is if you install 6.x-1.3 fresh.

Neil

abhishek77’s picture

I installed the latest release of this module on new drupal 6 site and again it is not appearing in blocks.
Is this some issue with the latest release?

heilop’s picture

Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Needs work

The problem is that this module implemented with hooks for Drupal 7 instead of version 6.x-1.3. Someone reported in #1886520: Latest 6.x release was actually 7.x branch.

jenlampton’s picture

Status: Needs work » Active

@heilop you changed the status to 'needs work' but I think you forgot to add the patch that needs work. I would love to see the work you have done, please post the patch and reset the status once your code is here. (Changing back to 'active' status until we have code here that 'needs work')

I think this may be related to the latest release issue #1886520: Latest 6.x release was actually 7.x branch

Im going to roll a new release, please reply here if this does not solve the problem.

jenlampton’s picture

Status: Active » Closed (duplicate)
franciscoj.salvador’s picture

Issue summary: View changes

I have the same problem. Using Drupal 7, bootstrap. This block will not show up in the block list.

maatthieu’s picture

Hi everyone, i m new to Drupal 7 and in this forum, please be nice :)

I just wanted to modify the position of the social images provided by this module inside a sub theme of Zen. As it says in the documentation I :

1)

Place the following code in the template.php file in your theme, and replace 'mytheme' with the name of your theme:
/**
* Overrides theme_on_the_web_image().
*/
function mytheme_on_the_web_image($variables) {
return $variables['service'];
}

2) I add this line : <div id="myidtomodifythecssafter"> <?php print $service; ?></div> in the page.tpl.php like following :

<?php if ($site_name || $site_slogan): ?>
      <div id="name-and-slogan">
      <div id="myidtomodifythecssafter"> <?php print $service; ?></div>
        <?php if ($site_name): ?>
          <?php if ($title): ?>
            <div id="site-name"><strong>
              <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
            </strong></div>
          <?php else: /* Use h1 when the content title is empty */ ?>
            <h1 id="site-name">
              <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
            </h1>
          <?php endif; ?>
        <?php endif; ?>

        <?php if ($site_slogan): ?>
          <div id="site-slogan"><?php print $site_slogan; ?></div>
        <?php endif; ?>
      </div><!-- /#name-and-slogan -->
    <?php endif; ?>

3) I clear the cache

but then the images don't appear and i got this error in the front page : Notice: Undefined variable: service in include()
i don't understand, what did I miss ?