close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Upload fine on localhost, won't upload in production

Thread began 5/20/2010 1:53 pm by kbettenc296716 | Last modified 7/29/2021 9:20 pm by Ray Borduin | 3002 views | 12 replies |

kbettenc296716

Upload fine on localhost, won't upload in production

I have spent hours trying to figure out why these files work on my localhost and won't work in production. I'm sure it is something dumb. None of my other clients have this problem even though they are at the same ISP.
. The files are not uploaded and the database is not written to in Insert or Update.
. The upload code is positioned before the Update/Insert code.
. I checked it line by line with another client who uploads 2 files on one form, no real differences.
. I downloaded the latest version of DFP and DataAssist, removed both extensions and installed the new version, and then re-did the upload fields in both files.

I have included a zip file with related files.

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

Jason ByrnesWebAssist

Since it works locally, it is probably not a scripting problem, but rather a server problem.

The first thing i would check is the the Images/Artists/ folder that the files are being uploaded to exists on the server, and that it has read write permissions for all users.

if the Images/Artists/ folder does not exist on the server, you should create it.

Then in the files panel set the view dropdown to remote view.

Right click the Images/Artists/ folder and select set permissions. make sure that all three users have read and write permissions on that folder.


If upload is still not working, we'll have to troubleshoot further.

First, on the insert page, change line 56:
$WA_redirectURL = "artists_Detail.php";

to:
$WA_redirectURL = "";

Next add the following at line 1:

php:
<?php 

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




finally, on the bindings tab, expand the Uploaded Files Global status group and add the debug info binding to the page.

post back any php errors that are occurring and the debug info aafter trying a test.

Sign in to reply to this post

kbettenc296716

Error debug doesn't work

1. The permissions on the directory are 757 the same as all the clients I have.
2. I put the debug code in but nothing happens and I am still redirected to the detail page even though the word detail does not appear in the code anywhere. I zipped the file and attached it.

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

Jason ByrnesWebAssist

1) 766 is the minimum privilege you can use.

757 denies write permission of the user / group (see screen shot 1)

766 allows write for all users (see screen shot 2)


2) it looks like you renamed the file to artists_Inserttest.php, but the form action is still set to post to artists_Insert.php:

<form action="artists_Insert.php"


change that to:

<form action="artists_Inserttesst.php"

Sign in to reply to this post

kbettenc296716

Error message from test

Warning: copy(\Images\Artists\4502696f452fa4d1a67fbdce5cadb68f_tmp.jpg) [function.copy]: failed to open stream: No such file or directory in \\nawinfs02\home\users\web\b712\rh.loadingdock\WA_DigitalFilePro\HelperPHP.php on line 98

Warning: copy(\Images\Artists\cfdc3e7632d08a521a7b272b4f4ea787_tmp.jpg) [function.copy]: failed to open stream: No such file or directory in \\nawinfs02\home\users\web\b712\rh.loadingdock\WA_DigitalFilePro\HelperPHP.php on line 98

I can't change the 757 to 766 at this ISP but am confused as to why it needs to be that since all my other DFP customers are 757 and they work.

I attached the HelperPHP.php file.

Attached Files
HelperPHP.zip
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:
login.php

Sign in to reply to this post

Richelle

Same Issue - A few years later

I found this thread in a google search and hoped maybe I would find the answer.
I am suddenly having this issue on a few clients.
It was working fine and then stopped.
I followed the above and was not able to see anything that stuck out.

Maybe if we can resolve it on one, I can fix it on the rest.

Sign in to reply to this post

Ray BorduinWebAssist

It looks like a permissions error on the folder you are trying to upload to. If you give me FTP access then I could debug more, but I'd guess this is a folder permissions issue.

Sign in to reply to this post
Did this help? Tips are appreciated...

Richelle

Well I had to set it to 777 and it worked. Now the other one will upload an image but not a pdf or a doc.

Sign in to reply to this post

Ray BorduinWebAssist

I can't seem to find the posts_insert.php page on that site. My guess is that it is a file size issue and you may have to alter the php.ini file to allow larger files, but I couldn't debug without finding the page on the site.

Sign in to reply to this post
Did this help? Tips are appreciated...
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...