Previous Thread
Next Thread
Print Thread
Hop To
#263230 10/09/2019 12:33 AM
Joined: Aug 2006
Posts: 97
Likes: 1
G
Journeyman
Journeyman
G Offline
Joined: Aug 2006
Posts: 97
Likes: 1
I am not sure what the issue may be for the Show PDF feature for attached PDF files. When you click on it, it gives message “No Preview Available.” When you click on the icon with arrow point out of a box, it takes you to Google doc which also says, “No preview available”. Any idea which what I am doing wrong?
Attachments
5866373E-39DF-49F5-8743-C68EFDBBED96.png EA2EAAE9-E0B2-43B5-AC71-098F51F080A1.png


I am a Superstar! Testing signature here
Geoff #263231 10/09/2019 7:26 AM
Joined: Apr 2004
Posts: 1,975
Likes: 154
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,975
Likes: 154
Could it be a broken PDF? one that was not completely uploaded/attached?
Do you have a browser extension blocking the third-party domain communication?
Attachments
Attached PDF document
ALLIGATOR CRAFT.pdf (408.08 KB, 49 downloads)


current developer of UBB.threads php forum software
current release: UBB.threads 8.0.0 // wip: UBB.threads 8.0.1
isaac @ id242.com // my forum @ CelicaHobby.com
Geoff #263232 10/09/2019 4:02 PM
Joined: Dec 2003
Posts: 6,631
Likes: 85
Joined: Dec 2003
Posts: 6,631
Likes: 85
The odd part is the download links work but not the preview.
Could it be that pdf is not a allowed attachment file?
Even though it is saved.

Or could it be it was originally saved in google docs. And uploaded from there.

Last edited by Ruben; 10/09/2019 4:05 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Geoff #263233 10/09/2019 4:11 PM
Joined: Apr 2004
Posts: 1,975
Likes: 154
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,975
Likes: 154
This is the error displayed when attempting to attach a file that is not configured within the "Allowed Attachment File Extensions" setting -

an *.swf (ShockWave/Flash) file, for example -
[Linked Image]



current developer of UBB.threads php forum software
current release: UBB.threads 8.0.0 // wip: UBB.threads 8.0.1
isaac @ id242.com // my forum @ CelicaHobby.com
Geoff #263234 10/09/2019 4:12 PM
Joined: Apr 2004
Posts: 1,975
Likes: 154
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,975
Likes: 154
Attached are the first 6 pages from a book. There is a password on the pdf. That password is, "abc123"
Attachments
Attached PDF document


current developer of UBB.threads php forum software
current release: UBB.threads 8.0.0 // wip: UBB.threads 8.0.1
isaac @ id242.com // my forum @ CelicaHobby.com
Geoff #263235 10/09/2019 4:15 PM
Joined: Dec 2003
Posts: 6,631
Likes: 85
Joined: Dec 2003
Posts: 6,631
Likes: 85
I understand.that
Just thought there may be a hole for a pdf or if it is a google doc file.
That is the only thing I came up with thinking out of the box.
What is weird is the download link works just not the preview.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Geoff #263236 10/09/2019 4:17 PM
Joined: Apr 2004
Posts: 1,975
Likes: 154
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,975
Likes: 154
Attached is a regular text file with the content being only, "hello world"
The file extension was changed from "txt" to "pdf"

Attachments
Attached PDF document
New Text Document.pdf (11 Bytes, 57 downloads)


current developer of UBB.threads php forum software
current release: UBB.threads 8.0.0 // wip: UBB.threads 8.0.1
isaac @ id242.com // my forum @ CelicaHobby.com
Ruben #263237 10/09/2019 4:19 PM
Joined: Apr 2004
Posts: 1,975
Likes: 154
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,975
Likes: 154
Originally Posted by Ruben
What is weird is the download link works just not the preview.

Do you have a link to the page with the attachment, so I can inspect it?

thanks

Last edited by isaac; 10/09/2019 4:19 PM.

current developer of UBB.threads php forum software
current release: UBB.threads 8.0.0 // wip: UBB.threads 8.0.1
isaac @ id242.com // my forum @ CelicaHobby.com
Geoff #263238 10/09/2019 4:38 PM
Joined: Apr 2004
Posts: 1,975
Likes: 154
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,975
Likes: 154
After a bit of searching through your forums, I was able to find this post.
https://firstgenfirebird.org/forums/ubbthreads.php?ubb=showflat&Number=324127

I assume this is the post you were having issues with?

Im able to view the PDF inline just fine.

My browser's user-agent string is
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

[Linked Image]


current developer of UBB.threads php forum software
current release: UBB.threads 8.0.0 // wip: UBB.threads 8.0.1
isaac @ id242.com // my forum @ CelicaHobby.com
Geoff #263239 10/09/2019 5:21 PM
Joined: Aug 2006
Posts: 97
Likes: 1
G
Journeyman
Journeyman
G Offline
Joined: Aug 2006
Posts: 97
Likes: 1
I had a chance to look at it today. Your post gave me an idea what this issue might be. I use a WordPress plugin for security and part of it I have set up to block hotlinking.

# CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/REDIRECT CODE - Your Custom htaccess code will be created here with AutoMagic

# BLOCK HOTLINKING TO IMAGES
SetEnvIfNoCase Referer "^(http|https)://.*\.firstgenfirebird\.org$" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*firstgenfirebird.*" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*oakmediacreations.*" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*firstgenerationfirebird.*" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*\.google\.com$" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*\.yahoo\.com$" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*\.bing\.com$" whitelist

<FilesMatch "\.(gif|jpg|jpeg|png|bmp|pdf)$">
Order Allow,Deny
Allow from env=whitelist
# Add Your Server IP Address
Allow from xxx.xxx.xxx.xxx
</FilesMatch>

I removed the pdf part and it resolved this issue.

Thank you - Geoff


I am a Superstar! Testing signature here
Geoff #263240 10/10/2019 9:10 AM
Joined: Aug 2006
Posts: 97
Likes: 1
G
Journeyman
Journeyman
G Offline
Joined: Aug 2006
Posts: 97
Likes: 1
Thank you for your help and apologize for my delay in testing what you suggested at first as I wasted your valuable time. Geoff

https://forum.ait-pro.com/forums/to...-google-bing-or-yahoo/page/6/#post-38005


I am a Superstar! Testing signature here
Geoff #263241 10/10/2019 9:55 AM
Joined: Dec 2003
Posts: 6,631
Likes: 85
Joined: Dec 2003
Posts: 6,631
Likes: 85
No Thank you Geoff.
All to often people post a problem, they get responses but the original poster never replies if it was resolved or not and what they did to resolve the issue.

This post helps every one.
Even if not a UBB issue it was a issue that future users will find helpful.
Including the programmers.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Geoff #263453 02/03/2020 10:07 PM
Joined: Sep 2006
Posts: 169
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 169
I am having this issue also. I'm not savvy about code like you guys. Is there a fix that I can do and can you tell it to me in plain English smile . If not can you tell it to me so I can pass it on to my server guy.

Thank you

Larry Miller #263454 02/03/2020 10:17 PM
Joined: Apr 2004
Posts: 1,975
Likes: 154
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,975
Likes: 154
Originally Posted by Larry Miller
I am having this issue also.

do you have a link to this issue in your website? also, http or https?

can you view or download the attached pdf from earlier in this thread?

is your browser updated? chrome will not display PDF or flash or other add-ons if you are using an outdated version of chrome -- restart your browser.

what browser add-ons are you using? are they blocking Google servers or third-party servers... such as Google's?

does this happen when you try viewing on a different browser?

these are the first steps in debugging your issue.

EDIT: Have you tried the .httaccess steps as previously discussed in this thread?

Last edited by isaac; 02/03/2020 10:26 PM.

current developer of UBB.threads php forum software
current release: UBB.threads 8.0.0 // wip: UBB.threads 8.0.1
isaac @ id242.com // my forum @ CelicaHobby.com
isaac #263455 02/03/2020 11:28 PM
Joined: Sep 2006
Posts: 169
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 169
I just saw this...I'm off to sleep as I'm on the East Coast...thank you this reply..so far, it is happening in Chrome and Safari...I will post an additional reply with fresh eyes in the morning. Again, thank you for your reply


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Sticky posts and global announcements
by Larry Miller - 12/08/2024 2:30 PM
Profile avatar storage settings
by SenecaFlyer - 12/05/2024 1:24 PM
Not allowing attachment over 2m
by ehill - 12/03/2024 3:16 PM
New Admin Here
by SenecaFlyer - 12/02/2024 4:14 PM
Who's Online Now
2 members (Ruben, 1 invisible), 3,279 guests, and 86 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)