"oxideshop-unified-namespace-generator" generates empty files in "oxideshop-unified-namespace-generator/generated/" catalog


#1

Hmmmmm… i have problem…
Probem starts with error like here:
“Class OxidEsales\Eshop\Core\ConfigFile not found in bootstrap.php”
https://docs.oxid-esales.com/developer/en/6.0/oxid_components/unified_namespace_generator.html

I dug a little and noticed that “oxideshop-unified-namespace-generator” doesn’t generate any content of files in folder “/vendor/oxid-esales/oxideshop-unified-namespace-generator/generated/”. It crates folder structure and files but those files have this kind of content:

0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000

in other project (folders) on the same server everything works ok.
I updated composer, cleared cache, made composer update but without success…

Any suggestions?


#2

You execute it as admin?


#3

“execute it” you mean what?


#4

If you use Win, you have to start cmd with administration rights. Then composer update can create the files and folders. On Linux i think you have to try it with sudo. Your decsription sounds like composer has no rights to write files.


#5

OMG… i found problem :slight_smile:

Probably smarty templates in “smarty_c” catalog was generated in wrong way. Files were empty. I deleted those files, Smarty generated files again… this time correct and everything is ok now!

P.S probably reason of this problem was manual terminate of “composer update” process