Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xampp 7.4 on windows cann't import module #1566

Closed
rtougn opened this issue Mar 27, 2024 · 13 comments
Closed

xampp 7.4 on windows cann't import module #1566

rtougn opened this issue Mar 27, 2024 · 13 comments

Comments

@rtougn
Copy link

rtougn commented Mar 27, 2024

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
Copy link
Contributor

share the .zip file with us, please

@rtougn
Copy link
Author

rtougn commented Mar 27, 2024

Test.zip

it here, tks

@joebordes
Copy link
Contributor

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

@joebordes
Copy link
Contributor

it looks ok. going to give it a try

@rtougn
Copy link
Author

rtougn commented Mar 27, 2024

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

@denaldhushi
Copy link
Contributor

@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
Copy link
Contributor

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
Copy link
Author

rtougn commented Mar 27, 2024

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
Copy link
Contributor

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

@joebordes
Copy link
Contributor

@joebordes
Copy link
Contributor

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

@joebordes
Copy link
Contributor

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

@rtougn rtougn closed this as completed Mar 31, 2024
@joebordes
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants