close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Why is it that every time I try to add wa Ecart 5 to my pages I get a blank page?

Thread began 12/09/2013 10:05 am by Wenchofkrf | Last modified 12/12/2013 10:40 am by Jason Byrnes | 3597 views | 32 replies |

Wenchofkrf

Why is it that every time I try to add wa Ecart 5 to my pages I get a blank page?

I'm trying to add Ecart to pages built in dreamweaver cs6 and it's been driving me insane.
I've used both pieces of software, for several years, and this is the first time I've had issues,
but boy, are they issues!

Sign in to reply to this post

Jason ByrnesWebAssist

the eCart include code is using the virtual function:
<?php
//WA eCart Include
virtual("/WA_eCart/starfire2_PHP.php");
?>


This is a problem with your Dreamweaver Site definition settings.

i the site definition there is a settings for "Create Links Relative to". When you use the Site option DW Will use the virtual funciton for include files. the virtual function is not supported in many versions of PHP. If you use the Document setting, DW Will use the require_once function for include file which is more widely supported.

Sign in to reply to this post

Wenchofkrf

Nope, my Dreamweaver setting is for Document relative, not site...checked that one last night. Any other thoughts? (I Hope!!)

Sign in to reply to this post

Jason ByrnesWebAssist

all the links I see on this page are site relative:

<link href="/styles/starfire_style.css" rel="stylesheet" type="text/css" />

using the site relative links setting in the Site definition is the only way I have ever seen DW force the virtual function to be used.

you can manually edit the code to the require_once function:

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

Sign in to reply to this post

Wenchofkrf

ok, I'll give it a shot...back to you, tomorrow...

Sign in to reply to this post

Wenchofkrf

OK, tried it, now, in Live preview, I have:

GetContent();?> redirStr !=""){header("Location:".$starfire2->redirStr);}?>

across the top of the preview. Is that supposed to be that way?

Sign in to reply to this post

Jason ByrnesWebAssist

see PM

Sign in to reply to this post

Wenchofkrf

Jason,

Every page I put WA "add to cart Buttons" on has "disappeared" from the server, when I ran the upload....500 error, again....

http://www.starfireswords.com

I updated the leather segments...glad I did not do the steel, tonight

I'm attaching samples...please help!!!

Sign in to reply to this post

Jason ByrnesWebAssist

this page is 2 directories up from the site root:
http://www.starfireswords.com/products/leather/1.25x14.php

so the link to the cart file:

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



should be:

<?php
//WA eCart Include
require_once("../../WA_eCart/starfire2_PHP.php");
?>
Sign in to reply to this post

Wenchofkrf

OK, that worked! Now, one more q, and I'll get out of your hair: Which file should the "View Cart" button point to?

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