Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Fascinating, what error did it cause? My PHP is a bit rusty - I was last writing it in 2003 :)
-
devs30758yThat's the worst part. The first line of the error: "FatalErrorException in Address.php line 3:" (notice line three)
-
devs30758y"Namespace declaration has to be the very first statement or after any declare call in the script"
-
devs30758y@austinkregel luckily my browser automatically updates when I save, and I have a habit of saving almost after every line, so I discovered the error quite fast, so I were able to undo until it worked again. Otherwise I'd never discovered the mistake
-
devs30758y@mostlyharmless yeah I noticed too, however it's a bit too late now. We really need the ability to edit posts
-
Didn't this had something todo with that PHP renders HTML by default and require/import could not require HTML. So when the space got there PHP thinks it needs to render HTML but the require system didn't like that so just threw an exeception?
-
devs30758y@austinkregel I just found out that ctrl+s (with auto refresher) is the best habit in the world ;)
-
Ankan998yThis is the reason why I constantly shivers all the time when developing for Wordpress... This particular "issue" and similar non describable "fun things" will certainly appear at the lest appropriate moments...
-
holy ^`|¢^€^[©€!
I've seen that before. Thank you for sharing and reminding me of that fker! Got to love PHP...also fk the seemingly random apache server htacess lines to set php to be parsed by the server correctly...every host has their own specific set and oh it doesn't work? because you didn't remove our default handler first then add back some (completely random) correct one you have to use because this host is 'different'! Ah well, good catch on that missing space! :)
Related Rants
-
Dacexi24When there are only 2 pages on Google you know you're in serious shit.
-
practiseSafeHex20Fixing a parents iPhone, episode 1. Problem: "Whatsapp is gone off my phone" Debugging: Me: *unlocks phone...
-
nachocode6When you talk to other devs about what their code did. I also relate myself to this.
This SINGLE space just broke my entire project. Good luck debugging that one...
undefined
laravel
debugging