[opencms-dev] Static Export returns 404s

Andreas Graeff andreas at urthona.de
Sat Nov 5 08:42:16 CET 2011


Hi Ben,
check the links in your correct exported pages (in the 
export/site01-dir), that point to the not exported pages. Are these 
links valid? If the links in _a_ page are not valid, OpenCms static 
export gives a 404-Error for the _linked_ page.
Regards
Andreas


Am 05.11.2011 00:32, schrieb Ben.Ludkiewicz at londen-insurance.com:
>
>  > Hi Ben,
>  > I had a similiar problem some weeks ago.
>  > There are two little steps necessary for static export. One point beside
>  > to the default configuration I changed in the configuration-file
>  > opencms-importexport.xml (in WEB-Inf/config) the parameter
>  > /opencms/staticexport/rendersettings/userelativelinks from false to true
>  > and and wrapped all links in <cmslinks>-tags. Also make sure, that you
>  > have the correct export-path set in the root-dir of your side.
>  > The other point is that the pages which you would like to export, must
>  > be correct linked by other pages. If f.e. you embed your XML-Templates
>  > in a page named Photogalery.html with multiple XML-Photo-content, only
>  > the Photogalery.html should be exported, the XML-Photo-content is not
>  > linked and therefor produces 404-Errors on static export.
>  > In your case it seems for me like a problem with the rights of the
>  > resource or parts of it, though make sure, that you can view the pages
>  > as 'Guest'. Check the links. Do you get the 404 during static export or
>  > while viewing? While Viewing, do you have the same links for 'admin' and
>  > 'Guest'?
>  > Regards
>  > Andreas
>  >
>
> Hello Andreas, thanks for the response but I am not referring to the
> links within my pages, I'm referring to the actual static export. For
> example, if I go to 'Queue' and click on a published project (so I get
> the 'Publish Report View'), this is what I see:
>
> Publishing resources ...
> Updating JSP loader cache...
> .. JSP loader cache updated
> Publishing files ...
> ( 1 / 1 ) Publishing file /index.html ... o.k.
> ... finished publishing files
> Statistics: published files: 1, published folders: 0, deleted folders:
> 0, duration: 00:00:00
> ... the resources have been published
> Exporting Non-Template Resources ...
> ( 1 / 28 ) Exporting /sites/site01/psd/4thfloor.psd ... ignored
> ( 2 / 28 ) Exporting /sites/site01/css/site01.css ... o.k.
> ( 3 / 28 ) Exporting /sites/site01/images/2ndfloor.jpg ... o.k.
> ( 4 / 28 ) Exporting /sites/site01/images/suite215.jpg ... o.k.
> ( 5 / 28 ) Exporting /sites/site01/favicon.ico ... o.k.
> ( 6 / 28 ) Exporting /sites/site01/psd/3rdfloor.psd ... ignored
> ( 7 / 28 ) Exporting /sites/site01/cgi-bin/FormMail.cgi ... o.k.
> ( 8 / 28 ) Exporting /sites/site01/images/suite245.jpg ... o.k.
> ( 9 / 28 ) Exporting /sites/site01/images/logo.jpg ... o.k.
> ( 10 / 28 ) Exporting /sites/site01/images/suite125.jpg ... o.k.
> ( 11 / 28 ) Exporting /sites/site01/js/jquery.magnifier.js ... o.k.
> ( 12 / 28 ) Exporting /sites/site01/css/ie7.css ... o.k.
> ( 13 / 28 ) Exporting /sites/site01/images/suite240.jpg ... o.k.
> ( 14 / 28 ) Exporting /sites/site01/images/suite210.jpg ... o.k.
> ( 15 / 28 ) Exporting /sites/site01/psd/logo.psd ... ignored
> ( 16 / 28 ) Exporting /sites/site01/images/suite360.jpg ... o.k.
> ( 17 / 28 ) Exporting /sites/site01/images/4thfloor.jpg ... o.k.
> ( 18 / 28 ) Exporting /sites/site01/css/opera.css ... o.k.
> ( 19 / 28 ) Exporting /sites/site01/images/site01.jpg ... o.k.
> ( 20 / 28 ) Exporting /sites/site01/images/1stfloor.jpg ... o.k.
> ( 21 / 28 ) Exporting /sites/site01/psd/1stfloor.psd ... ignored
> ( 22 / 28 ) Exporting /sites/site01/images/suite300.jpg ... o.k.
> ( 23 / 28 ) Exporting /sites/site01/js/jquery-1.4.4.js ... o.k.
> ( 24 / 28 ) Exporting /sites/site01/css/ie6.css ... o.k.
> ( 25 / 28 ) Exporting /sites/site01/js/magnify.cur ... o.k.
> ( 26 / 28 ) Exporting /sites/site01/images/suite100.jpg ... o.k.
> ( 27 / 28 ) Exporting /sites/site01/psd/2ndfloor.psd ... ignored
> ( 28 / 28 ) Exporting /sites/site01/images/3rdfloor.jpg ... o.k.
> ... exporting Non-Template Resources is finished.
> Exporting Template Resources ...
> ( 1 / 12 ) Exporting /sites/site01/thanks.html ... 404
> ( 2 / 12 ) Exporting /sites/site01/suite360.html ... 404
> ( 3 / 12 ) Exporting /sites/site01/suite300.html ... 404
> ( 4 / 12 ) Exporting /sites/site01/suite245.html ... 404
> ( 5 / 12 ) Exporting /sites/site01/suite240.html ... 404
> ( 6 / 12 ) Exporting /sites/site01/suite215.html ... 404
> ( 7 / 12 ) Exporting /sites/site01/suite210.html ... 404
> ( 8 / 12 ) Exporting /sites/site01/suite125.html ... 404
> ( 9 / 12 ) Exporting /sites/site01/suite100.html ... 404
> ( 10 / 12 ) Exporting /sites/site01/spaceavailable.html ... 404
> ( 11 / 12 ) Exporting /sites/site01/index.html ... 404
> ( 12 / 12 ) Exporting /sites/site01/contactus.html ... 404
> ... exporting Template Resources is finished.
>
> Basically, my non-template resources are written to disk but my template
> resources are not. The Guest group (of which I verified the guest and
> export user are a part of) currently has +r+w+v+c+d permissions to
> everything under '/sites' but that has not changed the outcome. I tried
> removing its permissions and then resetting them but to no avail. One
> site exports successfully and four do not. In this current setup (clean
> install of 8.0.2 with imported data) I don't see the icon to 'switch' to
> the guest user anymore when viewing the user in 'Account Management'. I
> do still have the option in the production copy still running 7.5.3.
>
>  > Hi,
>  >
>  > I had the same issue.
>  > Select your imported folder. right click -> Advanced -> Touch.
> and then
>  > publish all files. then try static export.
>  > another step is to check the export property is set properly.. right
> click -
>  > > Advanced -> export
>  >
>  > Cheers,
>  > Praveen
>
> Hello Praveen, thanks for responding as well. I tried touching every
> file under my 'sites' folder (or should I say touch the 'sites' folder
> and click on the modify all subfolders / files option). I also use the
> "AfterPublish" export handler, so my sites are exported as part of the
> publish process (see above). I also tried to do a static export from the
> Database Management module but it makes no difference. I have the export
> property set to 'true' on every folder/site under '/sites', and every
> resource I want exported (template or non-template) is inheriting the
> 'true' value (right click -> advanced -> secure/export). I looked at the
> actual properties for a few files and the 'export' property is only set
> on the folders under '/sites', but that's also how it's set on the one
> site that actually does export template resources. Nonetheless, I tried
> setting one of the index.html files to true to see if it would make a
> difference but it does not. I even tried setting the export property to
> false for the four sites I am having issues with and then back to true
> again. Nothing changes. One site exports and four don't.
>
> Ben
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>




More information about the opencms-dev mailing list