close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fatal Error message in eCart Checkout

Thread began 10/06/2009 10:12 am by Doyleja368034 | Last modified 10/06/2009 8:03 pm by Doyleja368034 | 993 views | 4 replies |

Doyleja368034

Fatal Error message in eCart Checkout

Using the "How To Apply Login/Register functionality to your Checkout Process" guide I have been attemping to implement this feature.

When testing on local server I get the following error message;

Fatal error: Call to undefined function wa_auth_rulepasses() in C:\vhosts\jamesdoylephoto\Bookings\checkout.php on line 10

I've attached the checkout page for your reference.

Thanks for your assistance.

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

Jason ByrnesWebAssist

edit lines 9 - 14:

php:
<?php

if (!WA_Auth_RulePasses("Logged in to users")){
    
WA_Auth_RestrictAccess("../Registrations/users_LogIn.php?checkout=1");
}
?>
<?php 
require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?>




to:

php:
<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?>

<?php
if (!WA_Auth_RulePasses("Logged in to users")){
    
WA_Auth_RestrictAccess("../Registrations/users_LogIn.php?checkout=1");
}
?>
Sign in to reply to this post

Doyleja368034

Error message after inserting your code in checkout.

Hi Jason,

Thanks for the assistance. I replaced the code with what you provided and now I am receiveing an error message as follows;

Warning: Cannot modify header information - headers already sent by (output started at

C:\vhosts\jamesdoylephoto\Bookings\checkout.php:10) in C:\vhosts\jamesdoylephoto\WA_SecurityAssist\Helper_PHP.php on line 67

I've attaced the two files for your reference.

Thanks

Attached Files
Helper_PHP.zip
checkout.zip
Sign in to reply to this post

Jason ByrnesWebAssist

There is a space at the end of line 9 of the checkout page that is causing the error:
"<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?> "


remove the space at the end of line 9:
"<?php require_once( "../WA_SecurityAssist/Helper_PHP.php" ); ?>"

Sign in to reply to this post

Doyleja368034

thanks

Thanks Jason that solved it!

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