When clicking in a link which url should be redirected by secure pages from http to https, I get the following error while having normal caching enabled and now issue when caching is disabled:
Fatal error: Call to undefined function drupal_get_path_alias() in /path/to/site/sites/all/modules/securepages/securepages.module on line 315
Comments
Comment #1
jadwigo commentedSomething similar happened here: http://drupal.org/node/119009
Adding this after line 314 helps..
But then, a full bootstrap seems excessive :(
Comment #2
jadwigo commentedThis is actually a critical issue for this module, because anonymous visitors will see raw php error messages if they get to a page that should be redirected.
Comment #3
ebeyrent commentedI applied this patch and it solved the issue for me.
Comment #4
gordon commentedFixed.
Comment #6
agschult commentedErm, the fix made in
http://drupalcode.org/viewvc/drupal/contributions/modules/securepages/se...
seems broken. It's causing problems with redirecting to the front page sometimes, because the function_exists('drupal_get_path_alias') check should be directly around the "$path = drupal_get_path_alias($path)" line, as to note fall back to the front page in these situations
Comment #7
grendzy commentedThe 5.x branch is no longer supported. If this issue is still present in a current version of Secure Pages, please update the issue summary, change the version field, and re-open the issue.