Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export of large documents is unsuccessful online. #87

Open
rgleason opened this issue Jan 25, 2018 · 0 comments
Open

Export of large documents is unsuccessful online. #87

rgleason opened this issue Jan 25, 2018 · 0 comments

Comments

@rgleason
Copy link

rgleason commented Jan 25, 2018

NOTE: The only way found to get a single continuous and complete document exported is to download the dokuwiki to a local computer and to run the plugin completely locally, due to an excessive number of failures which require "exclusion" of the last page.

Export of large documents is unsuccessful online, (using PHP 5.6) due to excessive "excluded pages"
However when a Local dokuwiki is set up, export of the total document is feasible with it taking approximately 20 minutes for 200 pages. Images land in directories as configured and links work properly.

NOTE: This experience used the commits Gerry recently made for Indexmenu, ---not presently in the master as of 1/25/2018.

Time Settings:

  • PHP max_execution_time 45 minutes
  • Configuration: plugin siteexport cachetime | 60 * 60 * 24 |
  • Configuration: plugin siteexport max_execution_time | 10000 |

See #85 (comment)

If you need to export a large html document, Do it Locally!!!
First download the entire dokuwiki and get it running locally.
There is some interruption to the process which causes 55 pages to be "excluded" out of 200 pages. The plugin has to be run to find each of the "exclusions", then the page has to be "excluded" on the configuration page, then the plugin has to be run again to find the next "exclusion" which is between 20-30 minutes each time! Furthermore when you export those excluded pages and try to expand them back into the current place in the html document, all the images are left in a new folder under the namespace, resulting in image folders all over the place. (Note: The pages do work when expanded into the proper location, and all the links do work.) -Whereas when a single continuous download completes successfully, the image files get saved as originally stored and of course the links all work.

We had ample timeout settings for both settings PHP_max_time and the timeout setting in the Configuration so this is not the problem.

Would using a more recent version of PHP (above 5.6) allow export of large html documents, without having "excluded" pages?

The settings used were:
From the Offline TOC page OR Main user page

  1. Select from the page's right menu, the icon second from the bottom Export SiteExport
  2. Set Namespace= opencpn:opencpn_user_manual:toc_offline_plugins_manual
  3. Parent Namespace to Export= opencpn:opencpn_user_manual:toc_offline_plugins_manual
  4. Select Export all subnamespaces
  5. To begin disable the "Export linked pages" option. Once it processes completely, then Check to have Links in the document.
  6. Export all parameters "do" Check
  7. Render Engine: ckedit
  8. Template: dokuwiki
  9. Everything else is unchecked.
  10. Just hit Start ( without first hitting one of the three "Direct", "Wget" or "Curl")
  11. When clicking the start button it should show you that it will export x/y pages.
  12. Starts out: Adding "opencpn:opencpn_user_manual:advanced_features:network_repeater" ( 29 / 385 )
  13. When the plugin completes you will be prompted to download the siteexport.zip file.

List of Excludes
required to complete processing the document Online for a successful download
Pages that had to be Excluded
Configuration > SiteExport > Excludes (such as this)
Keep this List of Excludes for later!

options_setting:ships display gps_setup_and_status vector_display_tab gallery_boats opencpn:toc opencpn:user_corner opencpn:supplementary_hardware opencpn:supplementary_software opencpn:developer_manual editors toolbar_buttons toolbar_buttons:tides_and_currents toolbar_buttons:route_mark_manager toolbar_buttons:create_route opencpn_user_manual:toolbar_buttons:ais ais:sart plugins:weather:weatherfax radar_overlay_ais:ais_radar_display charts:nv_charts weather:weather_routing weather:climatology utility_plugins:object_search charts:bsb4_charts utility_plugins:launcher sailing_tools:tactics safety:watchdog navigation:dr_dead_reckoning plugins:safety:sar safety:odraw1.4_pi advanced_features:portable_opencpn_v2 radar_overlay_ais:br24_radar navigation:celestial_navigation included_plugins:grib_weather charts:vfkaps options_setting:connections gps_setup_and_statusvector_display_tab .pdf zip 7z edit_user_manual blank blank.txt cruisersforum github

Leaving this in the Excludes field: .pdf zip 7z edit_user_manual blank blank.txt cruisersforum github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant