Notings of Attention™
Acmlmboard 2 Released
Github/GIT | @acmlmboard
Chatting Places
Discord

Affiliates
Super Mario Bros. X | Kuribo64
Views: 8,952,569
Main | FAQ | IRC chat | Memberlist | Active users | Latest posts | Stats | Ranks | Online users | Search
03-28-24 07:49 PM
Guest: Register | Login

0 users currently in AcmlmBoard Developer Zone | 1 bot

Main - AcmlmBoard Developer Zone - Massive amount of undefined constant notices?
Next newer thread | Next older thread


Tyty
Posted on 12-11-13 11:01 PM Link | ID: 38614
Normal User

Tektite

Level: 18


Posts: 31/52
EXP: 25013
Next: 4884

Since: 01-21-12

Last post: 762 days
Last view: 367 days
Hey guys, I'm testing out using acmlmboard2 over ABXD, as maybe a solution to some of the segfault woes we've been getting on a board software we're using (And maybe so I can develop some method of post-saving, as we typically do a lot of story stuff and it would be nice to have)

I'm fairly sure I installed the software right, but my test board does uh... this



Now, I'm rather new to PHP, and although it seems I could fix this by turning on something that suppresses the reporting of these warnings, I'd rather not as I'd like to see them while developing. I'm wondering if I've messed something up to cause these issues?


Arisotura
Posted on 12-11-13 11:02 PM Link | ID: 38615
Developer
pancakes
Level: 83


Posts: 447/1868
EXP: 5395498
Next: 36723

Since: 01-05-12
From: France

Last post: 654 days
Last view: 193 days
Change your server's error reporting settings to not include E_NOTICE.

____________________
Kuribo64 - melonDS

want some revolution in your coffee?

Epele
Posted on 12-11-13 11:14 PM Link | ID: 38616
Site Administrator
The Sorceress.
Boing~

Level: 235


Posts: 6101/20774
EXP: 200184116
Next: 1741776

Since: 01-01-12
From: UK

Last post: 813 days
Last view: 7 hours
That's where there's a bunch of code which could do with cleaning up to be more explicit and less assuming.

There's just a boatload of them.. >_>


The world could always use more heroes!

NightKev
Posted on 12-12-13 01:16 AM Link | ID: 38677
Normal User

Level: 29


Posts: 169/169
EXP: 143084
Next: 4801

Since: 08-17-12

Last post: 3759 days
Last view: 3618 days
Another option is using not-acmlmboards.


Emuz
Posted on 12-12-13 01:38 AM Link | ID: 38678
Site Administrator

11 Hit Combo:
Mother's Rosario
Level: 108


Posts: 1972/3392
EXP: 13210958
Next: 309541

Since: 12-30-11
From: Akron, Ohio; USA

Last post: 115 days
Last view: 19 hours
It comes with the territory. Doing what @Mega-Mario suggests is the standard procedure. This is a side effect of when the original code base was written, and some less than optimal choices. They are just warnings mostly about how variables are defined and initialized.

The Dynamic Profile Administratorâ„¢


"Never Knows Best"
Note: if you can see this my layout broke. ALL THE CREDITS WILL BE REVEALED!!
'Victory Noriko' by @thatsheepagain.
'Chibi Dance Noriko' by @Haru__Kitsu.
'Deity's Night Out (Featuring Gabbie)'
by @thatsheepagain
Noriko Emotes by @Haru__Kitsu.
Side Bar Noriko by @thatsheepagain
'Noriko's Nature Walk' by @projectTiGER_
Emotive Noriko by @thatsheepagain.
"Space Candy Noriko" by BerryVerrine.
"Super Sharp Noriko" by Xionfes.
A gift illustration from the wonderful EverKinzPony!
"Magical Girl Noriko" by @cute_hospital!
"Patient Chibi Noriko" by @Ruii_ki!
'Dapper '60s Noriko' by @thatsheepagain.
'Shiny Chibi Noriko' by @inioli.
'Flower Veil Noriko' by @Sushiee_.
'Noriko in Realism' by @_Sarybuu.
'Noriko's Midnight Adventure' by @projectTiGER_
'Yukata Noriko' by @yunyunmaru_
'Birthday Wishes Noriko' by @thatsheepagain

Tyty
Posted on 12-12-13 04:44 AM Link | ID: 38703
Normal User

Tektite

Level: 18


Posts: 32/52
EXP: 25013
Next: 4884

Since: 01-21-12

Last post: 762 days
Last view: 367 days
So it's either turn off notices, or go through myself and fix every single one? :P

Thanks for letting me know it's not entirely my fault. Wouldn't be an acmlmboard if everything ran 100% smoothly.


Emuz
Posted on 12-12-13 11:32 AM Link | ID: 38783
Site Administrator

11 Hit Combo:
Mother's Rosario
Level: 108


Posts: 1974/3392
EXP: 13210958
Next: 309541

Since: 12-30-11
From: Akron, Ohio; USA

Last post: 115 days
Last view: 19 hours
Posted by Tyty
So it's either turn off notices, or go through myself and fix every single one? :P

Thanks for letting me know it's not entirely my fault. Wouldn't be an acmlmboard if everything ran 100% smoothly.


While I don't recommend you go fixing them all yourself, if you do makes some fixings feel free to send them back via Pull Request if you like.

but.. I would just ignore the errors since they all are things like touching each variable to make it compliant with the PHP structure of now, initialization of the variable at definition and such.

Lol that's AB's unofficial motto: "Wouldn't be an acmlmboard if everything ran 100%â„¢"

(maybe one day we can change that motto!)

The Dynamic Profile Administratorâ„¢


"Never Knows Best"
Note: if you can see this my layout broke. ALL THE CREDITS WILL BE REVEALED!!
'Victory Noriko' by @thatsheepagain.
'Chibi Dance Noriko' by @Haru__Kitsu.
'Deity's Night Out (Featuring Gabbie)'
by @thatsheepagain
Noriko Emotes by @Haru__Kitsu.
Side Bar Noriko by @thatsheepagain
'Noriko's Nature Walk' by @projectTiGER_
Emotive Noriko by @thatsheepagain.
"Space Candy Noriko" by BerryVerrine.
"Super Sharp Noriko" by Xionfes.
A gift illustration from the wonderful EverKinzPony!
"Magical Girl Noriko" by @cute_hospital!
"Patient Chibi Noriko" by @Ruii_ki!
'Dapper '60s Noriko' by @thatsheepagain.
'Shiny Chibi Noriko' by @inioli.
'Flower Veil Noriko' by @Sushiee_.
'Noriko in Realism' by @_Sarybuu.
'Noriko's Midnight Adventure' by @projectTiGER_
'Yukata Noriko' by @yunyunmaru_
'Birthday Wishes Noriko' by @thatsheepagain

Arisotura
Posted on 12-12-13 11:38 AM Link | ID: 38784
Developer
pancakes
Level: 83


Posts: 448/1868
EXP: 5395498
Next: 36723

Since: 01-05-12
From: France

Last post: 654 days
Last view: 193 days
Well atleast be glad it doesn't need register_globals anymore :P

It's also not recommended to run a production server with E_NOTICE on. Hell, some servers even disable error reporting entirely. That's what Dirbaio does, for example (because leaving the user with a blank page is better than letting them know that there have been PHP errors >_> ).

____________________
Kuribo64 - melonDS

want some revolution in your coffee?

Scrydan
Posted on 12-12-13 11:51 AM Link | ID: 38788
Normal User
Scryforce - A place that still exists. Neat.
Level: 86


Posts: 1777/2020
EXP: 5933716
Next: 208391

Since: 07-18-12
From: USA

Last post: 744 days
Last view: 727 days
I wrote an query error/list wrapper for the query function and its nice because it only allows those with permission to see what's going on. Although there might be a time or two only regulars can see certain errors so it might be a good idea to have some sort of log that gets cleaned out regularly for you to go through; same could be used for errors not critical.

But yeah, typically most web servers should be E_WARNING+. I usually stick to warning or critical. Of course, I actually did something on some experimental board so that it gives a general idea of what is happening rather than giving away the file path and such. Normal users don't need to know the specifics. lol

Taryn
Posted on 12-12-13 08:51 PM Link | ID: 38839
Normal User

Red Birdo
RIP
Fat Lesbian
Level: 88


Posts: 1114/2142
EXP: 6559189
Next: 91475

Since: 04-03-12
From: Seattle, USA

Last post: 3427 days
Last view: 3426 days
I imagine more detailed PHP errors might let a skilled hacker find some kind of exploit. Not that I'd know since I don't hack into things.

Register globals is evil. So is magic quotes.

____________________
'Cause when you've given up,
When no matter what you do it's never good enough,
When you never thought that it could ever get this tough,
That's when you feel my kind of love.

Arisotura
Posted on 12-12-13 09:15 PM Link | ID: 38843
Developer
pancakes
Level: 83


Posts: 449/1868
EXP: 5395498
Next: 36723

Since: 01-05-12
From: France

Last post: 654 days
Last view: 193 days
Depends, but yeah. Quite often, errors come with the absolute path to the script where they happened, which may help a hacker figure out the site's file structure.

There's also the case where you tamper with input: if you get MySQL warnings/errors, you know there's something exploitable. If it just fails silently, you, well, don't know.

____________________
Kuribo64 - melonDS

want some revolution in your coffee?

Next newer thread | Next older thread
Main - AcmlmBoard Developer Zone - Massive amount of undefined constant notices?


Acmlmboard v2.5.5 (10/04/2020)
© 2005-2024 Acmlm, Emuz, et al.

Page rendered in 0.062 seconds. (822KB of memory used)
MySQL - queries: 132, rows: 554/588, time: 0.046 seconds.