close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Undefined index: DOCUMENT_ROOT

Thread began 10/01/2012 7:54 pm by newreg192539 | Last modified 10/02/2012 7:17 pm by newreg192539 | 1213 views | 2 replies |

newreg192539

Undefined index: DOCUMENT_ROOT

I've created an insert, search, detail, delete, update group of pages. Anything that uses the redirect URL stops and I get the page cannot be found. Any action, such as insert, delete or update has been completed, it just can't find the redirect. I added the bit from one from your forums that should give the error and came up with this:
Notice: Undefined index: DOCUMENT_ROOT in \\nawinfs06\home\users\web\b2298\(I deleted this server identifier)\BaylorSS\WA_DataAssist\library.php on line 3 . In another forum I found a piece of code that was supposed to help this but it does not- but it was directed to CMA. Any navigation using the links on the pages (Delete, Detail, etc) works just fine. The pages are hosted on a Windows Server. I've used similar content from your wizard before with no problems. One difference this time. The pages are located inside a messageAdmin, password protected folder and the Wizard placed the WA_DataAssist and the WADbSearch folders in the web root. However, this setup works with everything except the redirect.

Sign in to reply to this post

Jason ByrnesWebAssist

on the insert and update pages, find the following line:

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




and try commenting it:

php:
//if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";
Sign in to reply to this post

newreg192539

It Works

Thanks! Now it works just as expected.

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