Skip to content

Warning Icon - start - Icon (). Error while rendering: We can't get the icon path. Error: The icon (mdi:vector-combine) could not be downloaded. #112

@cctv18

Description

@cctv18

Environment: Windows 10 Professional + Apache 2.4.39 + PHP 7.4.5, installed necessary php extensions (pdo_sqlite, mbstring, openssl, intl & gd2) and newest dokuwiki sqlite plugin, having set upload_max_filesize and post_max_size to 300M
Just when I installed Combo plugin and activated it, all content pages started to display abnormally, with a line of red text like this:

Icon (). Error while rendering: We can't get the icon path. Error: The icon (mdi:vector-combine) could not be downloaded. Error: (We couldn't find the icon vector-combine) from the library mdi. Error: fopen(): php_network_getaddresses: getaddrinfo failed: ����������Ч�������Ҳ����������͵���ݡ� .. (ie media or icon name attribute is mandatory).

image

and when I disable Combo plugin, everything returns to normal. Here's the log messages in the console tool of Edge:

combo.min.js:1 Uncaught SyntaxError: Unexpected token '<'
cache.js:1 Uncaught SyntaxError: Unexpected token '<'
metadata.js:1 Uncaught SyntaxError: Unexpected token '<'
combo-search-box.js:1 Uncaught SyntaxError: Unexpected token '<'
(索引):549 Uncaught TypeError: Cannot read properties of undefined (reading 'create')
at (索引):549:10

and the error log of Dokuwiki:

2024-06-07T10:29:33+08:00 - error - ComboStrap - event - Sqlite is mandatory for asynchronous event - 127.0.0.1 - start
2024-06-07T10:29:38+08:00 - error - ComboStrap - event - Sqlite is mandatory for asynchronous event - 127.0.0.1 - start
2024-06-07T10:30:20+08:00 - error - ComboStrap - event - Sqlite is mandatory for asynchronous event - 127.0.0.1 - start
2024-06-07T10:30:28+08:00 - error - ComboStrap - event - Sqlite is mandatory for asynchronous event - 127.0.0.1 - start
2024-06-07T10:30:33+08:00 - error - ComboStrap - event - Sqlite is mandatory for asynchronous event - 127.0.0.1 - start
2024-06-07T10:30:46+08:00 - error - ComboStrap - event - Sqlite is mandatory for asynchronous event - 127.0.0.1 - start
2024-06-07T10:31:02+08:00 - error - ComboStrap - event - Sqlite is mandatory for asynchronous event - 127.0.0.1 - start
2024-06-07T10:31:07+08:00 - warning - ComboStrap - icon - Icon (). Error while rendering: We can't get the icon path. Error: The icon
2024-06-11T03:46:06+08:00 - warning - ComboStrap - icon - Icon (). Error while rendering: We can't get the icon path. Error: The icon (mdi:vector-combine) could not be downloaded. Error: (We couldn't find the icon vector-combine) from the library mdi. Error: fopen(): php_network_getaddresses: getaddrinfo failed: ����������Ч�������Ҳ����������͵���ݡ� .. (ie media or icon name attribute is mandatory). - 127.0.0.1 - start
2024-06-11T03:46:06+08:00 - warning - ComboStrap - icon - Icon (). Error while rendering: We can't get the icon path. Error: The icon (mdi:vector-combine) could not be downloaded. Error: (We couldn't find the icon vector-combine) from the library mdi. Error: fopen(): php_network_getaddresses: getaddrinfo failed: ����������Ч�������Ҳ����������͵���ݡ� .. (ie media or icon name attribute is mandatory). - 127.0.0.1 - start
2024-06-11T03:46:28+08:00 - warning - ComboStrap - icon - Icon (). Error while rendering: We can't get the icon path. Error: The icon (mdi:vector-combine) could not be downloaded. Error: (We couldn't find the icon vector-combine) from the library mdi. Error: fopen(): php_network_getaddresses: getaddrinfo failed: ����������Ч�������Ҳ����������͵���ݡ� .. (ie media or icon name attribute is mandatory). - 127.0.0.1 - start
2024-06-11T03:46:28+08:00 - warning - ComboStrap - icon - Icon (). Error while rendering: We can't get the icon path. Error: The icon (mdi:vector-combine) could not be downloaded. Error: (We couldn't find the icon vector-combine) from the library mdi. Error: fopen(): php_network_getaddresses: getaddrinfo failed: ����������Ч�������Ҳ����������͵���ݡ� .. (ie media or icon name attribute is mandatory). - 127.0.0.1 - start
2024-06-11T04:12:22+08:00 - warning - ComboStrap - icon - Icon (). Error while rendering: We can't get the icon path. Error: The icon (mdi:vector-combine) could not be downloaded. Error: (We couldn't find the icon vector-combine) from the library mdi. Error: fopen(): php_network_getaddresses: getaddrinfo failed: ����������Ч�������Ҳ����������͵���ݡ� .. (ie media or icon name attribute is mandatory). - 127.0.0.1 - start
2024-06-11T04:12:22+08:00 - warning - ComboStrap - icon - Icon (). Error while rendering: We can't get the icon path. Error: The icon (mdi:vector-combine) could not be downloaded. Error: (We couldn't find the icon vector-combine) from the library mdi. Error: fopen(): php_network_getaddresses: getaddrinfo failed: ����������Ч�������Ҳ����������͵���ݡ� .. (ie media or icon name attribute is mandatory). - 127.0.0.1 - start

Meanwhile, I noticed the error information in the console tool of Edge, which the path of JS files was shown like this:
http://127.0.0.1/_media/library/combo/combo.min.js?drive=combo&fetcher=raw&tseed=1717952350
http://127.0.0.1/_media/snippet/js/cache.js?drive=combo&fetcher=raw&tseed=1717952350
http://127.0.0.1/_media/snippet/js/metadata.js?drive=combo&fetcher=raw&tseed=1717952350
http://127.0.0.1/_media/snippet/js/combo-search-box.js?drive=combo&fetcher=raw&tseed=1717952350
image
however, there's not a single directory named "_media" under the root directory of my website. Is it a problem caused by path reference, a bug or anything else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions