i-net-software / dokuwiki-plugin-siteexport

DokuWiki plugin to export pages or namespaces to static html
https://www.dokuwiki.org/plugin:siteexport
GNU General Public License v2.0
24 stars 12 forks source link

Use TOC file in Namespace - Specified Depth errors -Finished but download failed #131

Open rgleason opened 3 months ago

rgleason commented 3 months ago

OpenCPN Basic User Manual Entire Manual has been updated. We need to create portable User Manuals in epub, html & pdf. We are using this Table of Contents in the namespace

This TOC has the following code using skipns to avoid writing all of the rest of the OpenCPN Manuals.

{{indexmenu>:opencpn:manual_basic#4|msort nsort nojs skipns=/(opencpn:manual_advanced|opencpn:manual_plugins|opencpn:user_community|opencpn:development_community|opencpn:development_manual|opencpn:editor_manual|opencpn:supplementary_hardware|opencpn:supplementary_software|opencpn:user_corner|opencpn:toc|opencpn:toc_manual_basic|opencpn:toc_manual_advanced)/}}

I have tried with the shorter more direct TOC code (without using skipns=) with similar results

{{indexmenu>:opencpn:manual_basic#4|msort nsort nojs}}

We navigate to this TOC and then select Admin in upper right, then Site Export.

Selecting "This page only" works for us, creating epub, pdf and html. Selecting "Specified depth" set as 1 or 2 (up to 5) results in "Finished but download failed."

We think we have tried everything to get this to build the manuals. Is it a new bug? Do you have any suggestions? If you need access I can provide it.

2016 Exporting Issue 2018 Exporting pages to Single Page Html with Indexmenu created TOC page 2018 Doluwiki Forum SiteExport & Dw2pdf updates - PDF creation for Offline Use 2018 Gamma reponse after review, towards resolution 2018 Gamma made a commit "Accept the output of indexmenu plugin as TOC" 2018 Bug: "All sub namespaces" - Processes totally independent from the chosen parent namespace #95 2018 Remove Docuwiki format and have internal links between namespaces that work. #128

rgleason commented 3 months ago

Today, in hope of getting this to export completely without timeout errors on the webserver, I tried a third type of Local installation using Xampp + Dokuwiki + OpenCPN data.

Please see https://forum.dokuwiki.org/d/22292-xampp-dokuwiki-installation which has a more complete description and error logs for everything (apache, mysql, dokuwiki)

I am getting the very same error "Finished but download failed" as with dokuwikistick above.

I have checked everything I could think of and this is a terrible disappointment.

rgleason commented 3 months ago

Now I am thinking that the problem is with siteexport. Site Export tries to push downloads onto your PC across the internet. This local configuration is very different. It is running on a local Windows PC, not using the internet, and all it has to do is to place a file in the Download directory, so the programming and functions that need to be used are very different.

I need to configure SiteExport for that situation, if it is allowed or flexible enough. How can this be done?

rgleason commented 2 months ago

Are these the answers to the problem?

https://github.com/i-net-software/dokuwiki-plugin-siteexport/pull/124

https://github.com/i-net-software/dokuwiki-plugin-siteexport/issues/122

https://github.com/i-net-software/dokuwiki-plugin-siteexport/pull/124/commits/f161d4fba03cb6d24d9cc13577cad50481efcf26

Extract this into C:\xampp\htdocs\dokuwiki\lib\plugins\siteexport

replacing the files in the folder.

rgleason commented 2 months ago

Local Install

When installing xampp locally into Windows 11 C:\xampp\ and then downloading your online dokuwiki with filezilla FTP and copying this into C:\xampp\htdocs\dokuwiki

PHP is located in C:\xampp\php Make sure php.ini has

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)

zlib.output_compression=Off   <<<---------------TURNED ON

Then download and extract https://github.com/i-net-software/dokuwiki-plugin-siteexport/commit/f161d4fba03cb6d24d9cc13577cad50481efcf26 into C:\xampp\htdocs\dokuwiki\lib\plugins\siteexport

Actually here is the zip file https://github.com/i-net-software/dokuwiki-plugin-siteexport/pull/124#issuecomment-2169810441

Disconnect from internet and Disable AV & FW Open xampp as admin. Turn on apache and mysql. Browser to http://localhost/dokuwiki

Follow the rest of Dokuwiki instructions.