• Resolved goof71

    (@goof71)


    after the update (1.2.6) I have a problem with the “Last Post” widget :
    – it displays correctly the lasts posts when I am on the main forum page (where the short-code is)
    – it displays correctly the lasts posts when i choose one of my forums
    – But… it displays “The forum has not been configured correctly.” when I click on a subject

    who have the same behavior ?

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Asgaros

    (@asgaros)

    Hello @goof71

    I moved the location-settings from all widgets to the forum-settings. Please go to your forum-settings and select the location (the page with your forum-shortcode) of your forum. After that it should work correctly. ??

    Greetings,
    Thomas

    • This reply was modified 8 years, 3 months ago by Asgaros.
    Thread Starter goof71

    (@goof71)

    Hi !
    Still have the problem… (only on subjects).
    The location settings is ok.
    :/
    Regards

    Plugin Author Asgaros

    (@asgaros)

    Hello again,

    I justed released a new update. Can you please test if its working fine now?

    Hello ,

    Since the 1.2.6 uptade , i have a similar issue which is :

    -When i click on one of the forum sections the page doesnt display like the url cant be found , it stays on the same page ( main page where the forum is displayed with the shortcode [forum]). So i have no more way to access any subject , but they still exist.
    -Same issue with the widget links.

    So What could be a solution to solve it ? Downgrade to the 1.2.5 version ( i dont know if it’s possible).

    my website : https://stillinprogress.fr/

    Plugin Author Asgaros

    (@asgaros)

    @goof71
    @miseamort

    Hello again. Everyone who has problems with the links can please try the following with the LATEST 1.2.7 version:

    1. Open the file asgaros-forum/includes/forum.php
    2. Find the following code (around line 185):

    function setLinks() {
        global $wp;
        $this->links['home']        = esc_url(get_page_link($this->options['location']));
        $this->links['forum']       = esc_url(add_query_arg(array('view' => 'forum'), $this->links['home']));
        $this->links['topic']       = esc_url(add_query_arg(array('view' => 'thread'), $this->links['home']));
        $this->links['topic_add']   = esc_url(add_query_arg(array('view' => 'addthread'), $this->links['home']));
        $this->links['topic_move']  = esc_url(add_query_arg(array('view' => 'movetopic'), $this->links['home']));
        $this->links['post_add']    = esc_url(add_query_arg(array('view' => 'addpost'), $this->links['home']));
        $this->links['post_edit']   = esc_url(add_query_arg(array('view' => 'editpost'), $this->links['home']));
        $this->links['current']     = add_query_arg($_SERVER['QUERY_STRING'], '', trailingslashit(home_url($wp->request)));
    }

    3. Replace it with the following code:

    function setLinks() {
        global $wp;
        $this->links['home']        = get_page_link($this->options['location']);
        $this->links['forum']       = add_query_arg(array('view' => 'forum'), $this->links['home']);
        $this->links['topic']       = add_query_arg(array('view' => 'thread'), $this->links['home']);
        $this->links['topic_add']   = add_query_arg(array('view' => 'addthread'), $this->links['home']);
        $this->links['topic_move']  = add_query_arg(array('view' => 'movetopic'), $this->links['home']);
        $this->links['post_add']    = add_query_arg(array('view' => 'addpost'), $this->links['home']);
        $this->links['post_edit']   = add_query_arg(array('view' => 'editpost'), $this->links['home']);
        $this->links['current']     = add_query_arg($_SERVER['QUERY_STRING'], '', trailingslashit(home_url($wp->request)));
    }

    After that please test it again.

    If this fix should work, please leave me a message here as soon as possible so I can release a new updated version!

    • This reply was modified 8 years, 3 months ago by Asgaros.
    • This reply was modified 8 years, 3 months ago by Asgaros.

    Great , it works fine now , thanks for the code fix.

    Plugin Author Asgaros

    (@asgaros)

    @miseamort

    Thanks you very much for your fast reply! I will publish a new update in the next few minutes.

    I really apologize for the troubles which were caused by the last updates! ?? This bug only occurs with some WordPress configurations so I didnt notice it in my testing-environment. Sorry again!

    Thread Starter goof71

    (@goof71)

    Still have the problem with the fix.
    Sorry

    Plugin Author Asgaros

    (@asgaros)

    @goof71

    Can you please apply the v1.2.8 version, clear your browser-chache and disable maybe existing WordPress caching-plugins to make sure everything is generated with the newest files?

    If the problem still occurs: Do you have a link to your website so I can have a look?

    Thread Starter goof71

    (@goof71)

    Ok I do that !
    There’s something new applying the fix : the error message is now in french ??

    Thread Starter goof71

    (@goof71)

    Still have the problem. You ca have a look there : https://www.fanselanchalon.fr/v3/forums
    (Under the forum you have “Derniers messages” = Last Posts)
    Thanks !

    Plugin Author Asgaros

    (@asgaros)

    Okay, for testing purpose please open the following file:

    asgaros-forum/includes/forum-widgets.php

    With v1.2.8 installed please change line 92 from:
    if ($locationSetUp) {
    To:
    if (true) {

    When this is done I have to check the widget-links in your site again, but at least it should show us “something” which can help me to reproduce it.

    Thread Starter goof71

    (@goof71)

    Done ! And it works now !

    Plugin Author Asgaros

    (@asgaros)

    Strange …

    I actually cant really reproduce this at my testing-environment but I think it has something to do with the sequence stuff is loaded internally.

    I will try to figure it out. At the meantime its working for you with that “dirty” fix.

    Thread Starter goof71

    (@goof71)

    Thanks for all ??

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Widget problem’ is closed to new replies.