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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
PNphpBB2 attachment error!
-
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
is it set right in you pnphpbb2 admin attachment manager ftp settings...
--
David Pahl
Zikula Support Team -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Jan 24, 2006
- Posts: 2
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 -
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
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
- Moderated by:
- Support
