Welcome to TheGillis.net

Consider this site a collection of random notes about a variety of topics. I hope this information helps you in some way.

10 May 2005 - 22:31Mambo and Gallery SEF URLs With Fix

While using the Gallery project embedded in Mambo, it does not correctly respect the SEF URL parameter in the configuration file. Some of the URLs can’t be represented in the SEF URL syntax, because they point to the actual Gallery location. These are mostly the administration functions such as adding and removing pictures. The navigation and picture display, however, are controlled completely through the Mambo embedded component. After digging through the Mambo SEF code in a previous problem, I know that the SEF URL is converted correctly into the corresponding $_GET and $_REQUEST parameters, so therefore, they should not interfere with the operation of the gallery pages. This can be verified by manually converting the link. Fortunately I found a simple and elegant patch to fix the problem. Read on for the solution.

No Comments | Tags: Programming

6 May 2005 - 7:04Mambo PHP Error Messages With Fix

Recently I was getting some strange PHP errors from my Mambo site. The problem was an attempt to call a member function on a variable that was not an object. The actual error was:

[client 192.168.0.3] PHP Fatal error:  Call to a member function
   getAroGroup() on a non-object in
   /usr/local/www/mambo-4.5.2/includes/mambo.php on line 347

It was obvious that this was a Mambo issues since it’s in their includes folder, and after some digging I managed to find the problem.

No Comments | Tags: Programming