I wanted to learn the process so that my development extensions could have this feature. I'm a long way off validation, but it'd be nice for people to know an update is available without having to constantly check the development topic.
The guide I followed was very straight forward, but I ran into a problem with placing the
version_check.json
file under a domain with SSL and more specifically, under https://www.restlessrancor.com which has a temporary redirect to this forum. (I plan on eventually adding a homepage there).To be absolutely sure it was an SSL related issue I changed the json file location to a non-SSL domain and the version check was successful; I started to think the redirect in the
.htaccess
at https://www.restlessrancor.com was the culprit, so started to mess with it.Another topic at phpBB.com had a similar issue, so I tried what was successful for them:
Code: Select all
Redirect 302 / https://forum.restlessrancor.com
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>
A while later I remembered reading that using
tab
for indentations could cause issues and to use 4 spaces instead. The formatting improved, but the version check still failed. (That's actually just for the config/services.yml
file).Comparing with other extensions I saw that I needed to add the SSL status to the composer:
Code: Select all
"version-check": {
"host": "restlessrancor.com",
"directory": "/versions",
"filename": "postcountonindex.json",
"ssl": "true"
}
}
.htaccess
file to redirect all but a specified folder:
Code: Select all
RewriteCond $1 !^versions
RewriteRule (.*) https://forum.restlessrancor.com/$1 [R=301,L]
,
in the composer and had a successful version check!