Search:

giblitz();

little nuggets of insider knowledge from Fusion Powered

error ultimate_ga.php on line 203

I first got this error when I was migrating a wpmu site to a different set of servers, at the same time, the domain was changed to reflect a new brand.  Consequently, a lot of the references in the old database had to be changed by hand (a simple search and replace done the trick), it did leave a few broken things, one of them being that on every blog that had the UGA plugin enabled displayed error messages at the top and bottom of every page, the error messages was similar to ‘error ultimate_ga.php on line 203′.

Turns out that when the UGA plugin (an excellent pluging by the way) is installed, it creates an options row called ‘ultimate_ga_options’ in the wp_options table (the table name might vary with your installation of wordpress/wpmu), the data stored in this row is stored in JSON format, difficult for normal people to decipher, but it’s just a collection (like xml), if you know how to read it, you can easily change it by hand.

My problem was that the previous domain name had 10 characters whereas the new domain name had much more.  When I done the simple search and replace, it replaced the previous domain with the new domain.  If you know JSON, there are two elements to every item, the length and the actual data itself.  The real problem was that the length did not match the data, the length was too short.

To sort the problem out, the fastest way is to deactivate the pugin, remove the whole row manually and re-activiate the plugin, all should be working fine after that!

Let me know how you get on.

Tags: , , , , ,


  1. Do you have any experiences you'd like to share? Tell me about them!

Leave a Reply