By Ryan on February 22, 2010
Today I was using one of CakePHP’s helper methods, $text->truncate. It gave me these errors and I can’t say I was pleased about it. It reminded me that sometimes, functions aren’t a piece of cake.
Warning (2): array_merge() [function.array-merge]: Argument #2 is not an array [CORE/cake/libs/view/helpers/text.php, line 184]
Warning (2): extract() [function.extract]: First argument should be an [...]
Posted in PHP | Tagged CakePHP, Error, helper, PHP, truncate
By Ryan on February 19, 2010
I recently deployed a CakePHP application to a 1and1 server. I was presented with a wonderful 500 Internal Server Error. That only means one thing: a .htaccess was messed up somewhere.
There were many places that pointed me in the right direction to fix this problem. It was definitely an annoying hitch. Seriously, there’s that [...]
Posted in PHP, Tips | Tagged 1and1, 500, CakePHP, Error, internal, server
By Ryan on February 8, 2010
Firebug will scream and shout about Invalid Object Initialization if you mess just a little something up. Firebug does this a lot. It is an unhelpful error because Firebug will direct you to the first line of your object, not where the problem is.
Firebug gave me this, more or less. That wasn’t helpful. (Why did [...]
Posted in Javascript, Tips | Tagged Error, Javascript
By Ryan on December 8, 2009
Our favorite development tool, Eclipse, makes it slightly confusing to read files properly inside of a Java program.
To start with, I make a file as anyone would, just a quick right click in the Project Tree, then New and finally to File as in a blank file.
One would assume that a non-java would exist [...]
Posted in Java | Tagged eclipse, Error, Java, read, text file
By Ryan on December 2, 2009
I encountered this error today from copying and pasting a code snippet that was from one of our PDF textbooks.
illegal character /160
After making sure that our brackets matched, methods weren’t variables, variables weren’t methods, we didn’t know what was going on. Everything looked good and clean. So we decided to do the unthinkable: we retyped [...]
Posted in Error, Java | Tagged character, Error, illegal, Java
By Ryan on November 28, 2009
My computer science teacher encountered this strange string while working with another student one day after class. The assignment was using Scanner and stepping through a string by delimiter.
java.util.Scanner[delimiters=\p{javaWhitespace}+][position=0][match valid=false][need input=false][ source closed = false ][skipped=false][group separator=\,][decimal separator=\.][positive prefix=][negative prefix=\Q-\E][positive suffix=][negative suffix=][NaN string=\Q?\E][infinity string=\Q∞\E]
Doesn’t that looks like a scary mess? Actually, it’s not so bad, [...]
Posted in Java | Tagged Error, Java, message, scanner
By Ryan on November 2, 2009
Ubuntu 9.10 came out just a few days ago. I was eager to try it but at the moment, I don’t have a spare computer. However, since my current computer has enough horse power to spare, I thought I’d throw Ubuntu in a Virtual Machine, specifically, VirtualBox.
Installation was a breeze. Installing the Guest Additions to [...]
Posted in Error, Tips | Tagged Error, permissions, ubuntu, virtualbox
By Ryan on August 5, 2009
I was working with cake php recently and I came across these three errors:
Warning (512): Cache not configured properly. Please check Cache::config(); in APP/config/core.php [CORE\cake\libs\configure.php, line 663]
Warning (2): array_merge() [function.array-merge]: Argument #1 is not an array [CORE\cake\libs\configure.php, line 684]
Warning (2): array_merge() [function.array-merge]: Argument #1 is not an array [CORE\cake\libs\configure.php, line 691]
What could’ve caused this? What was [...]
Posted in PHP | Tagged cache, CakePHP, Error, git
By Ryan on July 20, 2009
Since I’ve been writing my own tiny php framework in recent weeks, I’ve been exposed to a lot of strange and wild PHP error messages. These error messages are supposed to be the light at the end of the tunnel but rather often they are the precipice right before someone comes over and yells, don’t [...]
Posted in Error, PHP | Tagged context, empty, Error, PHP, return value
By Ryan on June 26, 2009
My father was pre-ordering the Windows 7 Home Premium Upgrade today. He needed to know if he should get a copy for my mother’s computer which currently runs Windows XP. She uses it for work primarily and because of that, uses the Cisco VPN client. I have a number of computers running the Windows 7 RC [...]
Posted in Error, Windows | Tagged 2738, cisco, client, Error, internal, vpn, windows 7