WordPress.org

Ready to get started?Download WordPress

Forums

WordPress HTTPS (SSL)
metaboxes don't load when wp-content dir is moved (2 posts)

  1. pjv
    Member
    Posted 1 year ago #

    on my wordpress install, i have the wp-content directory in a non-standard place.

    when i go into the HTTPS settings in the admin, none of the metaboxes load. console shows 500 errors and the log shows that the server could not find wp-load.php from the metabox.php module.

    i took a look in there and see the reason for the problem but i don't have enough wordpress-fu to figure out how to fix it. the issue is that this line:

    require_once(realpath(dirname(__FILE__) . '/../../../../..') . '/wp-load.php');

    is assuming that the wp-content directory is under the wordpress directory. in my case it is not.

    i thought that there must be some better way to determine the absolute path to the wordpress directory and i googled around and came up with this

    require_once(ABSPATH . 'wp-load.php');

    which doesn't work. i guess that ABSPATH isn't defined when metabox.php executes because log shows it trying to find ABSPATHwp-load.php, which obviously won't work.

    http://wordpress.org/extend/plugins/wordpress-https/

  2. Link P
    Member
    Posted 1 year ago #

    I experiencing the same thing and identified the same line as the source of the problem. I don't have more to add than a "me too" comment, but I don't see a way to get notified of follow up posts without leaving a comment.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic