I'm using Drupal 6.2 and Image 6.x-1.0-alpha1 . The Image Caption module is activated, but "image caption" isn't listed on Administer > Site Configuration, and so I am unable to assign to work with any node type. The system runs PHP 5.2.

suggestions?
dm

Comments

davidwhthomas’s picture

Try clearing your cache_menu table with

TRUNCATE TABLE cache_menu;

via PHPMyAdmin etc...

Don't worry, the SQL will only clear the cache_menu table which will be rebuilt straight after.

I hope that helps,

regards,

DT

davidwhthomas’s picture

Status: Active » Postponed (maintainer needs more info)
BenK’s picture

I'm experience the same problem... Image Caption isn't showing at all in the Site Configuration menu.

I tried to truncate the cache table as you described above, but that didn't solve the problem.

I also tried to look and see if I needed to give myself a user permission to administer Image Caption, but I didn't see any new permissions made available by the module.

Any other ideas? I'm using the 6.x-1.0 version.

john.kenney’s picture

Not working for me either. Module is 'enabled' but doesn't show up on site config menu.

I'm on 6.2 and using the 6.x-1.0 version of this module. I cleared all cache records and still no luck.

davidwhthomas’s picture

OK, I'll look into this further,
DT

BenK’s picture

What is the URL path supposed to be to the Image Caption settings page?

davidwhthomas’s picture

The path to the settings page is:

admin/settings/image_caption

DT

BenK’s picture

When I try to visit admin/settings/image_caption I get an Access Denied error.

This Access Denied error persists even when my user role has all permissions in the user permissions table. I even tried logging in as the admin user (user #1), but I still get the Access Denied error.

Hope this helps,
Ben

davidwhthomas’s picture

Hi,

Try editing the file image_caption.module

and add the 'access arguments' part to the $items array in image_caption_menu. i.e:

<?php
    $items['admin/settings/image_caption'] = array(
      'path' => 'admin/settings/image_caption',
      'title' => t('Image Caption Settings'),
      'description' => t('Configure image caption settings.'),
      'page callback' => 'drupal_get_form',
      'page arguments' => array('image_caption_admin_settings'),
      'access arguments' => array('administer site configuration') //add this part
    );
?>

You may need to clear your menu cache again, either SQL TRUNCATE TABLE cache_menu; or edit and save a menu item to rebuild the cache.

I hope that helps.

BenK’s picture

I tried adding:

'access arguments' => array('administer site configuration')

as you suggested (and then truncated the cache_menu table), but unfortunately the same error persists. Any other ideas?

hyperreality’s picture

I added the line of code mentioned in #9, and cleared the cache via the link from the Devel module, and the Image Caption settings link appeared. This is in contrast to #10, so I thought I'd report it. Thanks!

davidwhthomas’s picture

Thanks, glad to hear it.

fletchgqc’s picture

I'm using the 6.2 version. Had the same experience as everyone else and the fix in #9 worked.

BenK’s picture

The fix listed in #9 all of a sudden started working for me, too! I'm not sure why it didn't work the first time, but all seems to be well now.

--Ben

davidwhthomas’s picture

This fix will be committed to the main branch as soon as my CVS issues are sorted by the powers that be :-)

davidwhthomas’s picture

Status: Postponed (maintainer needs more info) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

marquito’s picture

Version: » 7.x-1.0-beta3
Status: Closed (fixed) » Needs review

I'm using drupal 7 and Image Caption 7.x-1.0-beta3 but I get no Configs page. Doesn't appear on menu and isn't accessible through any of the paths I tried (admin/config/media/image_caption, admin/config/image_caption).

I know this is a secular thread but it's worth the shot before I implement a custom module.

thanks.

ali4579’s picture

Status: Needs review » Active

I'm using Drupal 7 and have tried the beta and dev versions of this module but it does not show up in site configuration, nor by directly going to /admin/config/image_caption

xenophyle’s picture

There doesn't seem to be any code in the module providing a configuration form, or even a hook_menu implementation. Maybe it got lost in the update.

ali4579’s picture

I've tried beta 1 and beta 2 but still no luck. Surely someone has had this working in drupal 7? Seems so strange.

ali4579’s picture

Category: support » bug
danny englander’s picture

On the project page under the Drupal 7 version it says:

Less module code
No configuration needed

-- That implies there is no config page for Drupal 7 though I have had no luck getting this working yet for a field image. I do see some config options within my Text format where you can add the class of the image to the caption setting:

Enter a space-separated list of classes. The filter will only operate on images which have one of these CSS classes and have a title attribute.

... but still no joy.

nmillin’s picture

There is no Config page required (http://drupal.org/node/1136816).

I messed around with this and got it to work using WYSIWYG module & TinyMCE. (The research I did into CKEditor vs TinyMCE lead me to use TinyMCE since people are leaning towards adding TinyMCE into Core. Take this with a grain of salt because I'm not an expert on this.)

Go to your admin/config/content/wysiwyg/profile/full_html/edit page and expand the CSS tab. Add caption=caption to the CSS Classes section. Now when you edit the image (click on the image button), and go to the Appearance tab, you have the option to select the caption class. This will pull in the Title that is set on the General Tab.

It was so easy, it was hard for me to get this set up.

Awesome Module BTW!

**Update**
I believe you just need to install the Image caption module for this to work. The Image caption filter module (bundled together) does:

This module looks for <img> tags of the class 'image-left', 'image-right' or 'standalone-image'
  with a title attibute set.  It then places the <img> tag in a <div> with the width and class
  attributes set. A <div> tag of class "caption" is also added with the caption text obtained
  from the title.  It removes the class attribute from the <img> tag.

Which I didn't need.

nordicmaterial’s picture

After having messed around with this to no great success, i chose to uninstall this and install jCaption.
http://drupal.org/project/jcaption

Very happy now:
jCaption needs no configuration; it automatically adds a caption tag under every image you gave a title tag.
Works with image field with title field enabled.

voilà.

dhills’s picture

It wasn't working for me either, but manually typing in the url of the page where it's supposed to be got me to the right page and I was able to set node access. Now to see if it works! Thanks!

bisonbleu’s picture

Issue summary: View changes
Related issues: +#1136816: Missing configuration page

@davidwhthomas said it all here: there is no config page for the D7 version (the README needs to be updated). All you need to do is add the caption class to the image tag. See example below.

<img title="This is my image caption." class="image-large caption" src="/sites/default/files/styles/large/public/my-image.jpg"

This is also mentioned on the project page: No configuration needed

bisonbleu’s picture

Status: Active » Closed (works as designed)

Setting status to Works as designed.