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

Affiliates
Super Mario Bros. X | Kuribo64 | NeoRHDN
Views: 11,030,603
Main | FAQ | IRC chat | Memberlist | Active users | Latest posts | Stats | Ranks | Online users | Search
11-21-24 02:43 PM
Guest: Register | Login

0 users currently in AcmlmBoard Developer Zone | 10 bots

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, in Link | ID: 38614
Normal User

Tektite

Level: 18


Posts: 31/52
EXP: 25673
Next: 4224

Since: 01-21-12

Last post: 1000 days
Last view: 227 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, in Link | ID: 38615
Developer
pancakes
Level: 84


Posts: 447/1870
EXP: 5546165
Next: 115787

Since: 01-05-12
From: France

Last post: 38 days
Last view: 38 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, in Link | ID: 38616
Site Administrator
The Sorceress.
Boing~

Level: 237


Posts: 6101/20774
EXP: 205439767
Next: 2539167

Since: 01-01-12
From: UK

Last post: 1051 days
Last view: 1 hour
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, in Link | ID: 38677
Normal User

Level: 29


Posts: 169/169
EXP: 147040
Next: 845

Since: 08-17-12

Last post: 3997 days
Last view: 3855 days
Another option is using not-acmlmboards.


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

11 Hit Combo:
Mother's Rosario
Level: 109


Posts: 1972/3393
EXP: 13563636
Next: 396009

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

Last post: 114 days
Last view: 3 days
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, in Link | ID: 38703
Normal User

Tektite

Level: 18


Posts: 32/52
EXP: 25673
Next: 4224

Since: 01-21-12

Last post: 1000 days
Last view: 227 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, in Link | ID: 38783
Site Administrator

11 Hit Combo:
Mother's Rosario
Level: 109


Posts: 1974/3393
EXP: 13563636
Next: 396009

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

Last post: 114 days
Last view: 3 days
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, in Link | ID: 38784
Developer
pancakes
Level: 84


Posts: 448/1870
EXP: 5546165
Next: 115787

Since: 01-05-12
From: France

Last post: 38 days
Last view: 38 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, in Link | ID: 38788
Normal User
Scryforce - A place that still exists. Neat.
Level: 86


Posts: 1777/2020
EXP: 6096633
Next: 45474

Since: 07-18-12
From: USA

Last post: 982 days
Last view: 964 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, in Link | ID: 38839
Normal User

Red Birdo
RIP
Fat Lesbian
Level: 89


Posts: 1114/2142
EXP: 6734976
Next: 180925

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

Last post: 3665 days
Last view: 3664 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, in Link | ID: 38843
Developer
pancakes
Level: 84


Posts: 449/1870
EXP: 5546165
Next: 115787

Since: 01-05-12
From: France

Last post: 38 days
Last view: 38 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.6 (06/11/2024)
© 2005-2024 Acmlm, Emuz, et al.

Page rendered in 7.395 seconds. (823KB of memory used)
MySQL - queries: 136, rows: 566/599, time: 7.256 seconds.