Martin Gottlieb wrote:
Piotr Pokora wrote:
Martin Gottlieb writes:
Hi!
$expected_snippet = mgd_get_object_by_guid($GUID); VS $snippet = new
midgard_snippet($GUID);
I'm using Asgard ( Midcom ? ).
Looks like sitegroup issue.
Are you sure, both hosts (the one you create snippet and the one you
edit them) use the same sitegroup?
After a little digging, I have found that the error is being generated
by line 791
in
/usr/share/pear/midcom/lib/midgard/admin/asgard/handler/object/manage.php:
$this->_object =
$_MIDCOM->dbfactory->get_object_by_guid($args[0]);
I'm not sure where the dbfactory object is implemented so I haven't
been able to trace this any further.
ok, got one step further and found this implemented in the
midcom_helper__dbfactory class. The block of code involved is around
line 105:
try
{
$tmp = midgard_object_class::get_object_by_guid($guid);
}
catch(midgard_error_exception $e)
{
debug_push_class(__CLASS__, __FUNCTION__);
debug_add("The Midgard core failed to resolve the GUID
{$guid}: " . $e->getMessage(), MIDCOM_LOG_INFO);
debug_pop();
return null;
}
An exception is being thrown here.
Martin
_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user