Tags not showing

edited January 2015 in Bug Reports
Hi. I have a weird issue with tags. I have tags enabled and some tags added (without category). I have an advanced module with a has_many relationship in place. Still tags are not showing in the tags dialog on the edit page. The
    element that contains the tags contains one empty
  • . I have a second server with the same setup. Here tags are working fine, with the same module in place. Anything that could me point me in the right direction?

Comments

  • edited 5:52PM
    I see my input above is being parsed. I mean that the ul list contains just one empty li.
  • edited 5:52PM
    A few questions to help debug the issue:
    1. What does your has_many property look like? In particular, is there a "where" condition in the has_many property?
    2. Do you see any relationships in the fuel_relationships table for the tags and your model?
    3. The fact that it works on one server and not the other is strange. Is there a difference in the PHP versions or are there ay other differences that you can think of between the servers/FUEL setup?
  • edited 5:52PM
    1. There is no where property, just: public $has_many = array('tags' => 'fuel_tags');
    2. Tables look fine. There's no problem with tag management as well. They just don't show up in the model.
    3. I checked the specs of the servers. The server where tags DO work runs PHP 5.4.19, the server where tags DON'T work runs PHP 5.4.34. It's the only difference I can find.
  • edited 5:52PM
    Try changing the has_many to the following:
    public $has_many = array('tags' => array(FUEL_FOLDER => 'fuel_tags_model'));
  • edited 5:52PM
    I tried that, but it doesn't make a difference. I noticed the following as well: when I assign a category to a tag, than that category shows in the tag dialog instead of the tag.
  • edited 5:52PM
    You mind updating to the develop branch (you can merge it in via GIT). The tag category showing up should be fixed in the develop branch already and will include the changes for the next release:
    https://github.com/daylightstudio/FUEL-CMS/tree/develop
  • edited 5:52PM
    Works like a charm. Thanks!
Sign In or Register to comment.