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.
Suggested Hosts
User avatar
metalive
Registered User
Posts: 37
Joined: Thu Dec 11, 2003 10:01 pm
Location: Milky Way
Contact:

PDF-Upload fails, extension allowed!?

Postby metalive » Thu Oct 30, 2008 9:34 pm

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: 63389
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: PDF-Upload fails, extension allowed!?

Postby KevC » Thu Oct 30, 2008 9:43 pm

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

LaneLester
Registered User
Posts: 58
Joined: Fri Jun 15, 2007 3:30 pm

Re: PDF-Upload fails, extension allowed!?

Postby LaneLester » Thu Apr 02, 2009 3:58 pm

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: 63389
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: PDF-Upload fails, extension allowed!?

Postby KevC » Thu Apr 02, 2009 5:06 pm

Please fill out the Support Request Template. And if possible have you got a test account for us to try?

LaneLester
Registered User
Posts: 58
Joined: Fri Jun 15, 2007 3:30 pm

Re: PDF-Upload fails, extension allowed!?

Postby LaneLester » Thu Apr 02, 2009 5:47 pm

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: 63389
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: PDF-Upload fails, extension allowed!?

Postby KevC » Thu Apr 02, 2009 6:36 pm

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.

LaneLester
Registered User
Posts: 58
Joined: Fri Jun 15, 2007 3:30 pm

Re: PDF-Upload fails, extension allowed!?

Postby LaneLester » Thu Apr 02, 2009 6:59 pm

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

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

Re: PDF-Upload fails, extension allowed!?

Postby narqelion » Thu Apr 02, 2009 7:10 pm

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!?

Postby LaneLester » Thu Apr 02, 2009 7:14 pm

755

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

Re: PDF-Upload fails, extension allowed!?

Postby narqelion » Thu Apr 02, 2009 7:17 pm

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!?

Postby LaneLester » Thu Apr 02, 2009 7:31 pm

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: 63389
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: PDF-Upload fails, extension allowed!?

Postby KevC » Thu Apr 02, 2009 8:03 pm

Re-upload the index.php and includes/functions.php files.

LaneLester
Registered User
Posts: 58
Joined: Fri Jun 15, 2007 3:30 pm

Re: PDF-Upload fails, extension allowed!?

Postby LaneLester » Thu Apr 02, 2009 8:20 pm

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

But one bright note: I can do attachments now!

Lane
Attachments
captured.jpg
Screen capture
captured.jpg (4.92 KiB) Viewed 7690 times

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

Re: PDF-Upload fails, extension allowed!?

Postby KevC » Thu Apr 02, 2009 9:17 pm

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.

LaneLester
Registered User
Posts: 58
Joined: Fri Jun 15, 2007 3:30 pm

Re: PDF-Upload fails, extension allowed!?

Postby LaneLester » Thu Apr 02, 2009 11:28 pm



Return to “3.0.x Support Forum”

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot], omgili [Bot] and 60 guests