close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

I am getting the following error: Fatal error: Call to undefined function virtual() where the call is to <?php virtual('Connections/siteaccess.php'); ?>

Thread began 5/02/2014 2:53 am by BGro29552166 | Last modified 6/02/2014 11:31 am by Jason Byrnes | 1096 views | 3 replies |

BGro29552166

I am getting the following error: Fatal error: Call to undefined function virtual() where the call is to <?php virtual('Connections/siteaccess.php'); ?>

Trying to add user login but this fails with any database access from any of the security/data assist templates

Sign in to reply to this post

Jason ByrnesWebAssist

change:

php:
<?php virtual("/Connections/siteaccess.php"); ?>




to:

php:
<?php require_once("Connections/siteaccess.php"); ?>




Dreamweaver is using the "virtual" syntax because in your Site Definition, the "Create Links Relative To:" option is set to Site. If you change that to "Document" instead, Dreamweaver will use the "require_once"syntax.

Sign in to reply to this post

Peterson Design Studio - jefferis

Same error here, solution did not work

Warning: require_once(/Connections/Paver.php) [function.require-once]: failed to open stream: No such file or directory in path on line 1

Fatal error: require_once() [function.require]: Failed opening required '/Connections/Paver.php' (include_path='.:/usr/local/lib/php') in path on line 1

What is up with virtual vs. require once? Neither of which are working for me....

Sign in to reply to this post

Jason ByrnesWebAssist

looks like you left the trailing / in the require once function.

Require once uses a relative path, so if the file the require once function is on and the connections folder are at the sam level, this should work:

require_once("Connections/NesbitPaver.php");


if they are not at the same level, you may need to adjust the path:

require_once("../Connections/NesbitPaver.php");


Dreamweaver is using the "virtual" syntax because in your Site Definition, the "Create Links Relative To:" option is set to Site. If you change that to "Document" instead, Dreamweaver will use the "require_once"syntax.

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