close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
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 4:53 pm by kbettenc296716 | Last modified 6/10/2010 10:35 am by Jason Byrnes | 1445 views | 5 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

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...