[opencms-dev] Some noobs problem or bug ?

Tristan Roddis tristan at roddis.org
Wed May 28 13:02:01 CEST 2003


Alex,

Thanks for that. I'll give it a go and see what happens...

-T.

On Wed, May 28, 2003 at 12:09:53PM +0200, Alexander Kandzior wrote:
> Tristan,
> 
> Your problem almost certainly relates to not having implemeted the
> "right" methods for the ElementCache in your XMlTemplate output
> elements. Try set element caching to "false" completly overwriting that
> getCacheDrirectives() method in your XMLTemplate class, the default is
> true. Check the mailing list or ye olde part of the PDF docs for details
> about this.
> 
> For the rest it sounds that you are on the right track. Make sure that
> your publishProject() method looks something like this:
> 
>     public static void publishProject(CmsObject cms, Boolean
> enableHistory,
>         Integer projectId, Integer versionId, Long publishingDate,
>         Vector changedRessources, Vector changedModuleData) throws
> CmsException {
>         // Publish the ressources for this module
>         CmsMasterContent.publishProject(cms,
> enableHistory.booleanValue(),
>             projectId.intValue(), versionId.intValue(),
>             publishingDate.longValue(), getStaticId(),
> getStaticCd().getName(),
>             changedRessources, changedModuleData);
>     } 
> 
> Do not manually tamper with the master module tables. This spells
> certain doom for OpenCms data consitency. Also, I am not sure but there
> might be bugs in 4.7.7 related to the master module that have been fixed
> for the 5.0 release. 
> 
> Best Regards,
> Alex.
> 
> Alexander Kandzior
> Alkacon Software - The OpenCms Experts
> http://www.alkacon.com
> 
> 
> > -----Original Message-----
> > From: opencms-dev-admin at opencms.org 
> > [mailto:opencms-dev-admin at opencms.org] On Behalf Of Tristan Roddis
> > Sent: Wednesday, May 28, 2003 12:47 PM
> > To: opencms-dev at opencms.org
> > Subject: Re: [opencms-dev] Some noobs problem or bug ?
> > 
> > 
> > On Wed, May 28, 2003 at 11:04:09AM +0200, Alexander Kandzior wrote:
> > > Tristan
> > > 
> > > > We are having the same problem in that none of our dynamic
> > > > content (stored in the mastermodule tables) is available when 
> > > > we switch between Online and Offline Projects in the admin system.
> > > 
> > > When you say "stored in the mastermodule tables" are you 
> > talking about 
> > > the database table CMS_MODULE_MASTER?
> > 
> > Yes, exactly. We seem to be having trouble getting content 
> > stored there to publish in the online project, despite having 
> > implemented 
> > the publishProject() method in the content defintion.
> > 
> > I'm trying to trace what's going on, and to begin with, it 
> > seems that the 
> > table CMS_MODULE_ONLINE_MASTER is not always being populated 
> > when I hit 
> > Publish (I emptied the table of data, and then re-published 
> > the project to 
> > see if the table would fill up, which it didn't. I also tried 
> > creating a 
> > new content element that correctly got added to 
> > CMS_MODULE_MASTER but not 
> > to CMS_MODULE_ONLINE_MASTER even after publishing)
> > 
> > There also seems to be some trouble getting this content to 
> > publish - when 
> > I manually copied everything from CMS_MODULE_MASTER to 
> > CMS_MODULE_ONLINE_MASTER, then the 'dynamic' pages at 
> > /opencms/opencms/blah still showed what appeared to be static 
> > content for 
> > the online project. I.e. myfile.html?ID=1 and myfile.html?ID=2 gave 
> > exactly the same page, despite the fact that they show 
> > different pages in 
> > the offline project.
> > 
> > Do you have any ideas what this could be casued by? We are 
> > using OpenCMS 
> > 4.77
> > 
> > Thanks in advance,
> > 
> > -Tristan.
> > 
> > -- 
> > tristan at roddis.org                              http://www.roddis.org
> > _______________________________.oOo._________________________________
> > "Serious graphics."                               http://www.gimp.org
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, 
> > please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
> > 
> > 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> 

-- 
tristan at roddis.org                              http://www.roddis.org
_______________________________.oOo._________________________________
"Traffic a nightmare? You are the traffic."   http://www.sustrans.org



More information about the opencms-dev mailing list