Martin Gottlieb wrote:
>
> Piotr Pokora wrote:
>>>> $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?
>>
>>   
> Yes, I am only using one host for Asgard.  Both the snippet and the 
> snippetdir in question have the same
> sitegroup as the one I am logged into.  As soon as I created them, I 
> saw the error when it tried to redirect
> to the edit screen.  I wasn't even sure they were created successfully 
> until I checked the database.
>
> I put your code above into a page (using my "bad" guid).  
> mgd_get_object_by_guid caused a fatal error
> because it does not exist (which I assume is expected), and "new 
> midgard_snippet" did successfully return the
> snippet object.
>
> FYI, I am having no trouble creating pages, page elements and style 
> elements, just snippets and snippetdirs.
>
> Thanks.
>
> Martin
> ------------------------------------------------------------------------
ok, after a little more digging, I believe the problem is that the 
records in the repligard table that correspond
to the snippet/snippetdir are missing.

So, the question is why weren't the repligard records created when I 
created the snippet/snippetdir, and how
can I go about getting the necessary records created.

Thanks.

Martin
_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user

Reply via email to