Git Product home page Git Product logo

Comments (25)

Fonta avatar Fonta commented on June 27, 2024

Try to uninstall and install from the plugin panel in the ACP.
Might be that the memberstatus row isn't added to the mybb_users table.

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

I still get the same error "Fatal error: Call to a member function fetch_array() on a non-object in C:\xampp\htdocs\inc\plugins\tslink\tslinkfunctions.php on line 282"

from tslink.

Fonta avatar Fonta commented on June 27, 2024

Can you try to change line 280 & 281 from:
$$mybb_user_query = "SELECT * FROM $table WHERE HEX(lastip) = '$mybb_ip' LIMIT 1";
$mybb_users = $ConnectDB->query($$mybb_user_query);
to:
$mybb_user_query = "SELECT * FROM $table WHERE HEX(lastip) = '$mybb_ip' LIMIT 1";
$mybb_users = $ConnectDB->query($mybb_user_query);

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

Fatal error: Call to a member function fetch_array() on a non-object in C:\xampp\htdocs\inc\plugins\tslink\tslinkfunctions.php on line 282

from tslink.

Fonta avatar Fonta commented on June 27, 2024

For testing, put the following between line 281 and 282 in tslinkfunctions.php
print_r($mybb_users->fetch_array(MYSQLI_ASSOC));
die();
So it will look like this: http://i.imgur.com/LFkipGg.png
After placing it, press the update groups button in the UserCP.
Tell me if you get back an array with a whole bunch of information like here: http://hastebin.com/timogekami.txt
or if you get an error.

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

Fatal error: Call to a member function fetch_array() on a non-object in C:\xampp\htdocs\inc\plugins\tslink\tslinkfunctions.php on line 282

http://prntscr.com/5pnyj7 - screen of code so u know its right lulz

from tslink.

Fonta avatar Fonta commented on June 27, 2024

I think you're getting a sql error because the error you're getting means it doesn't have anything to work with.
Let's see if we're able to get the sql error visible. Try to change to block to this:
http://hastebin.com/inuxomuluz.php

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

Fatal error: Call to a member function fetch_array() on a non-object in C:\xampp\htdocs\inc\plugins\tslink\tslinkfunctions.php on line 282
im still getting this after changing that block, im sorry if this makes you mad i understand if u cant help any more.

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

im using mysql through xxamp btw

from tslink.

Fonta avatar Fonta commented on June 27, 2024

Probably some kind of caching going on.
Try to put this after line 282:
echo "test";
die();

so it will look like this:
http://i.imgur.com/9I3YIOM.png

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

http://prntscr.com/5po9lp

:(

from tslink.

Fonta avatar Fonta commented on June 27, 2024

try putting the echo on line 282 and so line 282 becomes 283.
See if it gives the test in front of the error.
And try it from here:
http://nameless-community.com/usercp.php?action=tslink

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

http://prntscr.com/5poegg

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

http://prntscr.com/5poeso

from tslink.

Fonta avatar Fonta commented on June 27, 2024

die(); has to be underneath. http://i.imgur.com/bNMM5HK.png
Your webserver is caching. Restart it to clear the cache.

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

http://prntscr.com/5pojco

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

http://prntscr.com/5pojnm
ok now im getting "test"

from tslink.

Fonta avatar Fonta commented on June 27, 2024

What do you get if you change the echo "test";
to:
print_r($mybb_users);
Something like this?
http://i.imgur.com/ouzBYST.png

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

http://prntscr.com/5pooh0

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

:(

from tslink.

Fonta avatar Fonta commented on June 27, 2024

If you change print_r($mybb_users); to:
echo $mybb_ip;
Does it give some hex code?
And if yes, is it the same as in the database -> mybb_users -> lastip
Are these the same?
Your user account is not being found in the database.
That's why you're getting an error.

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

http://prntscr.com/5ppibq
still this!

from tslink.

Fonta avatar Fonta commented on June 27, 2024

That's really really strange because that would mean that it's isn't getting results from the database because there isn't any ip address being used.
Are you sure you didn't forget to clear your cache?
What version of php are you running?
can you make a screenshot of the last part of the config.php? This is where the ip is being converted to hex.

from tslink.

fatboi615 avatar fatboi615 commented on June 27, 2024

http://prntscr.com/5pq95l

from tslink.

Fonta avatar Fonta commented on June 27, 2024

Hi Fatboi, I don't know if you solved the issue but I've changed some things and fixed some minor bugs. Your issue of not getting results back from the database might also be solved with this.
It might be that your mybb database uses a other prefix than mybb_.

from tslink.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.