PDFs not working in Safari or IE

Permalink
PDFs are not opening in Safari or IE.. I used to have to put ini_set('zlib.output_compression','Off'); in the index.php file to get them to open but that's not even working at this point.

The site ishttp://www.ebs-ins.com and an example is the Privacy statement in the bottom left.

The site is updated to the latest version.

getjoel
 
Job replied on at Permalink Reply
Job
In Chrome I get the following:
http://puu.sh/6QTNU.png

Are you sure the link to the file is correct?
getjoel replied on at Permalink Reply
getjoel
Now I'm getting that too.. May have been cached.

As far as the link goes.. I added the file using the ADD LINK button in the editor.. So I didn't manually set the link. Not sure why that wouldn't be linking correctly..
mhawke replied on at Permalink Reply
mhawke
Shouldn't you add a link to a file by using the Add File function since it's a file you want them to download?
getjoel replied on at Permalink Reply
getjoel
getjoel replied on at Permalink Reply
getjoel
I tried that and that didn't work either. Same result.
Job replied on at Permalink Reply
Job
Corrupt core?
mhawke replied on at Permalink Reply
mhawke
It says it's an 'Invalid File'. Have you tried adding a link to a different file, perhaps a different PDF or a Word doc?
getjoel replied on at Permalink Reply
getjoel
Yes.. None of the PDF links are working on the site..






Joel Lucibello
Agenity Corporation
http://www.agenity.com
joel@agenity.com
704.728.1110

"We make websites smarter!"
mhawke replied on at Permalink Reply
mhawke
But the 'Add File' function works for other types of documents?
getjoel replied on at Permalink Reply
getjoel
No.. I just tried it with a PDF and a JPG and neither of them work in Safari.. Only in Chrome..
http://ebs-ins.com/index.php?cID=134...
getjoel replied on at Permalink Reply
getjoel
This is crazy.. The site was just updated to the latest version of Concret5. Everything else works.. but anything uploaded using the FILE MANAGER or ADD FILE won't open in certain browsers.

I can't imagine that I'm the only one this has ever happened to..?
jshannon replied on at Permalink Reply
jshannon
Check your files (specifically config files, probably) for extra stuff
(probably whitespace) after the closing tag ?>.

Or, generally, just remove all closing tags.

James
getjoel replied on at Permalink Reply
getjoel
This file?

There are no spaces at all?
mhawke replied on at Permalink Reply
mhawke
For heaven's sake Joel, don't ever post your database details on a public forum.
getjoel replied on at Permalink Reply
getjoel
Oops. Is there any way to delete it?
mhawke replied on at Permalink Reply
mhawke
Change your database info. Google already indexed your current data.
jshannon replied on at Permalink Reply
jshannon
Also (and I have no reason to believe this to be true), make sure there is no whitespace after the last ?>, in that or in any other file.

James
getjoel replied on at Permalink Reply
getjoel
It's late and I don't have access to my developer.. Is changing the database password something that's easy to do?

I'm using a VPS and using SQLYOG..

Let me know..

Thank you!
jasteele12 replied on at Permalink Reply
jasteele12
You need to log into the MySQL server as user root (ar any user that has the UPDATE privilege for the mysql database). You should be able to do that with SQLYOG, or from the command line:

mysql -u root -h localhost -p


After entering the password you would end up at at mysql> prompt;

Then enter these commands (to change user "user-name" and password to "new-password") without the quotes:

USE mysql;
UPDATE mysql.user SET Password=PASSWORD('new-password') WHERE User='user-name' AND Host='localhost';
FLUSH PRIVILEGES;


If you are using the command line, at the mysql> prompt enter

quit;


That should do it.
mhawke replied on at Permalink Reply
mhawke
And then you need to change the info in your [root]/site.php to match your new database info.
jshannon replied on at Permalink Reply
jshannon
I'd argue that it's MUCH more important to change your salt. Go do that now...

Sorry about all of this... :)

James
mhawke replied on at Permalink Reply
mhawke
The site is dead so I assume he's already changed more than the salt.

http://www.ebs-ins.com/
jshannon replied on at Permalink Reply
jshannon
Yeah. Eek.

(And I should have noted that this will prevent all logins from working. On the other hand, it'll prevent people from trivially taking over his site... so, that's the other thing.)
getjoel replied on at Permalink Reply
getjoel
getjoel replied on at Permalink Reply
getjoel
mkly replied on at Permalink Reply
mkly
Jeez, this is getting all kinds of crazy. You can use this to reset your admin password.

https://github.com/mkly/concrete5-Lockpick...

Good luck,
Mike
getjoel replied on at Permalink Reply
getjoel
I figured it all out.. Not sure why replying via email is showing up blank on certain posts.. but I had replied that I figured all of that out.

I ended up just manually uploading a PDF via FTP and linked them that way.. That will hold until the client tries to upload another PDF.. This is my only client that this is happening to.. and I have no idea why.. but at this point we're just back to PDFs not opening in certain browsers using the FILE UPLOAD and the ADD FILE button..

Thanks for everything else..