• I am having trouble installing and using this plugin. When I install the plugin in WordPress, I get the following notices:

    Notice: Use of undefined constant Mfma_rlMediaSelector – assumed ‘Mfma_rlMediaSelector’ in /home3/cherrym3/public_html/dev/wp-content/plugins/media-file-manager-advanced/media-selector.php on line 376

    Plugins Add New
    The plugin generated 236 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    Then, when I click on Media -> Media File Manager Advanced, the plugin attempts to load the page (i.e., the page shows up momentarily), but then is redirected to a whitescreen with the following error message:

    SyntaxError: Unexpected token <
    Notice: Use of undefined constant Mfma_rlMediaSelector – assumed ‘Mfma_rlMediaSelector’ in /home3/cherrym3/public_html/dev/wp-content/plugins/media-file-manager-advanced/media-selector.php on line 376

    Notice: Use of undefined constant mfma_relocator_dircmp – assumed ‘mfma_relocator_dircmp’ in /home3/cherrym3/public_html/dev/wp-content/plugins/media-file-manager-advanced/media-relocator.php on line 220
    [{“ids”:0,”name”:”2013″,”isdir”:1,”isemptydir”:0,”isthumb”:0,”norename”:0,”thumbnail_url”:”http:\/\/cherrymotors.com\/dev\/wp-content\/plugins\/media-file-manager-advanced\/images\/dir.png”},{“ids”:1,”name”:”sl-uploads”,”isdir”:1,”isemptydir”:0,”isthumb”:0,”norename”:0,”thumbnail_url”:”http:\/\/cherrymotors.com\/dev\/wp-content\/plugins\/media-file-manager-advanced\/images\/dir.png”}]
    SyntaxError: Unexpected token <
    Notice: Use of undefined constant Mfma_rlMediaSelector – assumed ‘Mfma_rlMediaSelector’ in /home3/cherrym3/public_html/dev/wp-content/plugins/media-file-manager-advanced/media-selector.php on line 376

    Notice: Use of undefined constant mfma_relocator_dircmp – assumed ‘mfma_relocator_dircmp’ in /home3/cherrym3/public_html/dev/wp-content/plugins/media-file-manager-advanced/media-relocator.php on line 220
    [{“ids”:0,”name”:”2013″,”isdir”:1,”isemptydir”:0,”isthumb”:0,”norename”:0,”thumbnail_url”:”http:\/\/cherrymotors.com\/dev\/wp-content\/plugins\/media-file-manager-advanced\/images\/dir.png”},{“ids”:1,”name”:”sl-uploads”,”isdir”:1,”isemptydir”:0,”isthumb”:0,”norename”:0,”thumbnail_url”:”http:\/\/cherrymotors.com\/dev\/wp-content\/plugins\/media-file-manager-advanced\/images\/dir.png”}]

    https://www.ads-software.com/extend/plugins/media-file-manager-advanced/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have the same problem. I am using WordPress 3.5.1 and Media File Manager Advanced 1.0.3. Could somebody give an advice?

    ok, now i found how to solve this. You have to put quotes around Mfma_rlMediaSelector on line 376:
    if (class_exists('Mfma_rlMediaSelector'))
    But then i got another problem: undefined constant mfma_relocator_dircmp on line 220 and undefined variable $upload_dir_a on line 354. I set the quotes to the constant again and it worked, but for the variable I am not sure what to do, you could set the if-statement checking if the variable isset:

    if(isset($upload_dir_a)) {
    $upload_dir = substr($upload_dir, 0, strlen($upload_dir) - strlen($upload_dir_a['subdir']));
    }

    but i assume it is not the best way to solve this. However it seems to work, at least you can then see a panel with your files and folders. I think this solution with a variable might cause some problems when relocating files using the panel…But as long as u don’t need to relocate it should be fine.
    Maybe someone can suggest a solution for the problem with variable upload_dir_a?

    I’ve noticed this exact problem as well, and am also running the most recent update of WordPress. I’ve just started looking into the problem, but this is definitely something needing to be fixed. Wonderful plugin otherwise.

    Hi guys,
    I’m suggesting to install WP Bug Tracker.
    This will report your issues to our server and will come up with solution.

    Regards,
    Vasyl

    Solved this issue with:

    if (class_exists('Mfma_rlMediaSelector')) {
    //Code block
    }

    Make sure you refresh your page afterwards…

    See also: If class exists thread…

    ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Use of undefined constant Mfma_rlMediaSelector’ is closed to new replies.