News:

Wondering if this will always be free?  See why free is better.

Main Menu

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 - My Themes on SMF | My Themes on ShadesWeb
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 - My Themes on SMF | My Themes on ShadesWeb
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 - My Themes on SMF | My Themes on ShadesWeb
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 - My Themes on SMF | My Themes on ShadesWeb
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.

#466
2.1RC4 - Battle V1.17.7

Playing around today and clicked on "Quests" and received the following error in admin:

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

Also get the following error 12 times when editing battles in admin:

QuoteError
Type of error
Undefined_vars
Error message
8: Undefined index: battle_campaign_membergroups
File
/home2/*****/public_html/*****/Themes/default/Battle_Admin.template.php
Line
1071
URL of page causing the error
https://*****.com/index.php?action=admin;area=battle;sa=edit_campaign;id_campaign=1;

Backtrace information
#0: smf_error_handler()
Called from /home2/*****/public_html/*****/Themes/default/Battle_Admin.template.php on line 1071
#1: template_campaignEdit()
Called from /home2/*****/public_html/*****/Sources/Load.php on line 2701
#2: loadSubTemplate()
Called from /home2/*****/public_html/*****/Sources/Subs.php on line 4051
#3: obExit()
Called from /home2/*****/public_html/*****/index.php on line 190
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
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 reports.



I updated the package to version 1.17.8 which should fix what you reported.
Campaign/quest permissions are no longer restricted to post based membergroups.
You can now opt regular or post based membergroups from the Battle Admin->Config page.
This enables permission settings for your campaigns in the types of membergroups that are opted.

You can use the link in your Battle Admin page to download the updated package.

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

TurtleKicker

Is an update for SMF 2.1.1 on the radar?

Advertisement: