These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

[EVEOTS] Eve Online Teamspeak 3 API Registration with PHP5 v1.8

First post
Author
Enkki
Demise and Vestige
#81 - 2012-01-16 01:10:29 UTC
Hey I have installed this for a corp and all working fine apart from one member that cant register as his name contains '

When the script runs to verify the api it is rejected as it has added a / before the '.

Is there anyway to fix this or will the corp member just have to register an alt with the same name without the '?
MJ Maverick
Hybrid Industrial
#82 - 2012-01-16 01:47:12 UTC
I'm going to need the full error and/or text that is displayed. Also is he a blue or a corp member? The problem most likely isn't the ' as EVEOTS has no problem with them. It is just printing his name as EVEOTS uses it, with a \ which is perfectly fine.
Enkki
Demise and Vestige
#83 - 2012-01-16 23:13:55 UTC
Sorry for the late reply finally got the full error message

Character: Sephrina D\'an

An error occured: Make sure you have entered your character name correctly. (Error: Invalid or missing list of names.) [195]
MJ Maverick
Hybrid Industrial
#84 - 2012-01-16 23:23:49 UTC  |  Edited by: MJ Maverick
Enable Debug Mode and Evemail me the new messages. I think I know what may be wrong.

I'll need ALL the messages printed on the page. Feel free to censor out the API if you want, makes no difference.
Enkki
Demise and Vestige
#85 - 2012-01-16 23:38:03 UTC
Debug: Running: Teamspeak 3 PHP Framework version: 1.1.5-beta

API Connection was established.

Checking...
Character: Sephrina D\'an
Debug: Key ID:
Debug: vCode:

An error occured: Make sure you have entered your character name correctly. (Error: Invalid or missing list of names.) [195]

This is everything from the page that was text. with the api codes removed
MJ Maverick
Hybrid Industrial
#86 - 2012-01-16 23:57:46 UTC  |  Edited by: MJ Maverick
Ok, replace index.php with this one, tell me what it outputs. Replace it with your old index.php after. www.sev3rance.com/mav/index.zip

Do you have magic quotes turned on in your php.ini?
Enkki
Demise and Vestige
#87 - 2012-01-17 00:09:30 UTC
API Connection was established.

Sephrina D\'an 122
Sephrina D\'an 139
Sephrina D\'an 147
Checking...
Character: Sephrina D\'an

Sephrina D\'an 183
Sephrina D\'an 186
An error occured: Make sure you have entered your character name correctly. (Error: Invalid or missing list of names.) [201]

Magicquotes was turned off but i have now enabled it

thanks so much for this help donation will be on the way once my corp has some isk to spend
MJ Maverick
Hybrid Industrial
#88 - 2012-01-17 00:30:50 UTC
No problem and thanks. :)

I'm pretty sure this is caused by magic quotes being turned ON. As a work around if you are still getting it when turned off (probably have to reboot Apache) you can try this:

Underneath line 121, create a new line so the code is like this:
Quote:

121: $inputName = trim($_POST["inputName"]);
122: $inputName = stripslashes($inputName);
123: $inputID = trim($_POST["inputID"]);


Do the same under line 409:
Quote:

409: $nickname = $_POST["nickname"];
410: $nickname = stripslashes($nickname);
411: $usergroup = $_POST["usergroup"]
Enkki
Demise and Vestige
#89 - 2012-01-17 00:39:05 UTC
Thanks so much that has fixed the issue.

I thought it might have been stripslashes was needed once I started to read about magic quotes but as I know feck all about php had no idea where I would need to put it.

Will be winging a donation your way as soon as my isk supply recovers.
MJ Maverick
Hybrid Industrial
#90 - 2012-01-17 00:40:27 UTC
Hehe, much appreciated and glad to of helped. Enjoy EVEOTS.
bastrian
Deep Core Mining Inc.
Caldari State
#91 - 2012-01-17 11:40:59 UTC
Just found the solution for that 'ssl certificate problem verify that the ca cert is ok' error. It's just a temp fix but it works.

Adding in the Pheal.php after line 320 a new line with this:
curl_setopt(self::$curl, CURLOPT_SSL_VERIFYPEER, false);
will stop the certificate verification.

This is a Inappropriate signature. Please share it! Bastrian

Grissom Wife
Global Dynamics Production
#92 - 2012-01-29 12:42:52 UTC  |  Edited by: Grissom Wife
Need some support


In Admin pannel some thing goes wrong:
members which registered are not showing in members audit, but it shows this

[quoteWarning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/ruugsmir/data/www/auth.globaldynamic.ru/admin/admin_panel.php on line 601 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /var/www/***r/data/www/***/admin/admin_panel.php on line 603 Registered members.
0 Excluding blues.

Back | Next
2 / 0
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /var/www/***/data/www/***/admin/admin_panel.php on line 640
Database ID
Back | Next][/quote]



Also on login page to admin pannel in first line i can see:
Notice: Use of undefined constant EVEOTSusername - assumed 'EVEOTSusername' in /var/www/***/data/www/***/admin/index.php on line 3



Also, on user registration page, i see such warnings

Quote:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /var/www/***/data/www/***/functions.php on line 66 Debug: Database ID: 3
MJ Maverick
Hybrid Industrial
#93 - 2012-01-29 20:00:17 UTC
To be honest Grissom I'm surprised anything is working at all.

Either:
You haven't installed the database when you installed EVEOTS.
Your database is monstrously messed up.
You have upgraded from an old version (pre 1.7) and not upgraded your database and perged your user list, and your database is horribly messed up.
Or your database details are incorrect (unlikely though).

You're best doing a fresh install. Including a wipe of Teamspeak registrations (just create a duplicate group and use that as the new registration group and delete the old one).
Argus Enigmatus
Caldari Provisions
Caldari State
#94 - 2012-01-31 06:44:37 UTC
I've installed your Tool

it is working nice with one exception

as soon as a member sends his api

it ends up like this:

API Connection was established.

Checking...
Character: XXXXXXXXX

You are on our alliance whitelist


and nothing more happens

any kind of ideas?

Cheers
MJ Maverick
Hybrid Industrial
#95 - 2012-01-31 18:56:08 UTC
Turn on debug, then what does it say?
Hired Assasin
State Protectorate
Caldari State
#96 - 2012-02-02 17:38:11 UTC
Argus Enigmatus wrote:
I've installed your Tool

it is working nice with one exception

as soon as a member sends his api

it ends up like this:

API Connection was established.

Checking...
Character: XXXXXXXXX

You are on our alliance whitelist


and nothing more happens

any kind of ideas?

Cheers


you did set what group they join right?

Teamspeak 3 with API and Web Interface Hosting with Member Rewards!! : http://alturl.com/asde8 Catch me on EVE Gate, im allmost always on it!

Hired Assasin
State Protectorate
Caldari State
#97 - 2012-02-03 16:01:39 UTC  |  Edited by: Hired Assasin
Added a little feature to the register page so you can select country

so when a person is registering they select their country and the script registers them to the country they selected like so: here

Teamspeak 3 with API and Web Interface Hosting with Member Rewards!! : http://alturl.com/asde8 Catch me on EVE Gate, im allmost always on it!

White Aerosmith
Doomheim
#98 - 2012-02-13 11:01:27 UTC
Quote:
**** of The Scope is not in the alliance or corp whitelists, trying to remove their access...
Warning: Failed to remove access.*** (Error: invalid clientID) [113]


Where should i search for bug?
Hired Assasin
State Protectorate
Caldari State
#99 - 2012-02-13 11:09:57 UTC  |  Edited by: Hired Assasin
White Aerosmith wrote:
Quote:
**** of The Scope is not in the alliance or corp whitelists, trying to remove their access...
Warning: Failed to remove access.*** (Error: invalid clientID) [113]


Where should i search for bug?


not sure what it could mean with invalid clientID, has he still got access? he might of been deleted from the teamspeak database thus for the invalidID, but not sure really.

Teamspeak 3 with API and Web Interface Hosting with Member Rewards!! : http://alturl.com/asde8 Catch me on EVE Gate, im allmost always on it!

White Aerosmith
Doomheim
#100 - 2012-02-13 12:13:26 UTC
it was deleted from TS DB, but stay in tool db...