nodeloc / flarum-ext-my-emoji

MIT License
3 stars 2 forks source link

开启后报错InvalidArgumentException thrown with message File not found ... #1

Closed blankwy closed 7 months ago

blankwy commented 7 months ago

环境(已强制卸载插件:

Flarum core: 1.8.5
PHP version: 8.2.15
MySQL version: 8.2.0
Loaded extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, hash, iconv, json, mbstring, SPL, session, PDO, pdo_sqlite, bz2, posix, random, readline, Reflection, standard, SimpleXML, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, Phar, exif, gd, intl, mysqli, pdo_mysql, sodium
+--------------------------------------+---------+--------+
| Flarum Extensions                    |         |        |
+--------------------------------------+---------+--------+
| ID                                   | Version | Commit |
+--------------------------------------+---------+--------+
| flamarkt-backoffice                  | 0.1.3   |        |
| flarum-tags                          | v1.8.0  |        |
| flarum-markdown                      | v1.8.0  |        |
| ramesh-dada-gui-image-and-link       | 1.0     |        |
| ramesh-dada-download-button          | v8.1.4  |        |
| gtdxyz-discussion-paginator          | 1.0.2   |        |
| foskym-oauth-center                  | v1.1.0  |        |
| fof-share-social                     | 1.2.0   |        |
| fof-passport                         | 1.1.1   |        |
| fof-linguist                         | 1.1.1   |        |
| fof-frontpage                        | 1.2.0   |        |
| fof-formatting                       | 1.0.3   |        |
| fof-discussion-thumbnail             | 1.1.3   |        |
| flarumite-simple-discussion-views    | 1.2.2   |        |
| flarum-suspend                       | v1.8.1  |        |
| flarum-sticky                        | v1.8.0  |        |
| flarum-statistics                    | v1.8.0  |        |
| flarum-nicknames                     | v1.8.0  |        |
| flarum-mentions                      | v1.8.3  |        |
| flarum-lock                          | v1.8.0  |        |
| flarum-likes                         | v1.8.0  |        |
| flarum-lang-chinese-simplified       | v1.3.0  |        |
| flarum-flags                         | v1.8.0  |        |
| flarum-embed                         | v1.8.0  |        |
| flarum-bbcode                        | v1.8.0  |        |
| flamarkt-taxonomies                  | 0.1.9   |        |
| davwheat-share                       | v1.1.0  |        |
| davwheat-ads                         | 1.2.0   |        |
| datlechin-link-preview               | v1.4.0  |        |
| clarkwinkelmann-scout                | 0.3.5   |        |
| clarkwinkelmann-predefined-avatars   | 1.0.1   |        |
| clarkwinkelmann-discussion-bookmarks | 2.0.0   |        |
| clarkwinkelmann-composer-page        | 1.1.1   |        |
| clarkwinkelmann-auth-popup-failsafe  | 0.1.1   |        |
| aurorum-better-iframe                | v2.0.2  |        |
| askvortsov-rich-text                 | v2.1.7  |        |
| askvortsov-markdown-tables           | v1.2.1  |        |
| akr-chevereto                        | 1.0.1   |        |
| afrux-asirem                         | v0.1.8  |        |
+--------------------------------------+---------+--------+
Base URL: https://club.binarydev.top
Installation path: /www/sites/club.binarydev.top/index/flarum
Queue driver: sync
Session driver: file
Mail driver: smtp
Debug mode: on

日志:

InvalidArgumentException thrown with message "File not found at path: /www/sites/club.binarydev.top/index/flarum/vendor/nodeloc/flarum-ext-my-emoji/js/dist/forum.js"

Stacktrace:
#69 InvalidArgumentException in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Frontend/Compiler/Source/FileSource.php:35
#68 Flarum\Frontend\Compiler\Source\FileSource:__construct in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Frontend/Compiler/Source/SourceCollector.php:28
#67 Flarum\Frontend\Compiler\Source\SourceCollector:addFile in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Extend/Frontend.php:196
#66 Flarum\Extend\Frontend:Flarum\Extend\{closure} in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Frontend/Assets.php:116
#65 Flarum\Frontend\Assets:Flarum\Frontend\{closure} in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Frontend/Compiler/RevisionCompiler.php:100
#64 Flarum\Frontend\Compiler\RevisionCompiler:getSources in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Frontend/Compiler/RevisionCompiler.php:67
#63 Flarum\Frontend\Compiler\RevisionCompiler:commit in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Frontend/Content/Assets.php:105
#62 Flarum\Frontend\Content\Assets:forceCommit in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Frontend/Content/Assets.php:63
#61 Flarum\Frontend\Content\Assets:__invoke in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Frontend/Frontend.php:62
#60 Flarum\Frontend\Frontend:populate in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Frontend/Frontend.php:54
#59 Flarum\Frontend\Frontend:document in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Frontend/Controller.php:32
#58 Flarum\Frontend\Controller:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/RouteHandlerFactory.php:41
#57 Flarum\Http\RouteHandlerFactory:Flarum\Http\{closure} in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php:27
#56 Flarum\Http\Middleware\ExecuteRoute:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#55 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/clarkwinkelmann/flarum-ext-auth-popup-failsafe/src/Middleware/ModifyAuthFactoryResponse.php:19
#54 ClarkWinkelmann\AuthPopupFailsafe\Middleware\ModifyAuthFactoryResponse:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#53 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flamarkt/taxonomies/src/Middlewares/StickyDiscussionParams.php:35
#52 Flamarkt\Taxonomies\Middlewares\StickyDiscussionParams:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#51 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/fof/frontpage/src/Middleware/AddFrontpageFilter.php:30
#50 FoF\FrontPage\Middleware\AddFrontpageFilter:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#49 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/ContentTypeOptionsHeader.php:21
#48 Flarum\Http\Middleware\ContentTypeOptionsHeader:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#47 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/ReferrerPolicyHeader.php:30
#46 Flarum\Http\Middleware\ReferrerPolicyHeader:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#45 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/FlarumPromotionHeader.php:30
#44 Flarum\Http\Middleware\FlarumPromotionHeader:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#43 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/ShareErrorsFromSession.php:57
#42 Flarum\Http\Middleware\ShareErrorsFromSession:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#41 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/foskym/flarum-oauth-center/src/Middlewares/UserCredentialsMiddleware.php:31
#40 FoskyM\OAuthCenter\Middlewares\UserCredentialsMiddleware:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#39 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php:36
#38 Flarum\Http\Middleware\CheckCsrfToken:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#37 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/foskym/flarum-oauth-center/src/Middlewares/UnsetCsrfMiddleware.php:34
#36 FoskyM\OAuthCenter\Middlewares\UnsetCsrfMiddleware:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#35 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php:69
#34 Flarum\Http\Middleware\ResolveRoute:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#33 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flamarkt/backoffice/src/Middleware/SubForumRouter.php:37
#32 Flamarkt\Backoffice\Middleware\SubForumRouter:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#31 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/SetLocale.php:51
#30 Flarum\Http\Middleware\SetLocale:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#29 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php:31
#28 Flarum\Http\Middleware\AuthenticateWithSession:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#27 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php:52
#26 Flarum\Http\Middleware\RememberFromCookie:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#25 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/StartSession.php:61
#24 Flarum\Http\Middleware\StartSession:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#23 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/CollectGarbage.php:46
#22 Flarum\Http\Middleware\CollectGarbage:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#21 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php:28
#20 Flarum\Http\Middleware\ParseJsonBody:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#19 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/HandleErrors.php:57
#18 Flarum\Http\Middleware\HandleErrors:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#17 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php:25
#16 Flarum\Http\Middleware\InjectActorReference:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#15 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:75
#14 Laminas\Stratigility\MiddlewarePipe:process in /www/sites/club.binarydev.top/index/flarum/vendor/middlewares/request-handler/src/RequestHandler.php:84
#13 Middlewares\RequestHandler:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#12 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/middlewares/base-path-router/src/BasePathRouter.php:99
#11 Middlewares\BasePathRouter:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#10 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php:36
#9 Laminas\Stratigility\Middleware\OriginalMessages:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#8 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/middlewares/base-path/src/BasePath.php:73
#7 Middlewares\BasePath:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#6 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Middleware/ProcessIp.php:24
#5 Flarum\Http\Middleware\ProcessIp:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/Next.php:49
#4 Laminas\Stratigility\Next:handle in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:75
#3 Laminas\Stratigility\MiddlewarePipe:process in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php:64
#2 Laminas\Stratigility\MiddlewarePipe:handle in /www/sites/club.binarydev.top/index/flarum/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php:73
#1 Laminas\HttpHandlerRunner\RequestHandlerRunner:run in /www/sites/club.binarydev.top/index/flarum/vendor/flarum/core/src/Http/Server.php:45
#0 Flarum\Http\Server:listen in /www/sites/club.binarydev.top/index/flarum/public/index.php:26

截图: image

Burial0268 commented 7 months ago

It seems to be caused by the developer not compiling the js file, you can compile it yourself

@nodeloc Remember to compile the JS file before release