close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

"Insert" button trys to open Detail page with wrong address

Thread began 12/30/2010 4:33 pm by James L | Last modified 12/30/2010 6:09 pm by James L | 1296 views | 7 replies |

James L

"Insert" button trys to open Detail page with wrong address

Built my Admin back end with DataAssist and DFP. I previously posted about my major problems with the file Upload not working (resulting in an open ticket), but this current problem seems like it should be an easy fix compared to the Upload issue.

The Insert page works great, it does upload data to my database, but when it tries to open the Detail page (to display what was just uploaded) the URL is wacky, resulting in a File Not Found error.

It tries to open this URL: "http://billchisholm.com/var/www/html/chisholm/jim/admin/items_Detail.php"

But it should be opening: "http://billchisholm.com/chisholm/jim/admin/items_Detail.php"

How can I modify the code to keep it from inserting "var/www/html/"??

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the insert page please so i can examine the code.

Sign in to reply to this post

James L

items_insert page

attached is the file

Attached Files
items_Insert.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

try changing line 74:

php:
if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";




to:

php:
if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname($_SERVER["PHP_SELF"])):"";
Sign in to reply to this post

James L

That did the trick on the Insert page. Thanks for the quick response. I assume I can do the same thing on the Details page to fix that one also?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, the same change should do the trick on the delete page.

Sign in to reply to this post

James L

That works also! I wish my other WA problems were this easy to solve!

Sign in to reply to this post

James L

I just noticed that the same thing happens when I click the "delete" button on the Detail page (the data does get deleted, but that same "www/var" stuff was added to the url of the page it tried to open

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