• Welcome to Simple Machines Community Forum. Please login or sign up.
December 07, 2021, 04:52:55 PM

News:

Want to get involved in developing SMF, then why not lend a hand on our github!


Battle

Started by Chen Zhen, July 13, 2009, 08:44:54 AM

Previous topic - Next topic

Shades.

Just installed this on 2.1RC4 and get this error:

Quoteabase Error
BLOB/TEXT column 'outcome1' can't have a default value
File: /home2/xxxxx/public_html/xxxxx/Packages/temp/installScriptX.php
Line: 379

270 of the following in admin on one page load:

QuoteError
Type of error
General
Error message
The callable battle_language could not be called.
URL of page causing the error
https://xxxxx.com/index.php?action=admin;area=logs;sa=errorlog;desc

Backtrace information
#0: call_helper()
Called from /home2/xxxxx/public_html/xxxxx/Sources/Subs.php on line 5699
#1: call_integration_hook()
Called from /home2/xxxxx/public_html/xxxxx/Sources/Load.php on line 475
#2: reloadSettings()
Called from /home2/xxxxx/public_html/xxxxx/index.php on line 138

QuoteError
Type of error
General
Error message
Hook call: function "battle_language" in file /home2/xxxxx/public_html/xxxxx could not be called.
URL of page causing the error
https://xxxxx.com/index.php?action=admin;area=logs;sa=errorlog;desc

Backtrace information
#0: call_integration_hook()
Called from /home2/xxxxx/public_html/xxxxx/Sources/Load.php on line 475
#1: reloadSettings()
Called from /home2/xxxxx/public_html/xxxxx/index.php on line 138

And it's not installed. I guess it installed the hooks only I have to delete them individually?

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Diego Andrés

It's outdated I think, try the one on Chen Zhen signature or the package from GitHub?
Although hasn't been updated for a while there either. https://github.com/Underdog-01/Battle

SMF Tricks - Free & Premium Responsive Themes for SMF.

Shades.

Ok well the one on here said last updated October 15, 2021, 11:01:48 PM otherwise I wouldn't have even tried it lol!

Yeah and the one over at his site is same version so hmmm...

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Chen Zhen


Thanks for the report.

Your MySQL or MariaDB likely has some sort of strict mode enabled which won't allow/tolerate default values for text columns. It shouldn't be necessary for those to have default values so I just changed the installer.

Try the updated version & let me know if it works for you.

My SMF Mods & Plug-Ins

WebDev


"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

Shades.

Quote from: Chen Zhen on October 22, 2021, 06:03:50 PMThanks for the report.

Your MySQL or MariaDB likely has some sort of strict mode enabled which won't allow/tolerate default values for text columns. It shouldn't be necessary for those to have default values so I just changed the installer.

Try the updated version & let me know if it works for you.
Sorry it took me so long to reply, I've been ill for a bit but all better now.

I download the latest version and everything is working great now. Thanks 8)

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

While "Exploring" and then battling a monster and after beating it I got an error in admin only:

QuoteError
Type of error
General
Error message
8: Trying to access array offset on value of type int
File
/home2/*****/public_html/*****/Sources/BattleQuests.php
Line
189
URL of page causing the error
https://*****.com/index.php?action=battle;sa=quest;home;

Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Sources/BattleQuests.php on line 189
#1: battle_quest()
Called from /home2/*****/public_html/*****/Sources/Battle.php on line 109
#2: battle()
Called from /home2/*****/public_html/*****/index.php on line 187

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Advertisement: