|
||||||
Views:
11,030,501 |
Main | FAQ | IRC chat | Memberlist | Active users | Latest posts | Stats | Ranks | Online users | Search | 11-21-24 12:25 PM |
||||
Guest: Register | Login |
0 users currently in AcmlmBoard Developer Zone | 4 bots |
Main - AcmlmBoard Developer Zone - Massive amount of undefined constant notices? |
Tyty |
| ||
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 |
| ||
Developer
pancakes Level: 84 Posts: 447/1870 EXP: 5546108 Next: 115844 Since: 01-05-12 From: France Last post: 37 days Last view: 37 days |
Epele |
| ||
Site Administrator
The Sorceress. Boing~ Level: 237 Posts: 6101/20774 EXP: 205437661 Next: 2541273 Since: 01-01-12 From: UK Last post: 1051 days Last view: 22 min. |
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: 29 Posts: 169/169 EXP: 147039 Next: 846 Since: 08-17-12 Last post: 3997 days Last view: 3855 days |
Another option is using not-acmlmboards. |
Emuz |
| ||
Site Administrator
11 Hit Combo: Mother's Rosario Level: 109 Posts: 1972/3393 EXP: 13563497 Next: 396148 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 |
| ||
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?
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: 13563497 Next: 396148 Since: 12-30-11 From: Akron, Ohio; USA Last post: 114 days Last view: 3 days |
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/1870 EXP: 5546108 Next: 115844 Since: 01-05-12 From: France Last post: 37 days Last view: 37 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: 86 Posts: 1777/2020 EXP: 6096567 Next: 45540 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 |
| |||
Normal User
Red Birdo RIP Fat Lesbian Level: 89 Posts: 1114/2142 EXP: 6734905 Next: 180996 Since: 04-03-12 From: Seattle, USA Last post: 3665 days Last view: 3664 days |
|
Arisotura |
| ||
Developer
pancakes Level: 84 Posts: 449/1870 EXP: 5546108 Next: 115844 Since: 01-05-12 From: France Last post: 37 days Last view: 37 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-2024 Acmlm, Emuz, et al. |
MySQL - queries: 132, rows: 556/590, time: 0.048 seconds. |