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 undefined function virtual() /home/campingw/public_html/test php line 3

Thread began 11/08/2013 1:37 am by Ashjamieson | Last modified 11/27/2013 1:16 pm by Jason Byrnes | 2231 views | 15 replies |

Ashjamieson

Fatal error: Call undefined function virtual() /home/campingw/public_html/test php line 3

I am getting this error on all ecart pages.

Even a very simple fresh page with only an add to cart button on it.

Any ideas?

Ash

Sign in to reply to this post

Jason ByrnesWebAssist

in your site definition, there is a settings on the local info tab for "Create Links relative To", change this setting to "Document" instead of using "Site" so that Dreamweaver will create the include paths using the require_once() function instead of the virtual() function.

Sign in to reply to this post

Ashjamieson

Thanks Jason, I've made that change but still have the following coming up twice:

SCREAM: Error suppression ignored for
( ! ) Warning: require_once(/campingwithhillbilly/WA_eCart/HillbillyeCart1_PHP.php): failed to open stream: No such file or directory in C:\wamp\www\campingwithhillbilly\test.php on line 3

Also I am trying this on two different computers and having the same issue on both

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the problem page.

Sign in to reply to this post

Ashjamieson

Have sorted problem no1 thanks Jason, now this

( ! ) Warning: session_start(): Cannot send session cookie - headers already sent in C:\wamp\www\campingwithhillbilly\WA_eCart\WA_eCart_Definition_PHP.php on line 465
Call Stack
# Time Memory Function Location
1 0.0174 341768 {main}( ) ..\test.php:0
2 0.0435 1010680 WA_eCartDefinition->GetContent( ) ..\test.php:11
3 0.0435 1010792 WA_eCartDefinition->Session_GetContent( ) ..\WA_eCart_Definition_PHP.php:70
4 0.0435 1010992 session_start ( ) ..\WA_eCart_Definition_PHP.php:465

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the test.php page please.

Sign in to reply to this post

Ashjamieson

Problem file attached

Hi Jason, a copy of the file is attached.

Also, having chosen Australia Post as freight provider I do not get an opportunity to input the API during setup.

Attached Files
test.php
Sign in to reply to this post

Jason ByrnesWebAssist

at line 1:
-<?php


the hyphen before the php tag is causing the error.


the australia post ratecalc service does not require an API

Sign in to reply to this post

Ashjamieson

Now getting through to checkout ok. Then falls over telling no packages to send

Shipping Quote Failed

We're sorry

No Packages to Ship

No other error is given


Also just checked the dbase tables and nothin is being stored

Sign in to reply to this post

Jason ByrnesWebAssist

add the following code to the shipping failure page, it will write the session contents including the response from the shipping provider:

<?php @session_start(); var_dump($_SESSION); ?>

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