Titan Network

More Titan Projects => City Info Tracker => Bugs and Support => Topic started by: PsychicG on March 01, 2011, 08:39:03 PM

Title: PHP Errors?
Post by: PsychicG on March 01, 2011, 08:39:03 PM
Is the CIT site currently bugged? I went to see which exp badges I'm missing on a couple characters just now, and loading their page gives me 3 PHP errors at the top of the page, and the badgeprogress bars are all wacky. I hit expand on the exploration category just to see what would happen....and more PHP errors  :'(
Title: Re: PHP Errors?
Post by: Sekoia on March 01, 2011, 08:50:30 PM
Thanks for reporting this. Can you tell me:
1. What URL (or URLs) you're looking at
2. Which character (or characters) you're looking at
Title: Re: PHP Errors?
Post by: SaintNicster on March 01, 2011, 08:50:42 PM
Specific pages help them root out errors, but it does look like error reporting was changed to E_ALL

http://cit.cohtitan.com/ingame/all/138
Occurs
Quote
A PHP Error was encountered
Severity: Notice

Message: Use of undefined constant Exploration - assumed 'Exploration'

Filename: views/ingame_view.php

Line Number: 45
Showing up under each of the badge category headers
Title: Re: PHP Errors?
Post by: SaintNicster on March 01, 2011, 08:54:24 PM
http://cit.cohtitan.com/manage/global_badges
Quote
A PHP Error was encountered
Severity: Notice

Message: Undefined variable: global_badges

Filename: manage/global_badge_view.php

Line Number: 18

http://cit.cohtitan.com/manage/unverified
Quote
Severity: Notice

Message: Undefined index: user

Filename: models/badges.php

Line Number: 303
Title: Re: PHP Errors?
Post by: SaintNicster on March 01, 2011, 09:00:11 PM
http://cit.cohtitan.com/checklist/export/json/cijsEpsz1ZKNl

PHP Errors inside the generated JSON structures.

Quote
{
   "char_name" : "Robabe",
   "alignment" : "Villain",
   "server"    : "Champion",
   "badge_types" : [
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: Notice</p>
<p>Message:  Undefined variable: outer_count</p>
<p>Filename: views/checklist_json_view.php</p>
<p>Line Number: 11</p>

</div>
      {
Title: Re: PHP Errors?
Post by: SaintNicster on March 01, 2011, 09:01:46 PM
**misclick**
Title: Re: PHP Errors?
Post by: Sekoia on March 01, 2011, 09:03:54 PM
Specific pages help them root out errors, but it does look like error reporting was changed to E_ALL

I just turned that off to silence these errors since they're all just warnings.

Thanks for reporting the various pages! I'd really like to fix these errors, even if they're now suppressed.