Page 1 of 1

[SOLVED] Install/uninstall buttons on Plugins/Themes pages are not working

Posted: Sun Mar 26, 2023 6:21 pm
by hominid
WonderCMS v3.4.1
Windows 11
Apache 2.4.54.2
php 8.2.0

The install/uninstall Theme/Plugin buttons don't work in my installation because the urls for the links associated with these buttons contain "%5C".

Examples:

Code: Select all

https://wonder.test%5C/?deleteModule=sky&type=themes&token=...

Code: Select all

https://wonder.test%5C/?installModule=https://github.com/robiso/essence/archive/master.zip&directoryName=essence&type=themes&token=...
I believe %5C is an encoded backslash, so perhaps somewhere WonderCMS is escaping the forward slash in the url string?

I got things to install/uninstall by removing the %5C from the url.

Example:

Code: Select all

https://wonder.test/?deleteModule=sky&type=themes&token=...

Code: Select all

https://wonder.test/?installModule=https://github.com/robiso/essence/archive/master.zip&directoryName=essence&type=themes&token=...
But then I got some PHP Notices (it still worked though):

Code: Select all

Deprecated: str_ireplace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in ...index.php on line 906

Code: Select all

 Deprecated: str_ireplace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in ...index.php on line 911
I reported this on github also...

Re: install/uninstall buttons on Plugins/Themes pages are not working

Posted: Tue Mar 28, 2023 8:38 pm
by wiz
Hello hominid, it seems the issue was resolved (also posted by you) in another thread: viewtopic.php?t=1267

Do you still have any issues?