Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the google-analytics-for-wordpress domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/teamrampage.net/public_html/wp-includes/functions.php on line 6121
Included Bugs – TeamRampage Services

Included Bugs

I spent the better part of a day and a half beating the keyboard with my head over a very frustrating problem: “WTF! Where’s that cookie I set?!” in a PHP project that I was working on.

See, the problem came from abstracting all the cookie related functions to a separate PHP file. Easier to maintain, right? Only if one remembers to place a “require_once” call before making the function call! Together with disabling error out put on the server, and not setting up proper debugging, lead to a lot of wasted time.

Once I realized what happened, I had to physically smack myself on the forehead!

The lesson here is make sure you double check all you includes and requires, that and don’t code sleepy!

Leave a comment

Your email address will not be published. Required fields are marked *