Mickelukas
|
 |
«
Posted
2012-07-13 11:12:22 » |
|
(getting this on pages like "Mark all Messages as Read" and "Logout") 8: Undefined variable: seek File: /home/jgo/public_html/addon_pastebin.php Line: 12 EDIT: It works now again but maybe you want to have a look at it.  Mike
|
|
|
|
matheus23
|
 |
«
Reply #1 - Posted
2012-07-13 14:06:39 » |
|
I had the same error...
|
|
|
|
Riven
|
 |
«
Reply #2 - Posted
2012-07-13 14:32:51 » |
|
Even more worrying is that I didn't touch any PHP code in that file for weeks... Anyway, I fixed the issue with the missing variable: it was a typo in dead code... 
|
|
|
|
Games published by our own members! Check 'em out!
|
|
matheus23
|
 |
«
Reply #3 - Posted
2012-07-13 14:35:23 » |
|
Even more worrying is that I didn't touch any PHP code in that file for weeks... Anyway, I fixed the issue with the missing variable: it was a typo in dead code...  wtf... dead code? okey... EDIT: Yep, works for me now.
|
|
|
|
Riven
|
 |
«
Reply #4 - Posted
2012-07-13 14:40:32 » |
|
1 2 3 4
| $seed = time(); if(false) { $seek = 14; } |
|
|
|
|
princec
|
 |
«
Reply #5 - Posted
2012-07-13 15:03:47 » |
|
Reassuring to know half the internet runs on this sort of crap  Cas 
|
|
|
|
Riven
|
 |
«
Reply #6 - Posted
2012-07-13 15:40:49 » |
|
I'm going to be blatantly assume you didn't mean it as 'coded by the likes of Riven', and therefore wholeheartedly agree with you 
|
|
|
|
princec
|
 |
«
Reply #7 - Posted
2012-07-13 15:49:11 » |
|
|
|
|
|
princec
|
 |
«
Reply #8 - Posted
2012-07-13 15:49:51 » |
|
While you're at it 1 2 3
| 8: Undefined property: stdClass::$IS_ROOT File: /home/jgo/public_html/Themes/default/PersonalMessage.template.php (interleaved sub template - eval?) Line: 666 |
trying to access my PMs just now  Cas 
|
|
|
|
erikd
|
 |
«
Reply #9 - Posted
2012-07-13 15:52:38 » |
|
Line: 666 Common, you're making that up 
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Riven
|
 |
«
Reply #10 - Posted
2012-07-13 16:19:36 » |
|
While you're at it 1 2 3
| 8: Undefined property: stdClass::$IS_ROOT File: /home/jgo/public_html/Themes/default/PersonalMessage.template.php (interleaved sub template - eval?) Line: 666 |
trying to access my PMs just now  For the sake of it, a few hours ago I did a apt-get update / upgrade, so that at least we know we're running a safe version of everything, and hopefully stricter PHP parser. Let's assume that triggered it, and we're not being hacked by somebody that finds joy in configuring PHP installations to be less tolerant.
|
|
|
|
Riven
|
 |
«
Reply #11 - Posted
2012-07-13 16:24:04 » |
|
Evil? Yes, it was yet another typo on line 666.
|
|
|
|
princec
|
 |
«
Reply #12 - Posted
2012-07-13 16:33:32 » |
|
Friday the 13th, too. Creepy. Cas 
|
|
|
|
sproingie
|
 |
«
Reply #13 - Posted
2012-07-13 17:55:52 » |
|
|
|
|
|
|
|
|
Riven
|
 |
«
Reply #15 - Posted
2012-07-13 22:43:10 » |
|
Fixed. I'm incredibly uncomfortable with this sudden change in strictness. Not just because it exposed my sloppy PHP coding.
|
|
|
|
Cero
|
 |
«
Reply #16 - Posted
2012-07-13 23:38:12 » |
|
Incrementing (++) a NULL produces 1. Decrementing (--) a NULL produces NULL. Decrementing a string likewise leaves it unchanged. Made me smile. I like PHP. But yea its all over the place.
|
|
|
|
|
|
theagentd
|
 |
«
Reply #18 - Posted
2012-07-14 01:28:22 » |
|
I'm not a real programmer. I throw together things until it works then I move on. The real programmers will say "Yeah it works but you're leaking memory everywhere. Perhaps we should fix that." I’ll just restart Apache every 10 requests. I'm supposed to laugh, but just 4 hours ago my voxel renderer was using 5GBs of memory and having half-second GC pauses...
|
Myomyomyo.
|
|
|
ReBirth
|
 |
«
Reply #19 - Posted
2012-07-14 04:52:49 » |
|
Dead code, friday 13, line 666... wth is these?!  I didn't try the pastebin but the showcase's thumbnails panel was broke too.
|
|
|
|
|