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

Problem with GetContent() function

Thread began 2/28/2011 6:35 pm by pistartech366237 | Last modified 3/08/2011 12:34 am by stprix49407889 | 1158 views | 5 replies |

pistartech366237

Problem with GetContent() function

Hello,

I'm using eCart 5 with DW CS5.... When I've added the "Add To Cart" button, i'm getting the
following error on the products_Results.php page:
"Fatal error: Call to a member function GetContent() on a non-object in /myroot/my domain/products_Results.php on line 3.

The source code on lines 2 and 3 is:

2 <?php
3 $name_eCart->GetContent(); ?>

The name of the eCart is similar to the name of my DB connection, but has an additional xxx_eCart to it.....

Please advise ASAP.


Thank you so much.

With best regards,

Paul.

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of your page so I can see the entire code in context.

Sign in to reply to this post

pistartech366237

Hi Jason,

Thank you so much for your reply.

Please see attached.

Best regards,

Paul.

Attached Files
products_Results.zip
Sign in to reply to this post

Jason ByrnesWebAssist

move this code from line 50 - 53:

php:
<?php

//WA eCart Include
require_once("WA_eCart/TopApprentice_eCart_PHP.php");
?>



to line 1

Sign in to reply to this post

pistartech366237

Dear Jason,

Thank you so much for your help.

It worked.

Is there any particular reason that these lines were not written in the correct place? Is there a way to avoid this problem in the future? Any suggestions?

Thank you so much for all your help.

Best regards,

Paul.

Sign in to reply to this post

stprix49407889

I got this fatal error after I added Ecart, Add to button, on the Results page after I had previously done it on the Foodproducts Detail page with no problems.

I moved the suggested coding to line one and issue resolved.

Thanks. Any way to prevent this from happening?

Serge

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