• Resolved 3pepe3

    (@3pepe3)


    Hello,

    On line 9 of network-shared-media/medias-upload.php require_once will fail if we have we have changed WP_PLUGIN_DIR on wp-config.php
    Exemple:

    wp-config.php

    define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/p' );
    define( 'WP_PLUGIN_URL', $protocol.$_SERVER['SERVER_NAME'].'/p');

    on line 9, medias-upload.php this will fail :
    require_once( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) . '/wp-admin/admin.php' );

    To fix this you can can replace line 9 by:
    require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-admin/admin.php' );

    https://www.ads-software.com/plugins/network-shared-media/

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Wrong path require_once for admin.php’ is closed to new replies.