I just installed the module and enabled it. At the top of the my modules page it says:

- Secure pages needs to be enabled on admin/config/system/securepages
- The configuration options have been saved.

When I click on the link to config the module, I don't see Secure Pages as an option. All I see is Site Info, Actions & Cron as options.
I have Flushed Cache, uninstalled and re-installed and disabled & enabled. Nothing seems to allow me to config the module.
I love this module and have used it many times on D6 sites. Help?

Comments

grendzy’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Can you please run these two SQL queries and post the output?

select * from system where name = 'securepages'\G

select * from menu_router where path = 'admin/config/system/securepages'\G

Try clearing the cache at least *twice* - I think there's a bug in core that requires this to force a menu rebuild. Also make sure you have permission to "administer site configuration".

ttamniwdoog’s picture

select * from system where name = 'securepages';
["filename"]sites/all/modules/securepages/securepages.module
["name"]securepages
["type"]module
["owner"]
["status"]1
["bootstrap"]0
["schema_version"]0
["info"]a:11:{s:4:"name";s:12:"Secure Pages";s:11:"description";s:182:"Set which pages are always going to be used in secure mode (SSL) Warning: Do not enable this module without configuring your web server to handle SSL with this installation of Drupal";s:4:"core";s:3:"7.x";s:5:"files";a:4:{i:0;s:21:"securepages.admin.inc";i:1;s:19:"securepages.install";i:2;s:18:"securepages.module";i:3;s:16:"securepages.test";}s:7:"version";s:11:"7.x-1.x-dev";s:7:"project";s:11:"securepages";s:9:"datestamp";s:10:"1316134203";s:12:"dependencies";a:0:{}s:7:"package";s:5:"Other";s:3:"php";s:5:"5.2.4";s:9:"bootstrap";i:0;}

select * from menu_router where path = 'admin/config/system/securepages'
bool(false)

grendzy’s picture

Do you have the latest -dev release (2011-Sep-15)?

Did you clear the cache *twice*?

ttamniwdoog’s picture

I cleared the cache twice. Does twice mean the same thing as *twice*?
The version and dates are the latest updates.

"version";s:11:"7.x-1.x-dev"
"datestamp";s:10:"1316134203"

grendzy’s picture

I'm stumped. The module is enabled but for some reason isn't getting added to the menu_router. Is the problem reproducible if you install Drupal and secure pages from scratch, with no other contrib modules?

ttamniwdoog’s picture

Alright. Thanks for trying to help.
I'm going to roll with a simple change to my .htaccess file in the meantime.

# redirect non-https requests for /checkout to https
RewriteCond %{HTTPS} off
RewriteRule ^(checkout) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

# redirect all other https requests to http
RewriteCond %{HTTPS} on
RewriteCond $1 !^(checkout)
RewriteRule ^(checkout*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
grendzy’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Feel free to re-open the issue if it can be reproduced on a clean install.