Skip to content

Diagram try to manage SVG image and throws No such file or directory #66

@Cyrille37

Description

@Cyrille37

Issue Description

Hi
Thanks a lot for this great plugin 💌

I put a remote SVG image in a page :

{{https://web.dev/articles/push-notifications-overview/image/your-server-sends-web-pu-55e06fc9c0017.svg?413x111}}

It works fine, the svg image is well displayed.

But when looking in Dokuwiki logviewer accueil?do=admin&page=logviewer&date=2025-07-05&facility=error I can see diagram errors about this image around /lib/plugins/diagrams/syntax/mediafile.php(54) and /lib/plugins/diagrams/helper.php(19) :

2025-07-05 10:22:00E_WARNING: file_get_contents(/data/media/https/web.dev/articles/push-notifications-overview/image/your-server-sends-web-pu-55e06fc9c0017.svg):
    Failed to open stream: No such file or directory /lib/plugins/diagrams/helper.php(19)
    #0 [internal function]: dokuwiki\ErrorHandler::errorHandler(2, 'file_get_conten...', '/...', 19)
    #1  /lib/plugins/diagrams/helper.php(19): file_get_contents('/...', false, NULL, 0, 500)
    #2  /lib/plugins/diagrams/syntax/mediafile.php(54): helper_plugin_diagrams->isDiagramFile('/...')
    #3  /inc/parser/handler.php(298): syntax_plugin_diagrams_mediafile->handle('{{https://web.d...', 5, 7834, Object(Doku_Handler))
    #4  /inc/Parsing/Lexer/Lexer.php(269): Doku_Handler->plugin('{{https://web.d...', 5, 7834, 'diagrams_mediaf...')
    #5  /inc/Parsing/Lexer/Lexer.php(196): dokuwiki\Parsing\Lexer\Lexer->invokeHandler('{{https://web.d...', 5, 7834)
    #6  /inc/Parsing/Lexer/Lexer.php(146): dokuwiki\Parsing\Lexer\Lexer->dispatchTokens('', '{{https://web.d...', '_plugin_diagram...', 7834, 7834)
    #7  /inc/Parsing/Parser.php(113): dokuwiki\Parsing\Lexer\Lexer->parse('\n\n * Mozilla\n ...')
    #8  /inc/parserutils.php(234): dokuwiki\Parsing\Parser->parse('\n====== Progres...')
    #9  /inc/Ui/PageView.php(56): p_get_instructions('====== Progress...')
    #10  /inc/Action/Preview.php(32): dokuwiki\Ui\PageView->show()
    #11  /inc/template.php(120): dokuwiki\Action\Preview->tplContent()
    #12 [internal function]: tpl_content_core('preview')
    #13  /inc/Extension/Event.php(134): call_user_func_array('tpl_content_cor...', Array)
    #14  /inc/Extension/Event.php(200): dokuwiki\Extension\Event->trigger('tpl_content_cor...', true)
    #15  /inc/template.php(102): dokuwiki\Extension\Event::createAndTrigger('TPL_ACT_RENDER', 'preview', 'tpl_content_cor...')
    #16  /lib/tpl/dokuwiki/main.php(59): tpl_content()
    #17  /inc/actions.php(30): include('/...')
    #18  /doku.php(131): act_dispatch()
    #19 {main}
  • Diagram plugin version : 2023-12-14
  • Dokuwiki version : 2025-05-14a "Librarian"
  • PHP 8.1.32 fpm-fcgi

Regards & cheers.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions