[opencms-dev] Static Export returns 404s
Ben.Ludkiewicz at londen-insurance.com
Ben.Ludkiewicz at londen-insurance.com
Tue Nov 8 01:04:49 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
>
Hi Andreas,
Once again I thank you for taking time to respond but I am
slightly confused by what you are suggesting. If there are any invalid
links (in other words, links to pages that don't exist), then I would not
expect that the pages being linked would be exported (after all, they
don't exist). Do you mean that if a link within a page is invalid than
that (linking) page will not export? Regardless, in 'site01' every
resource that was exported does not contain any links at all. They are
all images, css stylesheets, javascript files, pdfs, word docs, etc. No
HTML is contained within any of them. What is not being exported is every
templated HTML page within the site. When I view those pages within
opencms, I can confirm via firebug that all their resources are being
found and loaded. I have also clicked on every link on a few of those
pages and I am taken to the expected page every single time. So I could
not find any broken links, nor could opencms as it will bring up a dialog
if it detects any broken links. I did not see that dialog at all. This
is the same for the other three sites that do not export HTML either, but
do export everything else. I even went through the template used by
'site01' and wrapped every URL in "<cms:link>" as you suggested earlier
but that did not change the outcome. Not a single HTML page was exported,
yet I can navigate the site in opencms and load the linked resources
without issue. I also tried wrapping links within individual pages (for
example, index.html and not template.jsp) when editing their source
directly, but opencms kept encoding them to "<cms:link>" so it
appears that I cannot. Again going back to your first reply, I already
had all of the sites that I am having issues with set "userelativelinks"
to "true" in 'opencms-importexport.xml'. Also, oddly enough, the one site
that does export HTML successfully contains relative links that are not
found within opencms. I do get a broken link dialog but I can ignore it
and still export those pages without issue. The other four sites, despite
not having any broken links, will not export HTML.
Ben
>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20111107/4eb36ee7/attachment.htm>
More information about the opencms-dev
mailing list