Plugin ZIP Generated on Local Environment Causes Fatal Error on HTTPS Server
-
Hello,
I found an issue while using your Download Plugin plugin.Environment
- Local Environment: Windows (WordPress local installation)
- Live Environment: HTTPS server (Linux)
Issue Description
I installed the Download Plugin plugin on my local WordPress setup and used it to download plugins. I tested this with multiple plugins, including your own plugin.
After downloading the plugin ZIP from my local environment, I uploaded it directly to my live HTTPS server and tried to activate it. During activation, WordPress threw a fatal error.
I also noticed that the plugin directory structure was changed after uploading. Please refer to the attached screenshot showing the directory that was created after activation.
To verify the issue, I manually created a ZIP of the same plugin from my local environment (without using the Download Plugin plugin) and uploaded it to the same live server. In that case, the plugin activated and worked correctly.Possible Cause
It appears the ZIP generated by the Download Plugin plugin may be preserving Windows-style directory separators (
\) instead of converting them to Unix/Linux directory separators (/).Since my local environment uses backslashes (
\) and the live Linux server expects forward slashes (/), I suspect this is causing the incorrect directory structure and resulting in the fatal error.Could you please investigate this issue? I have attached a screenshot of the directory structure created after uploading the ZIP generated by your plugin.
Reference Image: https://ibb.co/vCHFZXC8
Thank you.
You must be logged in to reply to this topic.