http 500 error on uploads

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
courierman
Registered User
Posts: 6
Joined: Thu Oct 10, 2019 10:10 am

http 500 error on uploads

Post by courierman » Thu Oct 10, 2019 3:04 pm

Hi,
Ive just moved host and installed a lets encrypt ssl cert.
Everything is working fine apart from uploading an image for avatars returns a 500 redirect error and post uploads return a http error.
Can anyone help please

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21572
Joined: Fri Aug 29, 2008 9:49 am
Location: Caerdydd

Re: http 500 error on uploads

Post by Mick » Thu Oct 10, 2019 3:20 pm

Welcome to phpBB

500 errors are server errors, have a look at the server error logs for any clue to the problem and post them here. Also please fill out the Support Request Template and post it back here to enable us to assist you better.
"The more connected we get the more alone we become" - Kyle Broflovski

courierman
Registered User
Posts: 6
Joined: Thu Oct 10, 2019 10:10 am

Re: http 500 error on uploads

Post by courierman » Thu Oct 10, 2019 3:37 pm

Hi thanks.
Here is part of the log that refers to the error Im getting

Code: Select all

[Thu Oct 10 16:24:28.756334 2019] [proxy_fcgi:error] [pid 790] [client **.*.*.**:1027] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Class 'phpbb\\files\\filespec' not found in /var/www/html/cache/production/container_4335734bbdd20f586549a504dff5f80c.php:1927\nStack trace:\n#0 /var/www/html/vendor/symfony/dependency-injection/Container.php(295): phpbb_cache_container->getFiles_FilespecService()\n#1 /var/www/html/vendor/symfony/dependency-injection/ContainerBuilder.php(446): Symfony\\Component\\DependencyInjection\\Container->get('files.filespec', 2)\n#2 /var/www/html/phpbb/files/factory.php(49): Symfony\\Component\\DependencyInjection\\ContainerBuilder->get('files.filespec')\n#3 /var/www/html/phpbb/files/types/form.php(91): phpbb\\files\\factory->get('files.filespec')\n#4 /var/www/html/phpbb/files/types/form.php(67): phpbb\\files\\types\\form->form_upload('fileupload')\n#5 [internal function]: phpbb\\files\\types\\form->upload('fileupload')\n#6 /var/www/html/phpbb/files/upload.php(198): call_user_func_array(Array, Array)\n#7 /var/www/html/phpbb/attachment/upload.php(121): phpbb\\files\\upload->handle_upload('files.t...\n', referer: https://*************.co.uk/posting.php?mode=post&f=5

courierman
Registered User
Posts: 6
Joined: Thu Oct 10, 2019 10:10 am

Re: http 500 error on uploads

Post by courierman » Thu Oct 10, 2019 3:47 pm

Support Request Template
What version of phpBB are you using? phpBB 3.2.8
Who do you host your board with? No answer given
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Fresh Install
Is registration required to reproduce this issue? Yes
Do you have any MODs installed? No
Do you have any extensions installed? Yes
What extensions do you have installed? 24 hour activity stats 1.0.9
Advanced BBCode Box 3.2.2
Connection logger 2.0.4-beta
Disable all extensions 2.1.0
Download Database 1.0.0
Editor extension 1.0.1
Email List 1.0.2
Header Banner 3.2.2
IP Search 0.1.0-RC1
Newest members 1.0.2
phpBB3 SEO Sitemap 1.1.1
Poster IP in Viewtopic 1.0.2
Show First Post Only to Guest 1.2.4
Stop Forum Spam 1.1.9
Thanks for posts 2.0.6
[*] Auto database backup 2.1.0-RC6
[*] Dropbox upload for autobackup
What styles do you currently have installed? prosilver
What language(s) is your board currently using? english
Which database type/version are you using? MariaDB
What is your level of experience? New to PHP and phpBB
What username can be used to view this issue? No answer given
What password can be used to view this issue? No answer given
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? Transferred from one host
Please describe your problem. When anyone tries to upload an avatar or attach something to a post it gives a HTTP error
Generated by SRT Generator
Last edited by courierman on Fri Oct 11, 2019 6:49 am, edited 2 times in total.

courierman
Registered User
Posts: 6
Joined: Thu Oct 10, 2019 10:10 am

Re: http 500 error on uploads

Post by courierman » Thu Oct 10, 2019 6:58 pm

apparently its a php error and is linked to the phpbb3 filespec.php
Can anyone help?

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51865
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: http 500 error on uploads

Post by Brf » Thu Oct 10, 2019 8:07 pm

courierman wrote:
Thu Oct 10, 2019 3:37 pm

Code: Select all

 Class 'phpbb\\files\\filespec' not found
Have you tried reuploading /phpbb/files/filespec.php ?

courierman
Registered User
Posts: 6
Joined: Thu Oct 10, 2019 10:10 am

Re: http 500 error on uploads

Post by courierman » Fri Oct 11, 2019 6:47 am

Hi,
The filespec.php file was there but it said 0 bytes.
Ive reuploaded the original and it now works fine.
Not sure why it didnt ftp across correctly in the first place but all good now.
Thanks

Post Reply

Return to “[3.2.x] Support Forum”