eduardo,
what version of openacs do you have?
the message says essentially, that (some of) your content_revisions do not have package_id entries.
select revision_id, object_type, o.package_id from cr_revisions r, acs_objects o where object_id = revision_id order by revision_id desc limit 10;
There was a bug in earlier versions of openacs 5.2 not propagating the package_id appropriately.
you can run ::xowiki::fix_all_package_ids, which inserts the package_ids manually.
After you run the proc from ds/shell, you will see in the above query the package_ids provided. when you add a new page, check again. if the new revision has the package_id, your installation does not have the problem and you should upgrade.