• My client recently upgraded to SSL. After that was done, I logged into wp and updated homepage/url settings to reflect https. However I began seeing a “too many redirects” notice. After researching online, I tried adding the following to the wp-config.php file:

    define(‘WP_HOME’,’https://leapsnboundz.com’);
    define(‘WP_SITEURL’,’https://leapsnboundz.com’);

    But then I started seeing the error message below. I went ahead and deleted the code that I had added and reverted wp-config.php to its original state but still seeing the error message. Please help. Thanks!

    Warning: require_once(D:\Hosting\12260716\html\wp-config.php) [function.require-once]: failed to open stream: Permission denied in D:\Hosting\12260716\html\wp-load.php on line 37

    Fatal error: require_once() [function.require]: Failed opening required ‘D:\Hosting\12260716\html/wp-config.php’ (include_path=’.;C:\php\pear’) in D:\Hosting\12260716\html\wp-load.php on line 37

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi johnqla.

    Line 37 is looking for the wp-config.php file so could you check whether the file exists and had file permission of 644 or 444?

    Also, this is the first time I see drive letter in the error message?!?

    Thread Starter johnqla

    (@johnqla)

    Thanks for your response! It seems like restoring the original wp-config.php code (without WP_HOME and WP_SITEURL) got rid of the error message I previously posted but it’s now gone back to the “too many redirects” error.

    The “too many redirects” error started showing after I upgraded to SSL and then changed the homepage and site URL settings in the wordpress dashboard from “http” to “https”. Any ideas how I can resolve this, given that I can’t access the wordpress dash? Much appreciated!

    I’d suggest checking with your clients website hosting provider and asking if they have specific htaccess code they’d suggest using to fix the redirection issues.

    Hope this helps. Once you find a fix please tag the thread as resolved.

    You can make the change directly in the database, if you access it through the phpMyAdmin section.

    You use http: white space, remove space ??

    define( 'WP_HOME', 'https://leapsnboundz.com'); 
    define( 'WP_SITEURL', 'https://leapsnboundz.com');
    Thread Starter johnqla

    (@johnqla)

    Thanks for the help. Something seems to be breaking every time I edit the wp-config.php file in any way, causing it to the return the same error that I posted earlier. I then have to revert back to the original coding, which returns a “too many redirects” error.

    @sinip, yes I do have access to phpMyAdmin but don’t know how to make the update via this method. Can you explain how to make the change directly in the database?

    @autotutorial, I tried removing the space but still end up receiving the same error:

    Warning: require_once(D:\Hosting\12260716\html\wp-config.php) [function.require-once]: failed to open stream: Permission denied in D:\Hosting\12260716\html\wp-load.php on line 37

    Fatal error: require_once() [function.require]: Failed opening required ‘D:\Hosting\12260716\html/wp-config.php’ (include_path=’.;C:\php\pear’) in D:\Hosting\12260716\html\wp-load.php on line 37

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can’t access wp dashboard’ is closed to new replies.