|
||||||
Views:
12,745,557 |
![]() ![]() ![]() ![]() |
05-12-25 03:51 PM |
||||
Guest: Register | Login |
0 users currently in AcmlmBoard Developer Zone | 1 bot |
Main - AcmlmBoard Developer Zone - Massive amount of undefined constant notices? |
Tyty |
| ||
Normal User
![]() Tektite Level: 18 ![]() ![]() ![]() ![]() Posts: 31/52 EXP: 26140 Next: 3757 Since: 01-21-12 Last post: 1172 days Last view: 399 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 |
| ||
Developer
pancakes Level: 84 ![]() ![]() ![]() ![]() Posts: 447/1872 EXP: 5655741 Next: 6211 Since: 01-05-12 From: France Last post: 36 days Last view: 36 days |
Epele |
| ||
Site Administrator
The Sorceress. Boing~ Level: 238 ![]() ![]() ![]() ![]() Posts: 6101/20774 EXP: 209160073 Next: 1893473 Since: 01-01-12 From: UK Last post: 1223 days Last view: 8 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 |
| ||
Normal User
Level: 30 ![]() ![]() ![]() ![]() Posts: 169/169 EXP: 149837 Next: 16032 Since: 08-17-12 Last post: 4169 days Last view: 4027 days |
Another option is using not-acmlmboards. |
Emuz |
| ||
Site Administrator
![]() 11 Hit Combo: Mother's Rosario Level: 109 ![]() ![]() ![]() ![]() Posts: 1972/3393 EXP: 13809152 Next: 150493 Since: 12-30-11 From: Akron, Ohio; USA Last post: 286 days Last view: 4 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 |
| ||
Normal User
![]() Tektite Level: 18 ![]() ![]() ![]() ![]() Posts: 32/52 EXP: 26140 Next: 3757 Since: 01-21-12 Last post: 1172 days Last view: 399 days |
So it's either turn off notices, or go through myself and fix every single one? ![]() Thanks for letting me know it's not entirely my fault. Wouldn't be an acmlmboard if everything ran 100% smoothly. |
Emuz |
| ||
Site Administrator
![]() 11 Hit Combo: Mother's Rosario Level: 109 ![]() ![]() ![]() ![]() Posts: 1974/3393 EXP: 13809152 Next: 150493 Since: 12-30-11 From: Akron, Ohio; USA Last post: 286 days Last view: 4 hours |
Posted by Tyty 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 |
| ||
Developer
pancakes Level: 84 ![]() ![]() ![]() ![]() Posts: 448/1872 EXP: 5655741 Next: 6211 Since: 01-05-12 From: France Last post: 36 days Last view: 36 days |
Well atleast be glad it doesn't need register_globals anymore ![]() 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 |
| ||
Normal User
Scryforce - A place that still exists. Neat. Level: 87 ![]() ![]() ![]() ![]() Posts: 1777/2020 EXP: 6211844 Next: 180930 Since: 07-18-12 From: USA Last post: 1154 days Last view: 1136 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 |
| |||
Normal User
![]() Red Birdo RIP Fat Lesbian Level: 89 ![]() ![]() ![]() ![]() Posts: 1114/2142 EXP: 6859355 Next: 56546 Since: 04-03-12 From: Seattle, USA Last post: 3837 days Last view: 3836 days |
|
Arisotura |
| ||
Developer
pancakes Level: 84 ![]() ![]() ![]() ![]() Posts: 449/1872 EXP: 5655741 Next: 6211 Since: 01-05-12 From: France Last post: 36 days Last view: 36 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? |
Main - AcmlmBoard Developer Zone - Massive amount of undefined constant notices? |
Acmlmboard v2.5.6 (06/11/2024) © 2005-2025 Acmlm, Emuz, et al. |
MySQL - queries: 136, rows: 557/590, time: 0.052 seconds. |