WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar Category Colors
[resolved] Clicking on event category lead to 404 page (12 posts)

  1. aallbbyy
    Member
    Posted 1 year ago #

    Hi,
    I have installed today the pluggin.
    I have followed all the instruction to add the Categories Legends to the calendar.
    It is appearing OK but when clicking on a category, it leads to a 404 page.

    Its seems to be a language issue:
    When clicking on the category, it leads to url:
    http://www.mysite.com/lang/events/category/[category name]
    but the correct address of the category calendar is:
    http://www.mysite.com/lang/events/categoria/[category name]
    Whatever the language displayed, the correct url always uses "categrias" (so in Spanish, which is the default language).

    When displaying an event in Spanish, I can click on the category name and be directed to the associated category calendar. But when displaying an event in French or English, it again leads me to a 404 page.

    Same thing to display events list, it is not directing properly depending the language used...

    Can check on :
    http://www.akc-partners.com/events/2013-01/

    http://wordpress.org/extend/plugins/the-events-calendar-category-colors/

  2. Andy Fragen
    Member
    Plugin Author

    Posted 1 year ago #

    @aallbbyy, thanks for the bug report. At this time I don't have language translation incorporated into the plugin. I see that this will be necessary. When I get a fix look for the update.

    In the meantime, you can hardcode the categoria in line 8 of the /views/legend.php of the plugin. That should fix your 404s until a proper translation is done.

  3. Andy Fragen
    Member
    Plugin Author

    Posted 1 year ago #

    BTW, try out the Legend Superpowers of the new version. Instead of going to a category calendar it highlights the selected category.

  4. aallbbyy
    Member
    Posted 1 year ago #

    Dear Andy,
    thanks for the fast answer!

    I've tried to activate the superpowers but it does not seem to work, I don't know what could be the error here.

    I have modified the legend.php file. So when clicking on the legend, it leads me correctly to the category calendar BUT whatever the language used, it leads to the spanish (default) category calendar.
    It actually loose the /[language]/ that is after the root url.

    And still, when on an event page AND whith a different language than default, clicking on the category or clicking on the venue will lead to a 404. Same thing on the calendar page when clicking on event list. But it may be the event calendar pluggin involved, not yours.

    Is there any possibility to desactivate the links to category calendar as I don't really need it (or to make the superpowers working).

    Thanks again for your support, I will also report the langauge issue to the moderntribe guys.

  5. Andy Fragen
    Member
    Plugin Author

    Posted 1 year ago #

    @WebsiteBakery - In looking at the source, legend-superpowers.js seems to be loaded but it's not active. Curious. Any ideas?

    @aallbbyy - If you deactivate this plugin and the links still give you a 404 then report it on the other forum, otherwise we would have to assume it's a problem with this plugin. When the Legend Superpowers is working the links won't matter. The language issue for the links in the Legend are an issue with this plugin. I'm working on it. ;-)

  6. Andy Fragen
    Member
    Plugin Author

    Posted 1 year ago #

    @aallbbyy - could you try disabling all other plugins except those involved with The Events Calendar and then see if the Legend Superpowers is works?

    Thanks.

  7. Andy Fragen
    Member
    Plugin Author

    Posted 1 year ago #

    @aallbbyy - I think you'll need to reinstall this plugin as it appears that you might have accidently changed something in legend.php that is causing a problem. This is what I see from looking at your source.

  8. Andy Fragen
    Member
    Plugin Author

    Posted 1 year ago #

    @aallbbyy can you replace line 8 in /views/legend.php with the following line.

    <a href="<?php esc_attr_e($tec->getLink().trailingslashit(sanitize_title(__( 'category', 'tribe-events-calendar' ))).$teccc->slugs[$i]) ?>">

    Let me know if that works for your translation issues.

    BTW, don't worry about reinstalling the plugin. I think I was reading something in the code incorrectly.

  9. aallbbyy
    Member
    Posted 1 year ago #

    Dear Andy,

    Thank you very much for your your support:
    Regarding the last code line you gave me, not much differences than forcing "categoria" in line 8 (actually I had to change to "categoria" also in the last code line you gave me).
    So, no more 404 but reseting the choosen language to default (if I am in english, then I turn back to spanish) because it looses the /es/, /fr/ or /en/ that is behing the root url.

    BTW, I discovered that the the "correct" url writting does not depend of the default language as I initially thought, but of the language of my administration panel. If my Admin Panel is in spanish, the I should write /categoria/, if in english /category/, and if in french /categorie/.

    Is there anyway to desactivate the links to the categories calendar as I really don't need them? ANd superpowers don't seems to work (I try to desactivate the useless pluggin I have but nothing happens)

    Thanks

  10. Andy Fragen
    Member
    Plugin Author

    Posted 1 year ago #

    The last code change should give the correct language change for 'category' to the appropriately select language without having to hard code it.

    I would suggest posting on the other forum regarding category links in foreign language giving a 404. This can be seen when clicking on the category link in any individual event.

    I still have to see why superpowers doesn't work for you. Does it work if you set the language to English?

  11. aallbbyy
    Member
    Posted 1 year ago #

    English is set!

  12. aallbbyy
    Member
    Posted 1 year ago #

    Dear Andy,
    Superpowers are functionning !
    At least in IE. I mainly use Firefox, and it doesn't seems to work on it.
    I already post a message regarding traduction issue on the moderntribe support page but no answer for the moment...
    I'll let you know.
    Thanks a lot for you great support

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.