OpenX: Fatal error: Class ‘DataObjects_Clients’ not found in zone-include.php

I've started working with a program called OpenX to handle my ad serving and rotation, and make it easier for me to handle multiple affiliates, advertisers, and the like. During my use, I ran into the following error message:

OpenX: Fatal error: Class 'DataObjects_Clients' not found in openx-2.8.4/www/admin/zone-include.php

I was able to reproduce the error consistently, assuming the following:

  • You have added a website and a zone to that website
  • You have added a user to that website with permissions
  • The added user attempts to link a banner to a zone

I found the following workaround after some intensive Googling, on a Google-cached copy of a post regarding OpenAds (the former name of OpenX):

Edit your zone-include.php file and add the following line:

require_once MAX_PATH . '/lib/max/Dal/Admin/Clients.php';

Works. I haven't noticed any issues since.