Support » Plugin: WordPress HTTPS (SSL) » metaboxes don't load when wp-content dir is moved

  • 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.

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘metaboxes don't load when wp-content dir is moved’ is closed to new replies.