averythomas
Member
Could you possibly check for 'minecraft_uuid' in the users Personal Details instead of xf_users?
I'm pretty sure me and @jflory7 are having the same issue, we're both using XenRegister but this add-on breaks the registration. http://www.spigotmc.org/resources/xenregister.536/
Could you possibly check for 'minecraft_uuid' in the users Personal Details instead of xf_users?
Yeah. I'll look into it right now
How does it break the registration exactly? I looked through the modifications for XenRegister and I can't see why it should break. Any kind of errors, or does the UUID simply not get set in the database, or something else?
I could customize it, but why would you need to?
Yeah it's because you have the `uuid` field not defaulting to anything. Set it to DEFAULT NULL and run a query to update any empty fields to NULL. Problem fixedThe registration breaks because xenAPI doesn't know what to do when there's a UUID field in the database that is empty.
When I made the add-on there was no reliable way to get a username from a UUID. You are right, I could change it, and I probably will, but I don't have too much time at the moment.Just a question, you allow users to enter their new username. Wouldn't it be easier just to add a REFRESH button that queries Mojangs API system to get the new username based on whatever their UUID is?
The registration breaks because xenAPI doesn't know what to do when there's a UUID field in the database that is empty.
Yeah it's because you have the `uuid` field not defaulting to anything. Set it to DEFAULT NULL and run a query to update any empty fields to NULL. Problem fixed
require_once($this->xfDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($this->xfDir. '/library');
XenForo_Application::initialize($this->xfDir . '/library', $this->xfDir);
XenForo_Application::set('page_start_time', microtime(TRUE));
// Disable XenForo's PHP
XenForo_Application::disablePhpErrorHandler();
require_once($this->xfDir . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader($this->xfDir. '/library');
XenForo_Application::initialize($this->xfDir . '/library', $this->xfDir);
XenForo_Application::set('page_start_time', microtime(TRUE));
$deps = new XenForo_Dependencies_Public();
$deps->preLoadData();
// Disable XenForo's PHP
XenForo_Application::disablePhpErrorHandler();
Huh. Maybe it's because the username is not a paid one. I have no idea... I'll look into itHmmm, seems I'm getting problems again. Any idea what this means?
http://paste.md-5.net/yopikajedi.coffee
There's about eight other error logs just like this one.
I double-checked for this username, and it was a paid account, which is why I didn't ignore it.Huh. Maybe it's because the username is not a paid one. I have no idea... I'll look into it
Hmm, that's odd. It might be a problem with Mojang's API, I have no idea. Bad Request means a client error though.I double-checked for this username, and it was a paid account, which is why I didn't ignore it.
https://minecraft.net/haspaid.jsp?user=xX__Shelton__Xx
ALTER TABLE `xf_user` CHANGE COLUMN `uuid` `uuid` CHAR(32) DEFAULT NULL ;
You have a very good point.I can't stress this enough:
PLEASE make sure any columns you add to default XF tables have a default value.
There is a bug in this add-on which would prevent registration completely if the add-on was installed but disabled. Please update and include this fix:
PHP:ALTER TABLE `xf_user` CHANGE COLUMN `uuid` `uuid` CHAR(32) DEFAULT NULL ;
Yeah that's probably a good idea, I'll implement it! Maybe mcUUID_uuid or something like that?Cool
Another wise suggestion: maybe change the column name to be unique like koolkrafter_uuid or something similar.
If XF were to add a uuid column (unlikely I know) then there might be issues.
Changed the UUID column so that it defaults to null, in case the add-on is disabled.
Thanks to Chris D for pointing this out!
Fixed it by setting the memory limit to unlimited "ini_set('memory_limit', '-1');"Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in /webserver/www/library/mcUUID/Model/UUID.php on line 36
I could fix your problem by making it do 100 users at a time - XenForo does a similar thing with the cache rebuild tool. I can't sort it out now, as I'm on holiday, but when I get back I'll sort that and the username thing out. Also I do agree that mojang's uuid lookup thing can be derpy at timesHad some issues generating the UUID column for our Xenforo forum. We have ~16,000 registered users, so maybe that's why.
I kept getting an error from the UUID rebuild tool:
Fixed it by setting the memory limit to unlimited "ini_set('memory_limit', '-1');"
Then, the script timed out so I just made the max execution time to 5 minutes, "ini_set('max_execution_time', 300);"
Probably not the most ideal patch, but I got it to generate all the UUIDs in the end.
59 of our users seem to have no UUID even though they have to register in-game.
Their accounts seem not to exist when looking them up with other UUID finders. Dang Mojang!
And it seems like username label was changed:
No big deal, just looks a tad odd.
Thanks for creating the addon, saved us a fair amount of work.
You need to find allow_url_fopen=0 and change it to allow_url_fopen=1 in your php.ini or ask your host to do it on your shared hosting.
We use essential cookies to make this site work, and optional cookies to enhance your experience.