Hi,
I attempted to update from my 1 click hosting install of 1.8.x to the 1.9.7 I recently downloaded as soon as it came available yesterday and now getting an error when trying to log into site "update your .htaccess file to remove the page handler."
I followed the instructions as close as I know how to what is written (wish it was a step by step guide as I had to hop around the page and some of the folders it asked to delete did not exist) by deleting all the folders except mod and elgg_data and leaving .htaccess. Then I copied all the new files over to the server for 1.9.7 and reconnected the database setup then initiated the ./upgrade.php in the browser. Upon completion of database connection I got an error message that the database contained tables. I do not know why this is an error message since I am doing an upgrade. I deleted part of the URL as directed and now the .htaccess error.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- iionly@iionly
iionly - 0 likes
- Jason Page@jasonpage
Jason Page - 0 likes
- iionly@iionly
iionly - 0 likes
- Jason Page@jasonpage
Jason Page - 0 likes
- Jason Page@jasonpage
Jason Page - 0 likes
You must log in to post replies.The content of the .htaccess file of Elgg 1.9 (especially some rewrite rules) is slightly different from the .htaccess of Elgg 1.8. You can create a .htaccess file for Elgg 1.9 based on the htaccess_dist file that comes with Elgg 1.9.
First, you should check if there are any differences between your current .htaccess file and the htaccess_dist file of Elgg 1.8 previously installed on your server. If there are any differences (e.g. a different RewriteBase used or changed values of memory_limit etc.), you will have to make the same changes in htacess_dist of Elgg 1.9. After making any changes necessary rename htaccess_dist to .htaccess and the error should be gone. You should then repeat running upgrade.php and additionally check for pending upgrades in the admin section (upgrade of comments and discussions).
There were only one or two things I felt comfortable changing without too much confusion, although I see there is more that needs to be changed. I posted below the old .htaccess and the new one with just a couple of merges I made. The rewrite stuff confuses me because I do not know if that's just new stuff in the new release.
----------------------OLD------------------------------
-------------------------NEW--------------------------
The only difference I see in your old .htaccess compared to htaccess_dist of Elgg 1.8 is that the line
is not commented out.
So, I would suggest to simply copy+rename the file htaccess_dist of Elgg 1.9 to .htaccess and then remove the comment character (#) from the line "RewriteBase /". Other changes should not be necessary - especially not merging any rewrite rules because these are different for Elgg 1.9 (and that's why a new .htaccess file is necessary in the first place).
Ok, it seems there is one more missing thing, when logging in I got error "can't login from another domain" once and all times after got error "Form is missing ... Token or it's fields.
Thanks
Got it working now. I tried removing the # from both lines where I just only did one of them before.