Author Topic: Fatal error: Call to undefined function virtual() in  (Read 8989 times)

0 Members and 1 Guest are viewing this topic.

kadamsharad

  • Guest
Fatal error: Call to undefined function virtual() in
« on: January 27, 2011, 11:53:25 PM »
help needed.,

when i add

<?php virtual("/tp/ssi_in.php")?>

in my header.php file between <head> and </head>
i get this

Fatal error: Call to undefined function virtual() in /home/abbkscom/public_html/xxxtreme.com/templates/header.php on line 65

i have also tried adding

<?php require("/tp/ssi_in.php") ?>
<?php require_once("/tp/ssi_in.php") ?>
<?php require("/tp/ssi_in.php"); ?>
<?php require_once("/tp/ssi_in.php"); ?>

but still i am getting the error.,
its a tube site..

thanks for ur time.

Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1963
    • View Profile
    • Pretty Girls from your city for night
Re: Fatal error: Call to undefined function virtual() in
« Reply #1 on: January 28, 2011, 02:32:18 AM »
Hi, this is completely unrelated to TP it can be either your tube script or host, my best bet would be to contact your host since php includes MUST work

kadamsharad

  • Guest
Re: Fatal error: Call to undefined function virtual() in
« Reply #2 on: January 28, 2011, 05:35:18 AM »
thanks as i have contacted hosting support., will post updates.,


thanks for ur time.

kadamsharad

  • Guest
Re: Fatal error: Call to undefined function virtual() in
« Reply #3 on: January 28, 2011, 09:36:33 PM »
i got reply from hosting support they are saying.,


With your server configuration do not use the php virtual command.
Instead I would recommend using the php include and parsing the php
in your html/shtml.


so asked them to elaborate on this and they told me

The server executed php using suPHP which means it executes php as the user instead of as the web server.

If you were using it to include text, html or PHP files inside your PHP script, try using require() or include() instead.

If you were wanting to execute another script (like a Perl script), then you'll have to use passthru().


Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1963
    • View Profile
    • Pretty Girls from your city for night
Re: Fatal error: Call to undefined function virtual() in
« Reply #4 on: January 29, 2011, 02:49:27 AM »
Ask them to make virtual includes work or change host. That is what I would do!