Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

New discussion button displayed while disconnected

Hello, I've got a probelm with my installation of Vanilla Forums 2.2. I imported data from Vanilla 2.1b and all seemed ok, but I just notice that the button "new discussion" stay displayed even when the user is disconnected.
When clicking on it, you can see the whole new discussion form, but when validating, there is an error message:

InsertUserID is required.

Can you please help me, i tried deactivating all plugins, but none seems to be responsible :(

«1

Comments

  • Options
    hgtonighthgtonight ∞ · New MVP

    What does your permissions table look like?

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    Thanks for your reply hgtonight :)

    Are you talking about the mysql table?
    If it is the case, here is it, as attachment

  • Options
    hgtonighthgtonight ∞ · New MVP

    Nothing looks out of the ordinary. What theme are you using?

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    It's a variant of bittersweet , but whatever theme I choose, I got the same strange error (for example baseline)

    Furthermore, I have several languages sharing the same codebase, except the folders "cache", "conf" and "uploads".

    Only english language has this problem, the others don't have this weird behaviour.

    The problem should be imho in conf or cache files, or in database...

  • Options

    The problem is really in the database, i tried connecting to another database, it's working correctly...

  • Options

    @rjadot said:
    The problem is really in the database, i tried connecting to another database, it's working correctly...

    Get the structure of non-working db and working db. Compare both structures

    There was an error rendering this rich post.

  • Options

    Here it is: vn_fr.txt is ok, vn_ru.txt not ok. I made a comparison with diff command (diff.txt) from ok to no ok. However, have difficulties to see where there could be a problem. Do you know a better way to compare structures?

  • Options

    BTW thanks for helping me too UnderDog :)

  • Options

    I'm sorry, I cannot read those files on my mobile phone. Did you compare DB structures or language structures?

    We need help from @hgtonight @peregrine and @vrijvlinder (v-doc) it's good that you created txt files, I just need to read them on my phone (~~~ please, guys)

    There was an error rendering this rich post.

  • Options

    @UnderDog said:
    I'm sorry, I cannot read those files on my mobile phone. Did you compare DB structures or language structures?

    I compared structures :)

  • Options
    hgtonighthgtonight ∞ · New MVP

    I just looked at those files on my phone, and there is no data in there.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    @underdog i meant db structure

  • Options

    @hgtonight I only dumped the structure of the databases. Should I dump the data too?

  • Options

    The database vn_ru (the one not working) with data is around 5.4 MB, so it's too big for being downloaded here.

  • Options
    x00x00 MVP
    edited September 2013

    hold on a sec why not give us a link? To the site that is. Don't post your data.

    grep is your friend.

  • Options

    I uploaded in 2share (I hope this is a good service, this is the first time I use it)

    http://www.2shared.com/document/AREI2x18/vn_ru.html

  • Options

    I'm more interested in the site TBH.

    grep is your friend.

  • Options

    I wouldn't publicly upload a dump of your database without removing any sensitive information first.

    I would remove that.

    grep is your friend.

  • Options
    rjadotrjadot New
    edited September 2013

    @x00 you're right, I deleted the uploaded dump of database.

    The site in production is https://forums.openmandriva.org/en
    but for testing purpose, in order to spot the problem, i imported the database in russian language which is not yet in use:
    https://forums.openmandriva.org/ru
    (btw as it's certified by CAcert, you may have some ssl/tls warning)

  • Options
    x00x00 MVP
    edited September 2013

    it is not possible to post without a session, although this is misleading.

    I suspect this from how you dumped and reimported the data, the roles/permission is sensitive to NULL vs empty values, etc.

    first try default theme however.

    Otherwise you can temporary enable CanSession for Guest in the GND_roles table to then check if there is any permission weirdness.

    Also double check there is not UserID 0 in the GDN_User Table

    grep is your friend.

Sign In or Register to comment.