Jump to content

Stupid mistakes that mess you up for hours


Joss
 Share

Recommended Posts

1. Someone remind me that $pages->get("/home/") does NOT get the root home page!!!!!!

(However correct it might look...)

Try $pages->get("/") instead..... or an id or something sensible.

Any others?

  • Like 6
Link to comment
Share on other sites

I had one of these about a week ago as I was working on the ProcessDiagnostics module. I managed to inadvertently delete just the first line ("<?php") of index.php from the root directory and save the file. Apache started serving the index.php file as plain text - made me think that I'd messed up my apache config or .htaccess but it turned out to be my fat fingered deletion of a line on a file I shouldn't even have been editing. Dumb.

  • Like 2
Link to comment
Share on other sites

Greetings,

Well, earlier this week I was getting very little sleep and working on three projects simultaneously. I was making some changes to the CSS file for project 1, and kept reloading the page, wondering why that particular CSS change wasn't taking effect. I even opened Firebug and could not see the change. You can guess the reason.

Sorry Joss, it's not as bad as yours. But there is a connection here: I was thinking of a certain pirate narrator while working. How do pirates get WiFi while out at sea?

Thanks,

Matthew

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...