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

Wide character in subroutine entry #1067

Open
53nemu opened this issue Aug 30, 2024 · 2 comments
Open

Wide character in subroutine entry #1067

53nemu opened this issue Aug 30, 2024 · 2 comments

Comments

@53nemu
Copy link

53nemu commented Aug 30, 2024

LRR Version and OS
Please tell which version you're running, as well as your OS and installation method. (Windows, Docker, Native)

debian docker

Bug Details
Please detail the bug here.

Hello, I apologize as I am not a native English speaker, so I am using ChatGPT to translate this conversation. I installed the latest version of the image using Portainer, but during the initial run, Portainer indicated that the container was unhealthy (with the same error). After uploading a plugin obtained from a friend (who confirmed that the plugin works without errors on their end) and running it, I am no longer able to access the plugin page (I received a lovely image of Mayoi Hachikuji). When I used debugging and performed the actions mentioned above, a new page appeared with the following error log:

Matching Logs
Post any logs you have encountered when reproducing the bug.
If possible, switch the app to Debug Mode in order to have more logs.

Wide character in subroutine entry at /usr/local/share/perl5/site_perl/Mojo/JSON.pm line 31.

my $TEXT   = Cpanel::JSON::XS->new;
$_->canonical->allow_nonref->allow_unknown->allow_blessed->convert_blessed->stringify_infnan->escape_slash
->allow_dupkeys
for $BINARY, $TEXT;
monkey_patch __PACKAGE__, 'encode_json', sub { $BINARY->encode($_[0]) };
monkey_patch __PACKAGE__, 'decode_json', sub { $BINARY->decode($_[0]) };
monkey_patch __PACKAGE__, 'to_json',     sub { $TEXT->encode($_[0]) };
monkey_patch __PACKAGE__, 'from_json',   sub { $TEXT->decode($_[0]) };

Screenshots
If applicable, add screenshots to help explain your problem.

@53nemu
Copy link
Author

53nemu commented Aug 30, 2024

Hello, I apologize as I am not a native English speaker, so I am using ChatGPT to translate this conversation. I am not sure why the error content I submitted earlier became "No description provided," so please allow me to rewrite it.

I am running the container with Docker. I installed the latest version of the image using Portainer, but during the initial run, Portainer indicated that the container was unhealthy (with the same error). After uploading a plugin obtained from a friend (who confirmed that the plugin works without errors on their end) and running it, I am no longer able to access the plugin page (I received a lovely image of Mayoi Hachikuji). When I used debugging and performed the actions mentioned above, a new page appeared with the following error log:

Wide character in subroutine entry at /usr/local/share/perl5/site_perl/Mojo/JSON.pm line 31.

26 my $TEXT = Cpanel::JSON::XS->new;
27 $_->canonical->allow_nonref->allow_unknown->allow_blessed->convert_blessed->stringify_infnan->escape_slash
28 ->allow_dupkeys
29 for $BINARY, $TEXT;
30 monkey_patch PACKAGE, 'encode_json', sub { $BINARY->encode($_[0]) };
31 monkey_patch PACKAGE, 'decode_json', sub { $BINARY->decode($_[0]) };
32 monkey_patch PACKAGE, 'to_json', sub { $TEXT->encode($_[0]) };
33 monkey_patch PACKAGE, 'from_json', sub { $TEXT->decode($_[0]) };
34 }
35  
36 sub decode_json {

@jinsu2000
Copy link

I'm getting a similar error as well, but I haven't added a new plugin. I came after modifying the settings of the plugin. So could this be a plugin-related issue?
—Translated by Bing

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

2 participants