close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error Code being Generated in Simple Conatct Form

Thread began 2/04/2014 5:56 am by sjs333960 | Last modified 2/06/2014 11:18 am by Jason Byrnes | 3215 views | 15 replies |

sjs333960

Error Code being Generated in Simple Conatct Form

Greetings,

I have created a simple contact form, but when I attempt to access it, I keep getting an error "Fatal error: Call to undefined function virtual() in \wwwroot\ContactUs.php on line 1" which is <?php virtual("/webassist/form_validations/wavt_scripts_php.php"); ?>. The url is www.eiselstecykafc.com/contactus.php

The page works fine on the virtual server (xampp). Both the test server and remote server are using the same PHP (5.5.8). The form was created using DataBridge v1.1.8.

I'm a bit of a newbie with php, so any help would be greatly appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

change:

php:
<?php virtual("/webassist/form_validations/wavt_scripts_php.php"); ?>




to:

php:
<?php require_once("webassist/form_validations/wavt_scripts_php.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

sjs333960

So do you advise changing the site definitions to document than site, then make the modifications?

I assume I would make the modifications to all entries that used the virtual tag.

Thanks so much!

Sign in to reply to this post

Jason ByrnesWebAssist

you should change the site settings so that the problem wont happen again.

to fix the current page, change the virtual function to require_once and adjust the paths to be document relative.

Sign in to reply to this post

sjs333960

Thanks - form loads correctly now!

Now I'm receiving a HTTP Error 500.0 - Internal Server Error after submitting the form - if it's not one thing its another :)

Have any ideas why?

Sign in to reply to this post

Jason ByrnesWebAssist

thats a generic error used when error reporting is turned off.

to turn error reporting on, add the following code at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>



once we know what the error is, we will be able to troubleshoot the cause.

Sign in to reply to this post

sjs333960

This is the error code I got from my testing server:

Warning: require(Block_3.php): failed to open stream: No such file or directory in C:\xampp\htdocs\webassist\email\mailformatting_php.php on line 151

Fatal error: require(): Failed opening required 'Block_3.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\webassist\email\mailformatting_php.php on line 151

No code is being generated on the remote server - just the 500 error

If I but the Block_3.php in the C:\xampp\php\PEAR folder, there are no errors, but I would have no idea how to do that on the remote server (directory structure is \wwwroot\)

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

sjs333960

Details are in the private message.

Thanks so very much for your help!

Sign in to reply to this post

Jason ByrnesWebAssist

see pm

Sign in to reply to this post
loading

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