close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Image upload used to work fine. Now not displaying image on page.

Thread began 10/25/2011 7:19 pm by webdesignerwags | Last modified 12/09/2011 12:45 pm by Michelle141190 | 1695 views | 11 replies |

webdesignerwags

Image upload used to work fine. Now not displaying image on page.

I have an Insert item form with image upload that has been working for probably well over a year but suddenly something is wrong. I didn't change anything in the pages. Image file seems to upload just fine. I can see it on the server but it won't display on page. Yet all other images display on page.

Has something changed on your end that could possibly cause this? Or was there an upgrade that I don't know about? I just can't figure this out. Is very strange.

Here is a page. You will see item 'atest' has no image.
artsCrafts.php

Sign in to reply to this post

CraigRBeta Tester

Looks like the image file isn't at the path specified.

if i browse the page, there appears not to be an image (map_1.jpg) for atest in the CatImages folder.

Sign in to reply to this post

webdesignerwags

Image upload used to work fine. Now not displaying image on page

Where are you seeing that Craig? Image is on server. I double checked. Images are uploading. Path in my code hasn't changed. Nothing has changed in database. Nothing should have changed in any of my code since it was working. I can see the file name in the database. If I right-click and get image info, I can see file name. I even checked my style sheet but if something got messed up with a style, then all the images would be messed up. It's really not making any sense. That's why I started to wonder if something could have possibly changed with the web assist program. That doesn't really make sense either but I didn't know what else to think. I hope someone can see something I can't because I really don't have time to take this all apart and start over!

thank you!

Sign in to reply to this post

CraigRBeta Tester

in chrome, (or firefox with firebug installed), i pressed f12

all I did was work through the page to the relevant section, you can see it is looking for the image file in the path shown, but can't find it.

if you look at the section above with the stamp set, the image is found.

From this, I made the assumption that the file is not in the specified folder

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the Insert item page so we can look at the code to begin troubleshooting the problem.

Sign in to reply to this post

webdesignerwags

Files attached

Thanks Jason - I also attached the display file. Let me know if you need anything else.

Attached Files
FilesToWA.zip
Sign in to reply to this post

Jason ByrnesWebAssist

1) the ini_set code you have at line 25 - 28:

php:
<?php


ini_set
('memory_limit','500M');
?>



should be moved to line 1.

2) Just before that code block add this code block:

php:
<?php

error_reporting
(E_All);
ini_set('display_errors','on');
?>



3) change this line:

php:
$WA_redirectURL = "Catalog_Insert.php";




to:

php:
$WA_redirectURL = "";




4) Add this code just after the <body> tag:

php:
<?php echo WA_DFP_AllUploadsDebug(); ?>



this will write debuging info to the screen, post back the results after trying to upload a file.

Sign in to reply to this post

webdesignerwags

results

Status object: WA_UploadResult1
statusCode : 1
errorMessage :
clientFileName : map.jpg
fileExtension : jpg
serverFileName : map_3.jpg
serverSimpleFileName : map_3
serverDirectory : /home/content/w/e/b/websbywagner/html/fay/CatImages/
contentType : image/jpeg
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed : 1
fileSize : 10724
isImage : 1
imageWidth : 250
imageHeight : 162
WA_UploadResult1_1:
clientFileName : map.jpg
fileExtension : jpg
serverFileName : map_3.jpg
serverSimpleFileName : map_3
serverDirectory : /home/content/w/e/b/websbywagner/html/fay/CatImages/
contentType : image/jpeg
fileSize : 10724
imageWidth : 250
imageHeight : 162
isImage : 1
fileWasOverwritten :
fileWasSkipped :
fileWasRenamed : 1
statusCode : 1

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Michelle141190

I think this is the same problem that I am having. The file is uploaded, but it is not given view permissions. The permissions are set right on the folder, but the uploaded file is not inheriting them. The code used to work, but suddenly stopped.

When I upload a file using FTP, the file has the correct permissions and can be seen on the site. When it is uploaded using DFP, it cannot be seen on the site.

Any thoughts?

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...