Jump to content

Github code deleted all modules


krisives

Recommended Posts

Heads up if you're using the Github project to keep up-to-date with Prestashop:

 

https://github.com/PrestaShop/PrestaShop/

 

You can save yourself the 4 hours I wasted trying to find out why my front office suddenly had nothing but the bare-minimum content. It looks almost like a blank page, but with no menus, etc. being displayed at all. I was using the default-bootstrap theme and it would show me a logo, top bar, the module content with no formatting, and a footer all crammed near the top of the page. No errors, no 503s, no 404s, etc.

 

After following the rabbit hole I realized that some core modules were not installed. Things like "blocklayered" and other modules had a little green "Install" next to it. I clicked that, and it complained that the module is invalid / corrupt. I removed caches, etc. other junk and then realized, that is a core module, why is it being installed?

 

At this point I thought I was on changes newer than 1.6 so I did a git reset back to 1.6:

 

git reset --hard 1.6

 

Looking at the changes and comparing to the 1.6.0.6 release I decided to swtich to the release branch:

 

git branch release

git fetch

git reset --hard origin/release

 

Still getting the same problems and verifying that indeed I am up-to-date and there is nothing funky in Git happening, I started to realize that all my module directories were empty. So I decided, I will use a release of Prestashop 1.6 from Github. I went to the tags/release area, and downloaded what I thought would be a bundled release. They have not actually published the releases on Github, which is sad.

 

So, bye bye pulling from Github with Prestashop. You're pretty much forced to go and grab the .zip release as it stands right now and I don't see any setup with git submodules being explained anywhere.

 

TL;DR - Download the .zip release and extract it over your git release. Delete the .git directory and simply stop pulling updates from Github related to Prestashop.

Edited by krisives (see edit history)
Link to comment
Share on other sites

Also worth mentioning is this breaks code searching on Github. This means if you are trying to learn things that are not documented in Prestashop you cannot easily search and find modules using udocumented APIs. There are LOTS of undocumented inner workings in Prestashop, and without code search it's very hard to find them unless you want to grep all day by hand.

 

As a solution for some folks I have created a repository that has the Prestashop 1.6.0.6 release as one Github repo:

 

https://github.com/stnkris/PrestashopBundle

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...