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

start.php Fatal issue - fail to unzip mecha archive #3

Open
3 tasks done
punkyard opened this issue Nov 29, 2024 · 4 comments
Open
3 tasks done

start.php Fatal issue - fail to unzip mecha archive #3

punkyard opened this issue Nov 29, 2024 · 4 comments
Labels

Comments

@punkyard
Copy link

Make sure that your issue is reproducible by doing the following tasks

  • I am using application packages whose source code is not optimized for production (source code is not minified).
  • I have activated the test mode by changing the TEST constant value to true in the .\index.php file.
  • I have made sure that there are files named error or error-x or error-y in the .\engine\log folder.

What installation method did you use?

File

Describe your issue in the field below

Hi
I'm trying Mecha for the first time - it seems very interesting and thank you: super light!
I'm trying to have it installed on an hosted folder with FTP

After writing something like “my web page goes blank”: “there is a content encoding error message appears in my browser”, I made sure that:

  • I'm only using the start.php file that I got from the repo and followed the exact and thanks very clear and helpful documentation here: https://mecha-cms.com/reference/3.x/start#to:using-file
  • I haven't activated the test mode by changing the TEST constant value to true in the .\index.php file. But i chose the "non production" option in the installer page
  • I have made sure that I know what's going on in my hosted folder, and I promise there aren't any files named error or error-x or error-y in the .\engine\log folder. Is it part of the installer process?

I've put the start.php file in the root, and created a folder for Mecha - second time I let the installer create the folder
Both ways return this erreur in my Brave browser:

Fatal error: Uncaught ValueError: Invalid or uninitialized Zip object in /www/start.php:50 Stack trace: #0 /www/start.php(50): ZipArchive->close() #1 /www/start.php(171): pull('https://...', '/www...') #2 {main} thrown in /www/start.php on line 50

I can see a zip file has been downloaded but I can't open it manually either

Could one guide me towards the helpful help file somewhere I didn't see?

Thanks a lot for you concern

Package version

Development version (package on the main branch)

Package version number

start.php uploaded last month! that's all i see

PHP version number

8.2

What browsers are you seeing the problem on?

Chrome

Error logs of the core application if any

No response

Error log of the extension if any

No response

Error log of the layout if any

No response

General error logs if any (if the application fails to set a custom error log path, then the error log will usually appear in this location)

No response

@taufik-nurrohman
Copy link
Member

Somehow it does not close the ZipArchive instance properly. Try uploading the start.php again then comment out line 50:

// $zip->close();

Start the installation again then let me know the new error if any.

@punkyard
Copy link
Author

Hi

thanks for your reply

I’ve made the change line 50
i kept all default choices on the first page
all checks were green

install folder: /home/www/mecha

next page returns an error:

✘ Could not pull mecha-cms/mecha due to network error.
✔ It looks like you are using a LiteSpeed web server. This web server is usually compatible with Apache web server configuration.
✔ Minimum PHP version required is 7.3.0. Your current PHP version is 8.3.9.
✔ PHP json extension is enabled.

@taufik-nurrohman
Copy link
Member

Network error is internet connection problem.

@punkyard
Copy link
Author

really?
from what i see, the strater file is hosted at OVH
it has managed to create the /mecha folder and triggered the download of the zip file

i don't really know what i should do from there

i'll try the archive method
thanks

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

No branches or pull requests

2 participants