Tag Archives: cannot

Fatal Error Cannot Redeclare Function I

Sooner or later, you’re likely to see an error like this one:           In this article, we’ll look at what causes that message and how to …

Tags: , , , , | Posted under Uncategorized | Leave a comment

Fatal Error Cannot Redeclare Class

In the previous article, we used code like this to prevent collisions between function names: The problem with this code is that if it’s called more than once on a …

Tags: , , , | Posted under MODX, MODX | Leave a comment

Fatal Error Cannot Redeclare Function II

In the previous article, we saw how to prevent an error like this one by wrapping the function in an if (! function_exists() statement. In this article, we’ll look at …

Tags: , , , , | Posted under MODX, MODX | Leave a comment