themehybrid/mythic

Error npm run rename if ThemeName is written in CamelCaseNotation

MrAndreius opened this issue ยท 5 comments

Fatal error: Uncaught Error: Class 'ThemeName\Providers\AppServiceProvider' not found in .......\wp-content\themes\themename\vendor\justintadlock\hybrid-core\src\Core\Application.php on line 187

To make it work, need to manually correct the class name in the files. Themename = > ThemeName
vendor\composer\autoload_static.php
vendor\composer\autoload_psr4.php

Can you cross-post this in the Theme Claim issue tracker, which is the package we're using? https://github.com/m-e-h/theme-claim

Fairly certain duplicate of m-e-h/theme-claim#6

Yep, that would be. I remember coming across that now with an all-caps theme name.

found another place where the theme name is written incorrectly
composer.json
"autoload" : { "psr-4" : { "Themename\\" : "app/" // need ThemeName } },
this may then again cause a loading error

m-e-h commented

This should be good with m-e-h/theme-claim@5dc43e3. ๐ŸŽ‰
Keep me posted if it's not.

Also, probably gonna need to update the package.json dep to 0.2.0