samuelet / indexmenu

A dokuwiki plugin to show a customizable and sortable index for a namespace.
http://dokuwiki.org/plugin:indexmenu
GNU General Public License v2.0
47 stars 43 forks source link

An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the indexmenu plugin. #253

Closed paslavskyit closed 2 years ago

paslavskyit commented 2 years ago

I'm getting this error window on Indexmenu Utilities page

dokuwiki\Exception\FatalException: require_once(): Failed opening required '/opt/wiki/inc/HTTPClient.php' (include_path='.:/usr/share/php')
An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the indexmenu plugin.

More info has been written to the DokuWiki error log.

Also, on sidebar page I have this: Indexmenu id conflict Any ideas how to fix it?

Klap-in commented 2 years ago

Which version of the Indexmenu and DokuWiki are you using? Could check the error log in: /opt/wiki/data/log/error/<date>.log and share the trace?

paslavskyit commented 2 years ago

Which version of the Indexmenu and DokuWiki are you using? Could check the error log in: /opt/wiki/data/log/error/<date>.log and share the trace?

Hello, thanks for a quick reply. I'm using Dokuwiki Release rc2022-06-26 "Igor" RC2 and Indexmenu latest version "2020-07-31"

here's the output of the latest log file:

2022-07-07 16:01:05 /opt/wiki/lib/plugins/indexmenu/admin.php(332)  dokuwiki\Exception\FatalException: require_once(): Failed opening required '/opt/wiki/inc/HTTPClient.php' (include_path='.:/usr/share/php')
  #0 [internal function]: dokuwiki\ErrorHandler::fatalShutdown()
  #1 {main}
2022-07-07 16:28:07 /opt/wiki/lib/plugins/indexmenu/admin.php(364)  dokuwiki\Exception\FatalException: require_once(): Failed opening required '/opt/wiki/inc/HTTPClient.php' (include_path='.:/usr/share/php')
  #0 [internal function]: dokuwiki\ErrorHandler::fatalShutdown()
  #1 {main}
2022-07-07 16:56:30 /opt/wiki/lib/plugins/indexmenu/admin.php(364)  dokuwiki\Exception\FatalException: require_once(): Failed opening required '/opt/wiki/inc/HTTPClient.php' (include_path='.:/usr/share/php')
  #0 [internal function]: dokuwiki\ErrorHandler::fatalShutdown()
  #1 {main}
2022-07-07 17:04:01 /opt/wiki/lib/plugins/indexmenu/admin.php(364)  dokuwiki\Exception\FatalException: require_once(): Failed opening required '/opt/wiki/inc/HTTPClient.php' (include_path='.:/usr/share/php')
  #0 [internal function]: dokuwiki\ErrorHandler::fatalShutdown()
  #1 {main}
Klap-in commented 2 years ago

Could you reinstall the indexmenu plugin? (use reinstall button in the Extension Manager). I have made some changes. Please report of you still get unexpected results.

paslavskyit commented 2 years ago

I have reinstalled the plugin and now that error window has disappeared! Thanks a lot for your help. By the way, on the sidebar page, there's still a message box "Indexmenu id conflict"

Klap-in commented 2 years ago

I guess that you have at that moment the same indexmenu in the sidebar as in the main view (e.g. because you look at the sidebar in main view?)

paslavskyit commented 2 years ago

i mean i see it here: example.com/doku.php?id=sidebar image

Klap-in commented 2 years ago

Indeed, if the sidebar is shown in the main view and in the sidebar, then there is twice the same index shown. The indexes are then not unique anymore, therefore the 'id conflict'.

Normally, it is not needed to look at the sidebar in the main view. If you navigate to one of the normal pages, I expect it is working without warning messages...