close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Secure page won't load

Thread began 3/06/2012 9:58 am by Brad Lawryk | Last modified 3/06/2012 11:35 am by Jason Byrnes | 2100 views | 5 replies |

Brad Lawryk

Secure page won't load

Hi guys, as soon as I add the Secure Page extension to a page it will no longer load if not logged in. If you log in first and go to it it works fine, but it seems it won't redirect at all if not logged in.

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of the apge please in a zip archive.

it could be a php error occuring, try adding the following code at line 1 to turn error reporting on:

php:
<?php

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

Brad Lawryk

No errors come up when using that php error code .. but here is the zip file of the page for you. There is nothing unusual about the page at all.

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

Jason ByrnesWebAssist

your page is using the virtual() function for including files:
<?php virtual( "/pges/webassist/security_assist/helper_php.php" ); ?>


instead of require once. this will happen if you set the "Create Links Relative To" option in the Dreamweaver site definition to "Site", using "Document" will cause Dreamweaver to use the require_once function.

There are a couple problems with using the virtual function:
1) The virtual function is only avail;able on apache servers.

2) When the virtual function is used, it writes a bit to the document header which generates the Headers Already Sent error on trying to redirect.

I recommend setting the "Create Links Relative To" option Document so that includes will use the require_once() function to prevent these issuers

Sign in to reply to this post

Brad Lawryk

Thanks, that looked like it worked.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome

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