close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DataBridge server side include issues

Thread began 7/01/2015 3:26 am by Mohammed Aji Wajiro | Last modified 7/06/2015 10:52 am by Ray Borduin | 2741 views | 6 replies |

Mohammed Aji Wajiro

DataBridge server side include issues

I have three pages. The first page (registerNew.php) contains a registration form designed with form designer. It has a secure page rule which allows only certain users have access to it. Moreover, it has dataassist insert record behavior with one of the fields points to a sessionid of SecurityAssist(foreign key).

The second page (reprint.php) contains links for displaying a page that contains the data from the registered records that matches that sessionid (filtered).

The third page (register_student.php) includes both pages and display only one at a time based on a condition. If a record that matches the sessionid does not exists in the database, display the registration form or else display the page that contain the links for displaying the information. My main aim for making it as such is to deny access to the registration form if a person is already registered.

I tested the whole setup on my local server and everything works as expected. But when I deployed the site on my host and try to access the third page without login, it shows a kind of warning about a header which is already included in helper_php.php (something like so). But if I login before accessing the page it works fine. I definitely know the warning has to do with the sessionid of the securityassist.

What I did is create another page and point the login page to it if authentication is successful. On that page I used server redirect behavior with trigger of’ before page load’ and directed it to that third page and that did the trick for me. But the major problem I am having is that if a user submits the registration form I get warning with the following messages: ‘Warning: Cannot modify header information - headers already sent by (output started at /home/ramatpo/public_html/portal/register_student.php:76 and Warning: Cannot modify header information - headers already sent by (output started at /home/ramatpo/public_html/portal/register_student.php:76) in /home/ramatpo/public_html/portal/registerNew.php on line 228) in /home/ramatpo/public_html/portal/webassist/forms/persist.php on line 13’. I don’t experience all these on my local server. Any help, suggestion or workaround is welcome.

Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

Can you attach a copy of the two pages? I'd want to look at line 76 of register_student.php and line 228 of registerNew.php and persist.php line 13. My guess is that you have extra line breaks in your code maybe as a result of your upload.

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

Mohammed Aji Wajiro

These are the files as requested. Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

It looks like you are trying to conditionally include one of two pages in the body of another... but the two pages have session setting and redirects that can only be done above the page.

The solution is to use WebAssist Plugins instead of traditional require statements to include the page contents. That should fix the problem.

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

Mohammed Aji Wajiro

Can you please guide me on that cos i have no single idea on how to use WebAssist Plug-in to achieve that.

Sign in to reply to this post

Ray BorduinWebAssist

Use the menu item : WebAssist->Framework->Insert Plugin to add the two pages you currently have added with require_once().

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

Mohammed Aji Wajiro

It works perfectly now. Thanks.

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