PDF-Upload fails, extension allowed!?

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Ideas Centre
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
User avatar
metalive
Registered User
Posts: 37
Joined: Thu Dec 11, 2003 10:01 pm
Location: Milky Way
Contact:

PDF-Upload fails, extension allowed!?

Post by metalive »

Hi!

I want to enable users to upload files to my board, especially PDF documents. I have tried it, but it fails saying "extension pdf not allowed!" A zip-file worked without problems.

However pdf (document) is in the (default) list of allowed extensions in the admin panel!?

What's wrong?
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72375
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: PDF-Upload fails, extension allowed!?

Post by KevC »

I answered a similar question a few minutes ago :)

Admin panel>posting
manage extensions and manage extension groups

Make sure the group of file types is allowed in the forums you want.
manage extension groups > click the green cog
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
LaneLester
Registered User
Posts: 58
Joined: Fri Jun 15, 2007 3:30 pm

Re: PDF-Upload fails, extension allowed!?

Post by LaneLester »

I just ran into this problem, and Google led me to this thread. kevin, I did my best to follow your suggestions, and I still can't attach anything. I checked and even "doc" isn't permitted.

I have attachments allowed. Allow attachments: Yes
I have the Documents group allowed: Documents » Only allowed in posts
The Documents group includes the extensions, and "Allow all forums" is selected.

Lane
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72375
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: PDF-Upload fails, extension allowed!?

Post by KevC »

Please fill out the Support Request Template. And if possible have you got a test account for us to try?
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
LaneLester
Registered User
Posts: 58
Joined: Fri Jun 15, 2007 3:30 pm

Re: PDF-Upload fails, extension allowed!?

Post by LaneLester »

The test account you can try is:
un: Tester
pw: tester

I started filling out the ticket, and was alerted to the fact that I'm not running the latest and greatest. In fact, I'm running 3.0 RC1. The update packages are for updating later releases to 3.0.4. How do I update my setup?

Lane
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72375
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: PDF-Upload fails, extension allowed!?

Post by KevC »

RC1. Blimey.

Your best option is to go for completely new files. This will remove any MODS you have installed but as there have been a lot of code changes during development of the RC versions you should update your MODs too anyway.

Get the full package download from the link at the top of this page.
Extract that to your computer.
Upload everything except the config.php file. You might also want to miss out the images folder if you want to keep smilies and ranks.
If you're using a non default style you will have to look for updates for that too or apply them yourself. Style code changes here.
Then go to yoursite.com/forumfolder/install/database_update.php
Let that run and then delete the install folder.
You are now up to date.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
LaneLester
Registered User
Posts: 58
Joined: Fri Jun 15, 2007 3:30 pm

Re: PDF-Upload fails, extension allowed!?

Post by LaneLester »

I hit a snag during the update:

Code: Select all

Updating database schema

Progress :: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done
Result :: Some queries failed, the statements and errors are listing below.

    * Error :: BLOB/TEXT column 'group_name' used in key specification without a key length
      SQL :: CREATE INDEX group_legend_name ON phpbb_groups(group_legend, group_name)

This is probably nothing to worry about, update will continue. Should this fail to complete you may need to seek help at our support forums. See README for details on how to obtain advice.

Updating data

Progress :: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Fatal error: Unable to remove files within ./../cache/. Please check directory permissions. in /home/creation/public_html/phpBB3/includes/acm/acm_file.php on line 515
Lane
narqelion
I've Been Banned!
Posts: 7235
Joined: Sat Dec 13, 2008 5:00 pm
Contact:

Re: PDF-Upload fails, extension allowed!?

Post by narqelion »

What are the permissions on your /cache folder set to?
LaneLester
Registered User
Posts: 58
Joined: Fri Jun 15, 2007 3:30 pm

Re: PDF-Upload fails, extension allowed!?

Post by LaneLester »

755
narqelion
I've Been Banned!
Posts: 7235
Joined: Sat Dec 13, 2008 5:00 pm
Contact:

Re: PDF-Upload fails, extension allowed!?

Post by narqelion »

Change them to 777 and see if that makes a difference. Fwiw, the instructions state to set them to 777. :)
LaneLester
Registered User
Posts: 58
Joined: Fri Jun 15, 2007 3:30 pm

Re: PDF-Upload fails, extension allowed!?

Post by LaneLester »

OK, we're making progress. The board is back up, and the forums are displaying OK. But when I display the Board Index, the following is displayed at the top of the screen:

Code: Select all

[phpBB Debug] PHP Notice: in file /index.php on line 110: sprintf() [function.sprintf]: Too few arguments
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3760: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3762: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3763: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3764: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
I changed downloads, files, and includes to 777, but I still get the above.

Lane
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72375
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: PDF-Upload fails, extension allowed!?

Post by KevC »

Re-upload the index.php and includes/functions.php files.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
LaneLester
Registered User
Posts: 58
Joined: Fri Jun 15, 2007 3:30 pm

Re: PDF-Upload fails, extension allowed!?

Post by LaneLester »

No luck; I'm still getting the same errors.

But one bright note: I can do attachments now!

Lane
Attachments
Screen capture
Screen capture
captured.jpg (4.92 KiB) Viewed 9816 times
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72375
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: PDF-Upload fails, extension allowed!?

Post by KevC »

Can we have a link to the board please?

Also do these two things

Admin panel
styles
imageset
refresh

On the server, open the cache folder and delete everything except the index.htm and htaccess files. Don't worry if you can't see the latter.
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
LaneLester
Registered User
Posts: 58
Joined: Fri Jun 15, 2007 3:30 pm

Re: PDF-Upload fails, extension allowed!?

Post by LaneLester »

http://creationresearch.org/phpBB3/index.php

The two things are done.

Lane
Locked

Return to “[3.0.x] Support Forum”