Glossify is creating links to unpublished nodes, so when normal users (not the admin) and search engines click on them, they get a "you are not authorized to view this..."

Comments

Ivo.Radulovski’s picture

Version: 6.x-2.5 » 6.x-3.0-beta1

please test the new version!

We have rewritten the module!

Help us to make this module better!

federico’s picture

Thanks for your reply.

I've tried to install 6.x-3.0-beta1 . I got this message when I tried to install it:

Fatal error: Cannot use string offset as an array in /home/site/public_html/sites/all/modules/glossify/glossify.module on line 604

After that, I went to admin/settings/glossify and I got the usual admin/settings page, and also links were not created, so the module was not installed.

I checked also the watchdog. This messages arose:

Table 'site_site.glossify_terms' doesn't exist query: SELECT alternate FROM glossify_terms WHERE nid = 546 en la línea 160 del archivo /home/site/public_html/sites/all/modules/glossify/glossify.module.

Drupal version is: 6.19

Thanks,

Ivo.Radulovski’s picture

Title: Glossify is creating links to unpublished nodes » problems installing Glossify 3.x
Assigned: Unassigned » Ivo.Radulovski

will check this out as soon as possible

Ivo.Radulovski’s picture

Version: 6.x-3.0-beta1 » 6.x-3.0-beta2
Status: Active » Needs review

should be fine now - please test as soon beta2 is visible to you

emdalton’s picture

I just installed beta3 and I'm getting the same errors.

* user warning: Table 'gaeabooks.glossify' doesn't exist query: SELECT term, method FROM glossify WHERE nid = 126 ORDER BY term in /var/www/html/ga/gaeabooks.com/gb/sites/all/modules/glossify/glossify.module on line 407.
* user warning: Table 'gaeabooks.glossify' doesn't exist query: SELECT alternate FROM glossify WHERE nid = 126 in /var/www/html/ga/gaeabooks.com/gb/sites/all/modules/glossify/glossify.module on line 161.
* user warning: Table 'gaeabooks.glossify' doesn't exist query: SELECT gtid FROM glossify WHERE nid = 126 AND method = 'title' in /var/www/html/ga/gaeabooks.com/gb/sites/all/modules/glossify/glossify.module on line 226.
* user warning: Table 'gaeabooks.glossify' doesn't exist query: SELECT nid FROM glossify WHERE term = 'Hugo' AND language = '' in /var/www/html/ga/gaeabooks.com/gb/sites/all/modules/glossify/glossify.module on line 429.
* user warning: Table 'gaeabooks.glossify' doesn't exist query: INSERT INTO glossify (nid, term, language, method, alternate) VALUES (126, 'Hugo', '', 'title', '') in /var/www/html/ga/gaeabooks.com/gb/sites/all/modules/glossify/glossify.module on line 432.
* user warning: Table 'gaeabooks.glossify' doesn't exist query: SELECT g.term, g.nid, g.alternate, g.language FROM node n INNER JOIN glossify g ON g.nid = n.nid WHERE n.type IN ('wiki') AND g.nid != 0 AND g.method IN ('title') in /var/www/html/ga/gaeabooks.com/gb/sites/all/modules/glossify/glossify.module on line 564.
* user warning: Table 'gaeabooks.glossify' doesn't exist query: SELECT term, method FROM glossify WHERE nid = 126 ORDER BY term in /var/www/html/ga/gaeabooks.com/gb/sites/all/modules/glossify/glossify.module on line 407.
* user warning: Table 'gaeabooks.glossify' doesn't exist query: SELECT alternate FROM glossify WHERE nid = 126 in /var/www/html/ga/gaeabooks.com/gb/sites/all/modules/glossify/glossify.module on line 161.
* user warning: Table 'gaeabooks.glossify' doesn't exist query: SELECT g.term, g.nid, g.alternate, g.language FROM node n INNER JOIN glossify g ON g.nid = n.nid WHERE n.type IN ('wiki') AND g.nid != 0 AND g.method IN ('title') in /var/www/html/ga/gaeabooks.com/gb/sites/all/modules/glossify/glossify.module on line 564.

What is this table supposed to contain?

emdalton’s picture

I manually created the table:

create table glossify (gtid serial, nid int, term varchar(256), language varchar(12), method varchar(12), alternate varchar(256));

The errors went away, but I still don't get any links. I've enabled the filter, but I'm not seeing an indication of the filter in the Input Formats section on the node.

Has anyone else gotten this to work?

Beatle88’s picture

Hi,

I had the same problem with exactly the same error messages so I uninstalled both glossify and simplehtmldom, deleted them from the modules directory and then re-installed them. This got rid of the messages but now I have the same problem as above - no links are appearing (except when the 'use title of node' box is ticked and then only one word is linked to the site home page - whatever the home page is)... same Q as above, how do you make it work?

Ivo.Radulovski’s picture

Status: Needs review » Fixed

Ok, so i got around to inspect your error and i assume that you switched from an earlier version of glossify (which didn't use tables yet) to this new one. Therefor hook_install was not triggered which means no table was added to the database.

Status: Fixed » Closed (fixed)

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