Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2008
Posts: 7
L
stranger
stranger
L Offline
Joined: Jun 2008
Posts: 7
I help moderate a board called Ladycakes, that has recently upgraded to 7.3. Somewhere in the upgrade, we lost ability to view pictures before the upgrade. They seem to have attached a new number before the old file name. Now, instead of auto viewing, some download and CAN be viewed from ones files, and some seem not to be there at all.
I was wondering if anyone had heard of this issue at all, b/c without the pics, a cake decorating forum is in bad shape.
The site is located at www.ladycakes.com then view forums. If anyone wants to join to have a look, temp membership is free, and I'm SURE that the owner would be happy for someone to have a look. I appreciate any and all help, our admin (aka husband of the lady that runs it) can't seem to figure it out, nor can his support.
Heather (aka sad cake lady missing pictures)

Joined: Jun 2008
Posts: 7
L
stranger
stranger
L Offline
Joined: Jun 2008
Posts: 7
noone has ANY idea? Please?

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
can you link to a post where there SHOULD be a pic, but there isn't ?

also, i notice that your admin needs to go into the Admin Cpanel and go to the content rebuilder and rebuild Posts, Forums, Sigs

2c

Joined: Jun 2008
Posts: 7
L
stranger
stranger
L Offline
Joined: Jun 2008
Posts: 7
Ok, Vickie (admin) said she set your account up...but since it's membership, you'll be the only one to be able to access these links...but here they are

NORMALLY, posts work like this:
http://www.ladycakes.com/forum/ubbt...ved_1_with_blossams_butt.html#Post336824

Now..some posts do this, which is download to your computer and then you can access them:
http://www.ladycakes.com/forum/ubbthreads.php/topics/167470/Hubby_is_the_big_cheese.html#Post167470

and then...more strange, now some posts do this, which is where it ACTS like its downloading, and it's an empty file.
http://www.ladycakes.com/forum/ubbthreads.php/topics/167470/Hubby_is_the_big_cheese.html#Post167470

I so appreciate any and all help. Scott (webmaster) is our IT kinda guy, so I'm relating what you are saying to him.

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
yah, the 'problem' is in /scripts/download.inc.php

there is an if / else at the bottom causing the different behavior for different scenarios..

i'd need more access to determine what to do with $file and $file_orig..

or tell your IT guy to play around with that 1st if..

make it if (1) and see what happens.. then if (0) and see.. the 'failures' will give me the info i'd need to suggest a 'fix'

Joined: Jun 2008
Posts: 7
L
stranger
stranger
L Offline
Joined: Jun 2008
Posts: 7
K, I'll be back to you tonight when he gets home, THANK YOU SO MUCH!! Don't give up on us yet, we'll get it!

I also have to add, in three weeks of trying to get our paid support to help, you are the ONLY person to try to help, so hats off to you man, you rock!

Last edited by Ladycakesgirl; 06/05/2008 3:29 PM.
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
well, with a new release -- i'd expect support to be uber over loaded with upgrades and what not, so just be cool wink

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I'm looking through our ticket system now and I don't see anything regarding this issue. If you have paid support time available these always get priority, however I can't find anything in our ticket system, unless it's in the wrong category. Will take a look.

Joined: Jun 2008
Posts: 7
L
stranger
stranger
L Offline
Joined: Jun 2008
Posts: 7
NO, I didn't mean it was with you guys, I'm sorry, I don't know WHO he posted to help for.

Joined: Dec 2003
Posts: 15
S
stranger
stranger
S Offline
Joined: Dec 2003
Posts: 15
Rick,

Ladycakesgirl is a moderator on my wifes site, she's just trying to help with our problem. I'm as busy as you are so she stepped up to the plate to see what she could do. She hadn't known I'd posted a request here in the public forums.

I'm actually kinda of concerned we're the only ones that had this problem. As no one else has pop'd up saying they're running into the same issue.

I'd really like to know what actual changes went into 7.3 in as so far as the file attachments went. I'm guessing that somewhere in the upgrade process we hit a speed bump??

Anyways, Hopefully SirDude can help straighten us out, I've got to be out of town most of this month, so it could get difficult...


Joined: Dec 2003
Posts: 15
S
stranger
stranger
S Offline
Joined: Dec 2003
Posts: 15
[Linked Image from easthillskungfu.com]

Sirdude slam dunked it. Images inline now display properly.

Thanks man.


Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
cool beans smile

Joined: Jun 2008
Posts: 7
L
stranger
stranger
L Offline
Joined: Jun 2008
Posts: 7
Thanks so much for helping guys!

Joined: Feb 2004
Posts: 60
W
journeyman
journeyman
W Offline
Joined: Feb 2004
Posts: 60
Any chance you can share the fix? I am having the same problem! My ISP just moved me from a server that had PHP 4 to one that has PHP 5 and I suspect that is the root of the problem. But if there is a fix I would love to know it! frown

Thanks!

I should add the link to the forum...

http://www.aspergerinfo.com/forums/ubbthreads.php/forums/10/1/Picture_Gallery_with_Community

What is weird is there is one picture out of all of them that does show up...

Last edited by winter; 06/23/2008 6:36 PM. Reason: added link
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
i think Rick has this as a fix in 7.3.1, but for a quickie --

/scripts/download.inc.php

find:
PHP Code
 // Display inline
	if (preg_match("#(gif|jpg|png|txt)#",$file_extension)) {
		header("Pragma: public"); // required
		header("Expires: 0");
		header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
		header("Cache-Control: private", false); // required for certain browsers
		header("Location:  {$config['ATTACHMENTS_URL']}/$file");
	} else {
		header("Content-Type: application/octet-stream");					  
		header("Content-Disposition: attachment; filename=\"$file_orig\";");   
		header("Content-Length: ".filesize("{$config['ATTACHMENTS_PATH']}/$file")); 
		readfile("{$config['ATTACHMENTS_PATH']}/$file");					   
	} 

change to:
PHP Code

		header("Pragma: public"); // required
		header("Expires: 0");
		header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
		header("Cache-Control: private", false); // required for certain browsers
		header("Location:  {$config['ATTACHMENTS_URL']}/$file"); 

Joined: Feb 2004
Posts: 60
W
journeyman
journeyman
W Offline
Joined: Feb 2004
Posts: 60
Thanks for responding Sirdude! I installed the update to 7.3.1 but the code looks the same to me? So I tried to replace the code as you indicated, but no luck. Maybe my problem is different...

This is what my section of code now looks like...
Quote
$dbh -> do_placeholder_query($query,array($Number),__LINE__,__FILE__);

$file = rawurlencode($file);

header("Pragma: public"); // required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private", false); // required for certain browsers
header("Location: {$config['ATTACHMENTS_URL']}/$file");




?>

I assume I was supposed to replace the whole If/Then section? I tried different variations, but no luck.

Actually I think it is a permissions issue, but I don't really understand what is going on. When I FTP to the Gallery Directory the files have an owner of www.data and the permissions are set so only the owner can read/write them (600 I think). The two pictures that are viewable have their permissions set correctly. I am guessing that the UBB software has nothing to do with setting the owner, or the permissions in this forum? Something I need to work with my ISP to get the permissions reset correctly?

Anyway, thanks again for your suggestions.
Mark

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
yah, the perms will get in the way.. that is the coding change i recommended (and worked) for the original behavior..

i guess i thought you had the same problem..

Joined: Feb 2004
Posts: 60
W
journeyman
journeyman
W Offline
Joined: Feb 2004
Posts: 60
Sirdude I appreciate your help. I fixed my permissions problem and that fixed half the problem. Now all the old posts show up, but it still won't allow anyone to add new photos. It looks like it works, but it actually does not upload anything (I can ftp to the gallery folder and see nothing is being uploaded from the forum).

So I tried your code fix figuring that was the piece I was still missing. No luck...but I am not sure I am replacing the right code. Do I get rid of everything in the If/Then section and replace with your code, or do I just replace part of that section?

Thanks again for any help you can offer.
Mark

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
no, my fix only handles the viewing of inline photos AFTER success on upload..

it won't help you until you can get the uploading to work smile

Joined: Feb 2004
Posts: 60
W
journeyman
journeyman
W Offline
Joined: Feb 2004
Posts: 60
I sure appreciate your help! I'm off to file a support ticket...thanks again!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
3 members (ahmed047, Nightcrawler, 1 invisible), 566 guests, and 148 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)