The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error using New SphereServer 56c
Author Message
invernizzi
Apprentice
*

Posts: 24
Likes Given: 8
Likes Received: 1 in 1 posts
Joined: Jul 2016
Reputation: 0



Post: #1
Error using New SphereServer 56c
Hi folks,

I need some help to use new version of Sphere, my server uses MySQL 5.1, and I trying to update Sphere, but I have some problems:

Using SphereServer 0.56c Pre-releases and MySQL.dll from tha same download page (http://prerelease.sphere.torfo.org/index.php), when I use any DB.QUERY the console sends an error:

17:34:CRITICAL:(Funcoes_MySQL.scp,113)"Access Violation" (0xdde14), in CScriptObj::Verb()
17:34:DEBUG:command 'DB.Query' args '"SELECT * From uo_person Where serial='0ec35e' and server='HellFire';' [13D38D74]
17:34:DEBUG:__ thread (172) __ | # | _____ function _____________ | ticks passed from previous function start ______
17:34:DEBUG:>> 172 | 0 | CWorld::OnTick | +0
17:34:DEBUG:>> 172 | 1 | CGObList::DeleteAll | +0
17:34:DEBUG:>> 172 | 2 | CClient::CharDisconnect | +0
17:34:DEBUG:>> 172 | 3 | CChar::OnTrigger | +0
17:34:DEBUG:>> 172 | 4 | CScriptObj::OnTriggerScript | +0
17:34:DEBUG:>> 172 | 5 | CScriptObj::OnTriggerRunVal | +0
17:34:DEBUG:>> 172 | 6 | CScriptObj::OnTriggerRun | +0
17:34:DEBUG:>> 172 | 7 | CChar::r_Verb | +0
17:34:DEBUG:>> 172 | 8 | CObjBase::r_Verb | +0
17:34:DEBUG:>> 172 | 9 | CScriptObj::r_Call | +0
17:34:DEBUG:>> 172 | 10 | CScriptObj::OnTriggerRun | +0
17:34:DEBUG:>> 172 | 11 | CScriptObj::OnTriggerRun | +0
17:34:DEBUG:>> 172 | 12 | CChar::r_Verb | +0
17:34:DEBUG:>> 172 | 13 | CObjBase::r_Verb | +500
17:34:DEBUG:>> 172 | 14 | CScriptObj::r_Verb | +0 <-- exception catch point (below is guessed and could be incorrect!)
17:34:DEBUG:>> 172 | 15 | CGFile::Close | +16
17:34:CRITICAL:(Funcoes_MySQL.scp,113)"Access Violation" (0xdde14), in CScriptObj::Verb()
17:34:DEBUG:command 'DB.Query' args '"SELECT * From uo_person Where serial='0ec35e' and server='HellFire';' [13D38D74]


I try to use the Nightly, with new MYSQL.DLL, but SphereServer dont initialize, an error in "KERNEL" occur.

Any one can help?
07-11-2016 06:46 AM
Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #2
RE: Error using New SphereServer 56c
is sphere connected to db??
pass and login are correct?
table names etc..
07-12-2016 12:06 AM
Find all posts by this user Like Post Quote this message in a reply
invernizzi
Apprentice
*

Posts: 24
Likes Given: 8
Likes Received: 1 in 1 posts
Joined: Jul 2016
Reputation: 0



Post: #3
RE: Error using New SphereServer 56c
Yes, all is fine, with the older EXE of Sphere no erros occurs.
07-12-2016 02:22 AM
Find all posts by this user Like Post Quote this message in a reply
invernizzi
Apprentice
*

Posts: 24
Likes Given: 8
Likes Received: 1 in 1 posts
Joined: Jul 2016
Reputation: 0



Post: #4
RE: Error using New SphereServer 56c
I found the problem, the "SELECT" command dont accept "*" clause, when I change to the name of columns no more errors occurs. Thanx all.
07-14-2016 05:18 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes invernizzi's post
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #5
RE: Error using New SphereServer 56c
ty for posting the solution Big Grin
07-15-2016 06:03 AM
Find all posts by this user Like Post Quote this message in a reply
invernizzi
Apprentice
*

Posts: 24
Likes Given: 8
Likes Received: 1 in 1 posts
Joined: Jul 2016
Reputation: 0



Post: #6
RE: Error using New SphereServer 56c
But the problem persist when I use many fields (columns), heheh. Im trying to modify many scripts to minimize it, very dificult! heheh
07-15-2016 02:04 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #7
RE: Error using New SphereServer 56c
are you using win or linux build?

here on win build I'm using DB.QUERY "SELECT * FROM ..." without any problem
07-16-2016 07:05 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #8
RE: Error using New SphereServer 56c
Reading what you said it seems that it cannot handle as much information as it did before.
07-16-2016 07:45 PM
Find all posts by this user Like Post Quote this message in a reply
invernizzi
Apprentice
*

Posts: 24
Likes Given: 8
Likes Received: 1 in 1 posts
Joined: Jul 2016
Reputation: 0



Post: #9
RE: Error using New SphereServer 56c
Im using win version, perhaps the name of column is the problem, i need to test it, try to rename some large column names, and dont use "_" as separator.

But when I use the same command, but using less columns, no error occurs, strange. I will test more possibilitys.
07-20-2016 03:50 AM
Find all posts by this user Like Post Quote this message in a reply
invernizzi
Apprentice
*

Posts: 24
Likes Given: 8
Likes Received: 1 in 1 posts
Joined: Jul 2016
Reputation: 0



Post: #10
RE: Error using New SphereServer 56c
I need a help about this problem, any one can help me? I do a little test with my script, and share the result (Dialog):

DB.Query "SELECT serial,nome,venda,valor From uo_person Where venda=1 and server='HellFire' Order by nome Limit <Eval (<cTag.Dialogindex>)>,<Eval (<cTag.Dialogindex>+19)>";
For index 0 18
Serv.Log = "Index: <Eval <local.index>> Nome: <db.row.<Eval (<local.index>)>.nome> Valor: <db.row.<Eval <local.index>>.valor> Venda: <db.row.<Eval <local.index>>.venda>"
EndFor

LOG on sphere:

17:25:(CashShop_MySQL.scp,254)Index: 0 Nome: A p o l l o Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 1 Nome: Abdenago Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 2 Nome: Abstration Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 3 Nome: AnDrE Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 4 Nome: Angelflames Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 5 Nome: Axelrud Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 6 Nome: BoO Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 7 Nome: ByRoN Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 8 Nome: CerberuS Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 9 Nome: Cyclone Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 10 Nome: Dare Devil Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 11 Nome: Diabinha Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 12 Nome: Filth Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 13 Nome: Hawk Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 14 Nome: Igor Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 15 Nome: Jujuba Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 16 Nome: Kubuntu Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 17 Nome: Lucjonny Valor: 0 Venda:
17:25:(CashShop_MySQL.scp,254)Index: 18 Nome: Papai Smurf Valor: 0 Venda:


The name of person is correct, but "valor" (expected value 1) and "venda" (expected values like 5000, 10000...) not. This columns are INT, im using the last Nightly Build.

The character set of my table is UTF8 and engine is MyISAM
08-25-2016 06:33 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)