Fork me on GitHub

PNphpBB2 attachment error!  Bottom

  • I installed pnphpbb2 and everything is workign good except the attachment links i keep getting this error

    General Error

    The selected Attachment does not exist anymore

    404 File Not Found: The File modules//modules/PNphpBB2/files/rpgo-characterprofiler_1.5a_149.zip does not exist.


    it happenes after the file is uploaded and you try to DL it. its the extra modules at the begining but i don't know how to fix it. anyone know what to do to fix it. thxs.



    ArtisianAdeil
  • is it set right in you pnphpbb2 admin attachment manager ftp settings...

    --
    David Pahl
    Zikula Support Team
  • I don't use the FTP part I only let them attach stuff like normal i didn;t know it had anything to do witht the ftp stuff. But i still don't think that it has anything to do with that.


    ArtisianAdeil
  • Carls

    A better fix is to remove the PNphpBB moded code from the previous lines making the $filename line read:

    Change this:

    Code

    function send_file_to_browser($attachment, $upload_dir)
    {
        global $_SERVER, $HTTP_USER_AGENT, $HTTP_SERVER_VARS, $lang, $db, $attach_config;

    // Begin PNphpBB2 Module
    // $filename = ($upload_dir == '') ? $attachment['physical_filename'] : $upload_dir . '/' . $attachment['physical_filename'];
        $filename = ($upload_dir == '') ? $attachment['physical_filename'] : "modules/$ModName/$upload_dir/" . $attachment['physical_filename'];
    // End PNphpBB2 Module

        $gotit = false;


    back to the original download.php version to:

    Code

    function send_file_to_browser($attachment, $upload_dir)
    {
        global $_SERVER, $HTTP_USER_AGENT, $HTTP_SERVER_VARS, $lang, $db, $attach_config;

        $filename = ($upload_dir == '') ? $attachment['physical_filename'] : $upload_dir . '/' . $attachment['physical_filename'];

        $gotit = false;

    Or use the attached replacement download.php file.


    http://www.pnphpbb.com/index.php?name=forum&file=viewtopic&t=5945

    --
    David Pahl
    Zikula Support Team

This list is based on users active over the last 60 minutes.