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

New zip not working #24

Open
GrandM1961 opened this issue Jan 13, 2023 · 13 comments
Open

New zip not working #24

GrandM1961 opened this issue Jan 13, 2023 · 13 comments

Comments

@GrandM1961
Copy link

I tried to reinstall the newest version with the dutch translation in it, but no matter what i try every time it gives me the same message: Missing admin table or data, remove config/db.php to reinstall!
So i thought i will do it by terminal by composer install, yet that does not work either it gives me the next error:

In JsonFile.php line 347:

"./composer.json" does not contain valid JSON
Parse error on line 10:
...rce", "blog", ], "homepage": "ht
--------------------^
Expected one of: 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[' - It
appears you have an extra trailing comma

so now i can't do nothing, any solution for this???

@givanz
Copy link
Owner

givanz commented Jan 14, 2023

Hi

I tried to reinstall the newest version with the dutch translation in it, but no matter what i try every time it gives me the same message: Missing admin table or data, remove config/db.php to reinstall!

This message is shown if admin table is missing or empty and there is a config/db.php present, maybe you dropped tables before reinstall?

If you want to reinstall is enough to delete config/db.php and install screen will show automatically, the tables will be dropped and recreated during reinstall you don't need to make changes to db for reinstall.

Install from composer does not work, if you wish to install/reinstall from command line you can use

php cli.php install module=index host=127.0.0.1 user=root password= database=vvveb admin[email]=admin@vvveb.com admin[password]=admin

A new update is available with some bug fixes for menu and categories language tabs.

@GrandM1961
Copy link
Author

GrandM1961 commented Jan 14, 2023 via email

@givanz
Copy link
Owner

givanz commented Jan 14, 2023

If you delete config/db.php install does not show? what error is displayed?

@GrandM1961
Copy link
Author

GrandM1961 commented Jan 15, 2023 via email

@GrandM1961
Copy link
Author

GrandM1961 commented Jan 16, 2023 via email

@givanz
Copy link
Owner

givanz commented Jan 16, 2023

The screenshot is not displayed, can you please upload the image on a server or use a image sharing service and post the url?

@GrandM1961
Copy link
Author

GrandM1961 commented Jan 16, 2023 via email

@givanz
Copy link
Owner

givanz commented Jan 16, 2023

Can you drop the database and recreate it? This message is shown if admin table is missing or empty.

@GrandM1961
Copy link
Author

GrandM1961 commented Jan 16, 2023 via email

@givanz
Copy link
Owner

givanz commented Jan 16, 2023

If config/db.php does not exist than this message can not be shown, this is the first check made in the code.

Please make sure that the the file is deleted, maybe the install path is different and the file is still there.

I also made a new zip update and changed is_file with file_exists to check if config/db.php exists to avoid possible issues on some operating systems.

I also deleted admin table to check if the message is shown and it is shown but after I delete config/db.php install screen shows correctly.

From the code inside install/controller/index.php if the file config/db.php does not exist no check is made for admin table to show this message, this issue might be caused by some kind of caching of the file or the install page.

You can also try deleting everything, files and database and start from scratch.

@GrandM1961
Copy link
Author

GrandM1961 commented Jan 16, 2023 via email

@givanz
Copy link
Owner

givanz commented Jan 16, 2023

I changed the code and admin check will only display a message with the error found but it will not stop install, in this way install will work and we can find the cause from the error message.
Please redownload the zip and overwrite all files.

@GrandM1961
Copy link
Author

GrandM1961 commented Jan 17, 2023 via email

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

2 participants