I need help again! Error The image file you tried to attach is invalid.

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
DougMPhoto
Registered User
Posts: 84
Joined: Thu Jan 27, 2011 4:44 am

I need help again! Error The image file you tried to attach is invalid.

Post by DougMPhoto »

Error
The image file you tried to attach is invalid.

I have already posted and no one seems to know what is going on.
I cannot attach images on my 2 forums. This started after Jan 28, 2022.
I just updated to latest version (3.3.10) today and that was no help.
I contacted my host and they said to get tech support from you as there are no errors on my host.
This is my 3rd time and cannot get is resolved.

Please help.
Last edited by Mick on Tue Apr 04, 2023 1:12 pm, edited 1 time in total.
Reason: Solved.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: I need help again! Error The image file you tried to attach is invalid.

Post by Lumpy Burgertushie »

we need more info to be able to help.

what image type(s) are you trying to attach to a post/
have you checked to make sure that image type is allowed in your attachment settings in the admin panel?

how about a link to the board and if possible a test account so we can see what is happening.


robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
DougMPhoto
Registered User
Posts: 84
Joined: Thu Jan 27, 2011 4:44 am

Re: I need help again! Error The image file you tried to attach is invalid.

Post by DougMPhoto »

Support Request Template
What version of phpBB are you using? phpBB 3.3.10
What is your board's URL? https://www.pittpounders.org/ppnb/
Who do you host your board with? iPower.com
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? Yes
Do you have any MODs installed? No
Do you have any extensions installed? Yes - all disabled
What version of phpBB3 did you update from? phpBB 3.3.5
What styles do you currently have installed? prosilver , X-Creamy
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 5
What is your level of experience? New to PHP and phpBB
What username can be used to view this issue? sample
What password can be used to view this issue? sample
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? Nothing. It last worked Jan 28 (the last time I attached an image). I updated this morning and that did not correct the issue.
Please describe your problem. When trying to attach an image I get the error that image is invalid. This issue is happening on 2 Forums: https://www.pittpounders.org/ppnb/
https://www.pittpounders.org/forum/
Generated by SRT Generator
Last edited by DougMPhoto on Tue Mar 28, 2023 7:57 pm, edited 4 times in total.
DougMPhoto
Registered User
Posts: 84
Joined: Thu Jan 27, 2011 4:44 am

Re: I need help again! Error The image file you tried to attach is invalid.

Post by DougMPhoto »

IMG_4038_SMALL.jpg
simple jpeg
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: I need help again! Error The image file you tried to attach is invalid.

Post by GanstaZ »

Based on SRT.. there are no extensions, but it isn't true.. Is it same when you disable all extensions?
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
DougMPhoto
Registered User
Posts: 84
Joined: Thu Jan 27, 2011 4:44 am

Re: I need help again! Error The image file you tried to attach is invalid.

Post by DougMPhoto »

GanstaZ wrote: Tue Mar 28, 2023 7:22 pm Based on SRT.. there are no extensions, but it isn't true.. Is it same when you disable all extensions?
I'll try that!
DougMPhoto
Registered User
Posts: 84
Joined: Thu Jan 27, 2011 4:44 am

Re: I need help again! Error The image file you tried to attach is invalid.

Post by DougMPhoto »

Disabled all extensions on both forums. Still does not work.
DougMPhoto
Registered User
Posts: 84
Joined: Thu Jan 27, 2011 4:44 am

Re: I need help again! Error The image file you tried to attach is invalid.

Post by DougMPhoto »

Would any of this have anything to do with the problem?

Board started: Wed Nov 24, 2010 9:14 am
Avatar directory size: 17.21 KiB
Database size: 5.52 MiB
Size of posted attachments: 54.11 MiB
Database server: MySQL(i) 5.6.50-90.0-log
GZip compression: Off
PHP version: 7.4.10
Orphan attachments: 62
Board version: 3.3.10 [ Re-Check version ]
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: I need help again! Error The image file you tried to attach is invalid.

Post by GanstaZ »

If it was working at some point and now it doesn't.. then that means that host has changed something.
I'm not sure if you have seen this topic or will it help, but wont hurt to read it.
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
DougMPhoto
Registered User
Posts: 84
Joined: Thu Jan 27, 2011 4:44 am

Re: I need help again! Error The image file you tried to attach is invalid.

Post by DougMPhoto »

So this is not going to work anymore for me...No problems on host side, tech support 3 times no errors...apparently cannot be fixed on phpBB side.

PHP
post_max_size is set to 20MB
upload_max_filesize set to 50MB

can't even upload a 76 kb image
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: I need help again! Error The image file you tried to attach is invalid.

Post by GanstaZ »

I do not think that it's about file size. Did you read about permissions part?
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
DougMPhoto
Registered User
Posts: 84
Joined: Thu Jan 27, 2011 4:44 am

Re: I need help again! Error The image file you tried to attach is invalid.

Post by DougMPhoto »

If I checked the correct area. That post is getting confusing they are switching from hosting to self-hosted and different things are confusing me.
I went to my files folder with Filezilla and clicked on .htaccess. changed the permissions to 777 all the files are 666.
Is there someplace else I should be?

Still does not work.

No way to fix this I guess.
DougMPhoto
Registered User
Posts: 84
Joined: Thu Jan 27, 2011 4:44 am

Re: I need help again! Error The image file you tried to attach is invalid.

Post by DougMPhoto »

RESOLVED - NOT!!! Older version doesn't recognize passwords now...can't login

My server was set to PHP 7.4
changed to 7.1 - it didn't work
changed to 7.2 - it works - images upload
changed to 7.3 - it works - images upload

Save yourself some time and change your php version back a version
Last edited by DougMPhoto on Tue Apr 04, 2023 1:40 pm, edited 3 times in total.
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2353
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦
Contact:

Re: I need help again! Error The image file you tried to attach is invalid.

Post by P_I »

All those PHP 7.x versions are EOL and unsupported, see PHP: Unsupported Branches.

I would strongly recommend moving to one of the PHP: Supported Versions.

To investigate your problem further you might need to look at the differences in the php.ini for each version. You can use the ACP => PHP info information if you do not have command line access.
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: I need help again! Error The image file you tried to attach is invalid.

Post by GanstaZ »

Don't you have php8 or higher to test it?
php 7 is EOL (End of life).
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
Post Reply

Return to “[3.3.x] Support Forum”