luigifab / openmage-modules

A module to show modules, cron jobs, observers and rewrites lists for OpenMage.
https://luigifab.fr/openmage/modules
GNU General Public License v2.0
2 stars 0 forks source link

mb_strpos() - offset must be contained in argument #1 #1

Open m-overlund opened 1 year ago

m-overlund commented 1 year ago

I'm getting this error when trying out your module, when going to Tools > Installed modules:

PHP Fatal error: Uncaught ValueError: mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack) in /var/www/xxx/public_html/vendor/luigifab/openmage-modules/src/app/code/community/Luigifab/Modules/Model/Source/Observers.php:40

PHP 8.2 OpenMage 20.1.1

luigifab commented 1 year ago

I thought this module was perfect... but it seems no! I've never had this error. Can you try to log $className?

m-overlund commented 1 year ago

if i var_dump it, it just stops at an empty $className, so if i put if(!$className) continue; it works. string(0) ""