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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fatal error: Call to undefined function virtual()

Thread began 8/14/2010 12:00 pm by simon382282 | Last modified 2/15/2011 12:23 pm by jim332262 | 2704 views | 3 replies |

simon382282

Fatal error: Call to undefined function virtual()

Hi all ..
2nd post and having problems already
IIS7.5 , win2k8r2 server VPS
i've installed a test setup on my server to see how things work
and after install the index page gives a
Fatal error: Call to undefined function virtual() error on line 40 .. that line being
<?php virtual("/CSSMenuWriter/cssmw_home/menu.php"); ?>

i recall having php virtual errors on other windows server in the past do manually changed the line to read <?php include("CSSMenuWriter/cssmw_home/menu.php"); ?> which now works.
there are however (i assume) many instances of this kind of 'call' within the setup as i get the error on other pages i have not yet looked at
is there a global workround for this ? is it a know issue ? and what should i do , hopefully the answer is not edit all pages by hand :D

Sign in to reply to this post

simon382282

Fixed : Go to Site -> Manage Sites. in the site manager, select your site and click the edit button. On the local info tab, change the "Create Links Relative to:" option to "Document"

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, setting the "Create Links Relative to:" option to Site will cause Dreamweaver to use the virtual() function which is only supported on some Apache servers.

changing that to Document will cause Dreamweaver to use the require_once() function which is more widely supported.

Sign in to reply to this post

jim332262

I just encountered this issue. I was able to resolve it via the following sequence of steps, though I am not sure if they are all required or not! In my case, the "Links relative to:" option was already set to "Document".

This worked on an XP SP3 box running CS4.

1. Reset DW's window workspace, Window-Workspace Layout-Reset. Closed DW.
2. Deleted the cache file (\Documents and Settings\user name\Application Data\Abobe\DreamweaverCS4\en_US\Configuration\WinFileCachexxxx.dat
3. Opened DW's Site Manager - moved "Links relative to:" from "Document" to "Site Root".
4. Closed DW.
5. Opened DW's Site Manager again - moved "Links relative to: from "Site Root" back to "Document".

Poof - magic! Hope this helps.

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