Just happened to check the source of a page and I noticed that there was no longer a

<meta name="description" content="" />

anywhere. On any page.

I have another site running off the same code base where no changes were made in a while, other than updating to 6.9. So, going to 6.9 was not the issue - those descriptions are still working...

I tried disabling just about every non major module I had - to no avail.

I uninstalled the module and re-installed it. Still, no descriptions (via teaser at 255 characters).

"Meta tags" (nodewords) other tags all seem to be working fine, and are listed - except, no description line at all.

Anybody else experiencing this?

thanks.

Comments

Cactii1’s picture

I also cannot get descriptions on my pages. I just have it set to use the teaser but none of my pages have a meta description. I turned the setting off - tried and then back on and tried but to no avail there are no description tags.

joestewart’s picture

Version: 6.x-1.0-rc1 » 6.x-1.0

Check the filter_formats table for entries in the "cache" column. descriptions.inc seems to assume that any filters used except for php have this column set to one. This is evidently not true for all upgraded sites.

ex: mysql> select * from filter_formats;

Mercury500’s picture

And what's the solution? Change the Cache column(s) to 1s? Will it stay?

I've got 4 rows, cache column(s) are all zero.

DocMartin’s picture

I've just noticed same issue
Manually adding meta description, and works ok.

Don't really want to dig into mysql tables [scary places, those!], if that might be fix; instead, might a further (soon?) release of Meta Tags bring the auto generated descriptions back?

Otherwise, perhaps, best to go back to earlier version of Meta Tags?
- hah, just tried this, briefly; getting neither descriptions nor keywords in head. [didn't do uninstalling; partly as I have a few custom descriptions]
So, back to updated meta tags; and hoping fix will be straightforward.

[Adding next day: just tried uninstalling meta tags, re-installing RC1; but with this wasn't getting either auto generated keywords or descriptions; so returned to 1.0 version. Yet think I had earlier checked, seen that was getting auto generated descriptions.]

Izenburg’s picture

I don't even have the meta tags fields show up for me to try adding keywords and a description, when adding/editing a new page. Is there a separate 'metatags' module that I need to install for drupal 6.9?

Thanks

joestewart’s picture

@Izenburg - Yes, in addition to installing the nodewords module (http://drupal.org/project/nodewords), there is some configuration and permission required to show the fields in the node add/edit form.

Mercury500’s picture

FYI all, I changed all the CACHE column settings to 1's (except for PHP) - as suggested. (they were all 0's before)

It's been about a week and auto generated descriptions are still working.

DocMartin’s picture

Title: Meta Tags Description tag gone missing » Meta Tags Description ok w filter_formats cache setting of 1

After seeing Mercury500's reply, thought I'd have a look at MySQL

Turns out change is easy to made - way simpler than various things I've seen w MySQL. Lest anyone finding this thread also not real familiar w MySQL:
From database table, can choose to "browse" filter_formats; then see small table w some settings for the input filters (Full HTML etc). Here, can see what the settings are for the filter caches; can edit, change from 0 to 1, where necessary.

After this, straight away getting descriptions from first entries of nodes [for which I haven't specified descriptions]. Now, fingers crossed that sites keep on working! - I'm hoping that doesn't matter for anything else whether cache setting is 0 or 1.

Thanks, joestewart, for the solution

jordan8037310’s picture

I also have found this issue on my own website. The Meta Descriptions aren't displaying on any of the pages in the source code. I have tried the recommended changing of the filter_formats as well in my SQL database, but to no avail. Any more direction on this issue would be appreciated seeing as how the Meta Descriptions are kind of important =P.

Anonymous’s picture

Changing the cache column settings to 1 worked for me.

eyecon-1’s picture

Works for me! mysql> update filter_formats set cache='1' where format <>'2';

"2" is php on my server.

YMMV

joestewart’s picture

Category: support » bug
apaderno’s picture

Status: Active » Fixed

This should be already fixed in version 6.x-1.x-dev, which calls filter_format_allowcache() before to create the content of the description meta tag from the node teaser.

joestewart’s picture

Kiam, what branch or version number of description.inc did you test? The bug exists in the 6.x-1.0 released version. I don't see that there had been commits in the last 16 months to this file.

Link to 6.x-1.x-dev?

apaderno’s picture

The development snapshots are listed in the page for all the release; you can find the link in the project page.

I am sorry for the confusion I could have created, but I need to set as fixed the reports that are effectively fixed in the development snapshot; differently I could not understand anymore what I have to do, and what I need still to work on.

joestewart’s picture

For some reason I missed the dev snapshot before. Found it - http://drupal.org/node/212852

The reason I asked about which tested version works is because this file seems to be the same as the one in all these reports. In other words, it is not fixed if cache column set to 0 as is happening alot. If it is actually fixed, that is great. But if it is not tested and working please don't mark it as fixed.

update - note that along the way, the title of this report got changed:

Title: Meta Tags Description tag gone missing » Meta Tags Description ok w filter_formats cache setting of 1

apaderno’s picture

Title: Meta Tags Description ok w filter_formats cache setting of 1 » Description meta tag content is created from the node teaser only when the filter used in the node body allows it to be cached
Status: Fixed » Active

The title set for the report confused me a little.

Actually, the module calls filter_format_allowcache() because, as explained in #79315: Can't use php functions in body of nodes, it is trying to avoid the nodes that use the PHP filter for their body. What the code is really doing it to only use the nodes for which the filter user for the node body allows it to be cached; this means to filter out not only the PHP filter, but all the input filters that report to not allow their output to be cached.

Reading what reported in the other issue report, it seems that for content types using PHP code in their body content, and which declares some function, the work-around is to add an IF-statement before the function is declared.
It seems that the code is limiting the nodes for which it is able to create a description from the teaser, only to resolve a problem specific for some situations (for which there is already a work-around).

I can see only two solutions at this problem.
The first is to remove the ability to create the description meta tag content from the node teaser. This seems the simpler, and it also removes some problems caused by the use of a node teaser (see the report about the administrator theme not being visualized when the description tag is created from a node teaser).
The second solution is to allow any filter in the node body content; this would also mean to report in the project page that to create the description content from the teaser of a node that uses the PHP filter will surely cause problems.

In consequence of this, the option to create the description content from the teaser could be given for each content types.

As this change influences also the other versions of the module, I would like to hear from another maintainer. I don't want, in example, remove the possibility to populate the description meta tag from the node teaser when the other versions would keep this feature; it would be confusing for the user to see a feature implemented differently in different versions of the module.

Once again, I am sorry for any misunderstandings I had with this report.

apaderno’s picture

apaderno’s picture

apaderno’s picture

Status: Active » Fixed
Issue tags: +6.x-1.0

The code has been changed, and the node teaser is generated in a different way.

Status: Fixed » Closed (fixed)
Issue tags: -6.x-1.0

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