close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fatal error: Call to undefined function WA_Auth_RulePasses()

Thread began 4/06/2014 1:15 am by cldsk | Last modified 4/09/2014 11:17 am by Jason Byrnes | 319 views | 5 replies |

cldsk

Fatal error: Call to undefined function WA_Auth_RulePasses()

Hello, After applying the Security Assist "Logged in as Admin" secure page rules to my admin area for the store (as directed in eCommerce Webinar 2), my whole admin area now gives me the following error:

Fatal error: Call to undefined function WA_Auth_RulePasses() in /homepages/30/d404790350/htdocs/campargo-new/admin/index.php on line 228

I looked in the forums for similar errors, but I didn't see a fix that applied to this.
Thanks so much!

Sign in to reply to this post

CraigRBeta Tester

The function WA_Auth_RulePasses() should be in the file helper_php.php

make sure this file is in the correct place on the server

Sign in to reply to this post

cldsk

Thanks for the message - I found the helper file in webassist/security_assist folder. I re-uploaded it to that folder in case it wasn't uploaded for some reason and I also made a copy of the file in both the admin folder and the root folder and I am still getting the error. Can you tell me where this file is actually suppose to be?

This is the code in the files that reference the helper file in case it helps:
<?php require_once( "../webassist/security_assist/helper_php.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Logged in to admin")){
WA_Auth_RestrictAccess("");
}
?>

Thank you!

Sign in to reply to this post

Jason ByrnesWebAssist

the admin/index.php file did not have this line on it:
<?php require_once( "../webassist/security_assist/helper_php.php" ); ?>

I added it at line 1.

Sign in to reply to this post

cldsk

thanks so much!

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