tsolucio / corebos

core Business Operating System. An OPEN SOURCE business application that helps small and medium business handle all the day to day tasks.
https://corebos.com
151 stars 141 forks source link

xampp 7.4 on windows cann't import module #1566

Closed rtougn closed 3 months ago

rtougn commented 3 months ago

I generated a module but i can't import it. I import the downloaded zip file. I use xampp 7.4 on windows.

image image

joebordes commented 3 months ago

share the .zip file with us, please

rtougn commented 3 months ago

Test.zip

it here, tks

joebordes commented 3 months ago

did you .zip that file yourself or download it from the application?

joebordes commented 3 months ago

it looks ok. going to give it a try

rtougn commented 3 months ago

I tried another file on the internet and it was ok, but the file I created doesn't work

denaldhushi commented 3 months ago

@joebordes I think the problem is to the zip. the zip is not generated with the correct file structure. directories are missing, they are generated as files modules/test/test.php. It can be an issue with ziparchive extension I guess? image

joebordes commented 3 months ago

yes @denaldhushi, you are right! the directory structure is separated by a backslash (), not a forward slash (/) some Windows thing for sure @rtougn please try to use another zip tool, something compatible with the UNIX format and let us know the files seem to be correct from what I see

rtougn commented 3 months ago

I don't quite understand. error appears when creating .zip file? I tried uninstalling winrar -> 7zip but still error ps: i see it, but don't know how to fix the error Untitled

joebordes commented 3 months ago

has to be some configuration option in that application where you can set the directory separator to UNIX style

joebordes commented 3 months ago

https://superuser.com/questions/1382839/zip-files-expand-with-backslashes-on-linux-no-subdirectories

HTH

joebordes commented 3 months ago

let us know how it goes and what you have to configure to get the right format

joebordes commented 3 months ago

I just connected to a windows machine, created directory structure, selected the files, right clicked and selected "compress zip". downloaded the file to my linux server and it has the forward slash correct. try that

$ unzip -l /home/joe/test.zip 
Archive:  /home/joe/test.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2024-03-27 18:15   New folder/New Text Document.txt
        0  2024-03-27 18:15   New Text Document.txt
---------                     -------
        0                     2 files
joebordes commented 3 months ago

I hope you found a solution. If so, and you can, share :-)