close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DA Update page redirect wrong?

Thread began 3/13/2012 11:14 am by gary.brett434358 | Last modified 6/20/2012 1:12 pm by Jason Byrnes | 1352 views | 11 replies |

gary.brett434358

DA Update page redirect wrong?

Hi, for whatever reason, one of my update pages has started redirecting to an incorrect page, I only noticed today may have always been like it!

On the server behaviours 'update record' it is set correctly to redirect to:

tblcontacts_Results_Direct.php?ContactID=<?php echo ((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:""); ?>



However the page redirects to 'tblcontacts_Update.php', I have searched the up[date page endlessly and can find no reference to this page, have used IE & Chrome, cleared cache with no success?

// WA Application Builder Update
if (isset($_POST["Update_x"])) // Trigger
{
$WA_connection = $ghl_portal;
$WA_table = "tblcontacts";
$WA_redirectURL = "tblcontacts_Results_Direct.php?ContactID=".((isset($_POST["WADAUpdateRecordID"]))?$_POST["WADAUpdateRecordID"]:"") ."";
if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";
$WA_keepQueryString = false;
$WA_indexField = "ContactID";



I have attached page if anyone can help me out?

Many thanks

Attached Files
tblcases_Update_Direct.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:
supporthistory.php

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

Sign in to reply to this post

Beau

I'm not for sure if it's the same problem... But after updating DataAssist the redirect url stopped working. After saving the record the page would reload itself instead of going to the redirect url specified. Discovered that rel2abs was changing the specified redirect url to an absolute path that did not exist causing the redirect to fail. I deleted the call to rel2abs (shown below) and the redirect url started working again.

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

Sign in to reply to this post

Jason ByrnesWebAssist

here is an updated copy of the WA_DataAssist/library.php file that should correct the problem.

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

doug.lemesurier305760

Redirect... does not

Same problem.

The redirect, after update, does not redirect. It just reloads the same page.

I've tried removing: if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";

I've replaced the DA Library.php but I just can't get the redirect to work.

Sign in to reply to this post

Jason ByrnesWebAssist

could be a php error is occurring but error reporting is turned off.

to turn error reporting on, add the following code at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>
Sign in to reply to this post

doug.lemesurier305760

Some old-school weirdness here.

1. I made sure the updated DA Library.php was correct - no effect.

2. I turned on the error reporting in 2 pages - one UPDATE page and one INSERT page.

3. Tested and BANG, the UPDATE page redirects correctly with no errors. 'A cache issue' I think, and I switch browsers to validate... all goes well.

4. Now I test the INSERT page, with the error reporting code snippet, but it does not redirect to to the value in $WA_redirectURL = "index.php", it just re opens itself.

I am now going over the INSERT page. No errors are reported but there must be a coding issue.

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the insert page please.

Sign in to reply to this post

doug.lemesurier305760

Here's the file. Note: I've left the PHP error reporting at the top

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

Jason ByrnesWebAssist

at line 27, there is a blank line between code blocks. Line 25 - 30 is"

php:
$WA_menu_1287605593074->Initialize(true);
} ?>

<?php 
// WA Application Builder Insert
if (isset($_POST["Insert"])) // Trigger




that blank line between code blocks can cause redirects to fail, delete the blank line at line 27:

php:
$WA_menu_1287605593074->Initialize(true);
} ?>
<?php 
// WA Application Builder Insert
if (isset($_POST["Insert"])) // Trigger
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...