Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (804)
Games in Android Showcase (239)
games submitted by our members
Games in WIP (868)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Forum Bug(s)  (Read 3596 times)
0 Members and 1 Guest are viewing this topic.
Offline Ecumene

JGO Kernel


Medals: 200
Projects: 4
Exp: 8 years


I did not hit her! I did not!


« Posted 2015-01-28 05:19:32 »

I've been going through JGO, and I've noticed on several different posts. SHC specifically keeps the page from loading. Here's the error I get ( see bottom note also! )







Notice something weird here?


Here's the error:
1  
2  
3  
2: log() expects parameter 1 to be double, string given
File: /home/jgo/public_html/addon_appreciation.php
Line: 191


Also, a post specifically with SHC posting on: http://www.java-gaming.org/topics/lwjgl-white-box-instead-of-texture/35458/msg/335757/view.html#msg335757 I think the two errors in the images are related. Not going to pretend to know PHP, but I think it's the string-> double thingy. Funny this is only for SHC, nobody else has these errors. (sorry for singling you out SHC...

I'm sure you guys have seen it by now. But I also wanted to start this topic for anyone else who want's to post a bug they've found. Rather than start a whole new topic.

Offline SHC
« Reply #1 - Posted 2015-01-28 06:40:08 »

I think he's purposely trying to break certain parts of the forum.

I'm not, I did some searching and I found it to be a coding joke embedded into SMF. If you remember your childhood, you may have written 1337 as leet, and that is itself the problem.

I've searched for this error in the internet, and found that it was some line in
Sources/Load.php
which is something like this (unsure, never seen myself, but a forum post on SimpleMachines community says this).

1  
'posts' => $profile['posts'] == 1337 ? 'leet' : comma_format($profile['posts'])

I think this is causing the error with your addon 'Appreciation' Riven, you are reading the display text instead of the post count that is stored internally.

So, I took this risk of posting this information, so hopefully that this will increase my post count, and also get this error solved.

Offline kpars
« Reply #2 - Posted 2015-01-28 07:20:18 »

-snip-

Huh, that actually made me smile a bit.
Damn easter eggs.

- Jev
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
Administrator

« JGO Overlord »


Medals: 1371
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3 - Posted 2015-01-28 10:04:33 »

Meh, stupid SMF. I don't actually have access to the 'internal data' in SMFs 'template engine'.

Sources/Load.php

1  
2  
3  
4  
5  
6  
array(
   ...
-   'posts' => $profile['posts'] > 100000 ? $txt[683] : ($profile['posts'] == 1337 ? 'leet' : comma_format($profile['posts'])),
+   'posts' => $profile['posts'],
   ...
);

Themes/default/Display.template.php

1  
2  
-   $postCount  = $message['member']['posts'];
+   $postCount  = intval($message['member']['posts']);

If there are other easter-eggs, the intval(...) will drop your $postcount to zero, which will reduce your rank somewhat - you might lose a star or two, until you once again have a post count that is expressed as a number. Roll Eyes

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline ra4king

JGO Kernel


Medals: 508
Projects: 3
Exp: 5 years


I'm the King!


« Reply #4 - Posted 2015-02-09 03:54:45 »

Oh but it was fun! Killjoy Roll Eyes

Pages: [1]
  ignore  |  Print  
 
 

 
Riven (581 views)
2019-09-04 15:33:17

hadezbladez (5510 views)
2018-11-16 13:46:03

hadezbladez (2402 views)
2018-11-16 13:41:33

hadezbladez (5772 views)
2018-11-16 13:35:35

hadezbladez (1223 views)
2018-11-16 13:32:03

EgonOlsen (4661 views)
2018-06-10 19:43:48

EgonOlsen (5682 views)
2018-06-10 19:43:44

EgonOlsen (3198 views)
2018-06-10 19:43:20

DesertCoockie (4095 views)
2018-05-13 18:23:11

nelsongames (5115 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!