jeffreypicard / medieval-europe

Official repo of the web based game medieval-europe.eu
GNU General Public License v3.0
3 stars 2 forks source link

Religion status issue #14

Open Enoc-GitHub opened 4 years ago

Enoc-GitHub commented 4 years ago

When manually assigning (via SQL) a religion to a specific character, some religions work fine but others break the game in some ways (like when clicking on "Profile", the website shows a blank page with error message. No other issues´s been found yet).

Religions working fine:

Step by step: tracking2

This happens (expected result): Succesfully loads character´s profile page. ProfileSuccess

Religions broken:

Step by step: tracking

This happens (detected issue): ProfileIssueReligion

Enoc-GitHub commented 4 years ago

Logging details:

2020-04-14 00:12:18 +00:00 --- error: Uncaught PHP Error: Undefined variable: s in file application/models/church.php on line 49 2020-04-14 00:12:18 +00:00 --- debug: Error code: 8 - message : Undefined variable: s

SOLUTION:

religionissue

church.php religionforeachissue

jeffreypicard commented 4 years ago

@Enoc-GitHub I've made this change. If you can confirm that it fixes the issue you were seeing I'll close this issue.