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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Call to undefined method dmbc_in_stock_Definition::WA_eCartDefinition() in C:\xampp\htdocs\dmbc\WA_eCart\dmbc_in_stock_PHP.php on line 5

Thread began 2/23/2017 4:00 pm by markdoyle87077 | Last modified 2/24/2017 3:51 am by Ray Borduin | 232 views | 4 replies |

markdoyle87077

Call to undefined method dmbc_in_stock_Definition::WA_eCartDefinition() in C:\xampp\htdocs\dmbc\WA_eCart\dmbc_in_stock_PHP.php on line 5

Hi Ray,

Just amended a rule on my eCart and then when I run the site it is showing the following error:

Call to undefined method dmbc_in_stock_Definition::WA_eCartDefinition() in C:\xampp\htdocs\dmbc\WA_eCart\dmbc_in_stock_PHP.php on line 5

Looking at the first few lines

1 <?php
2 require_once("WA_eCart_Definition_PHP.php");
3 class dmbc_in_stock_Definition extends WA_eCartDefinition {
4 function dmbc_in_stock_Definition($CartName, $PersistanceType, $CurrencyPrefix, $CurrencyCode, $ForceDecimalsC, $DecimalPlacesC, $CurrencyAlign, $WeightSuffix, $ForceDecimalsW, $DecimalPlacesW, $WeightAlign, $NumberDisplay, $ColumnsArray) {
5 $this->WA_eCartDefinition($CartName, $PersistanceType, $CurrencyPrefix, $CurrencyCode, $ForceDecimalsC, $DecimalPlacesC, $CurrencyAlign, $WeightSuffix, $ForceDecimalsW, $DecimalPlacesW, $WeightAlign, $NumberDisplay, $ColumnsArray);
6 }
7 //start node

Now if I remove lines 4 -6 the site runs fine.

First time I have come across this error and it happens when the eCart php file gets rewritten.

Any ideas.

Sign in to reply to this post

Ray BorduinWebAssist

Try changing:
function dmbc_in_stock_Definition

to:
function __construct

does that work?

Sign in to reply to this post

markdoyle87077

I changed as you suggested but got the same error so then I changed to

function __construct_dmbc_in_stock_Definition

and the page works again but the error reappears when I make any more changes to my rules.

Can you log as a bug and fix please.

Sign in to reply to this post

Ray BorduinWebAssist

I've just published an update that should address this issue. Please reinstall and it shouldn't happen anymore.

Sign in to reply to this post

markdoyle87077

okay I will reinstall eCart and come back to you if I need to.

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