Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Upgrade Broke Local Site

Started by Jeff Severson 2 years ago · 4 replies · 139 views
2 years ago

Hi, I am new to Grav. With all of the current WordPress drama, I'm exploring alternatives and Grav came up as a suggestion. I've been toying with a local install for the past week. I installed a zip file of Grav + Admin version 1.7.46 and have been poking around ever since.

Today, I noticed in the admin a notification for version 1.7.47. I decided to check out the upgrade process and clicked the button to upgrade. It said that the upgrade completed.

When I clicked the Dashboard link, I received a Page Not Found. When I tried browsing to any page in the admin from my browser history, it was the same thing. When I tried to load the homepage, I received a 403 Forbidden error and all other pages were Page Not Found errors.

I backed up my user folder, deleted the site, and then downloaded the zip file for the latest version and the admin. I unzipped the files to my directory and then dropped my backed up user folder into it. All started working again.

As a new user, is there anything I should know for future upgrades?

2 years ago

I did the same just now and also got the same error. Let me download the files manually.

2 years ago

I have updated a Grav version from my computer and have not had any problems. This has never happened to me with the websites I have in production.

I am not en expert but... the first thing I would look at is if any folder or file has changed ownership when updating. On a linux server I would open a terminal in the root folder of the installation and order the command:

(sudo) chown user:user -R *

where user is the user assigned to the other files.

Tell us

2 years ago

I upgraded to version 1.7.48 this evening and the same exact thing happened.

After comparing the upgraded install to a backup, I noticed that my install no longer had an index.php in the root directory. I dropped it in from the backup and both the website and the admin both began working again.

I'm not sure why upgrading on my local machine is resulting in a critical file like index.php being deleted.

2 years ago

I noticed that, too. I have two dev machines and the crash happened in both. Restoring the index.php file resolved the issue.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 54 12 hours ago
Support · by Anna, 3 days ago
2 60 15 hours ago
Support · by Justin Young, 16 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago