Jump to content
defender39

Wishlist 2.0 Support Thread

Recommended Posts

Hi Jessie,

 

I installed Wishlist 2.0 into MS2. When I tried to go to my index.php, I get the errors:

 

Parse error: parse error in /home/httpd/vhosts/mydomain.com/httpdocs/includes/application_top.php on line 454

 

This is what is on line 454:

case 'cust_order' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) {

 

The next error is:

Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/httpd/vhosts/mydomain.com/httpdocs/index.php on line 33

 

This is what is on line 33:

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);

 

Fatal error: main(): Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DEFAULT' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/mydomain.com/httpdocs/index.php on line 33

 

I uploaded all of the files and made all of the modification and ran the sql file on my database.

 

Do you have any suggestions? Any help would be appreciated.

 

Thanks in advance.

Share this post


Link to post
Share on other sites

more than likely you have an extra

 

}

 

near the end of the cart functions..try to remove one...or two..please be careful with application_top.php

Maintain a backup.

Share this post


Link to post
Share on other sites

I shall be taking a look at this MS2 installation to sort out whatever issues there will be - I know there will be one with splitPageResults.

 

Hopefully we can get these under control before you are inundated with similar problems.

 

Matti

Edited by Johnson

Matti Ressler

 

We were all once expert at...... nothing

_____

Share this post


Link to post
Share on other sites

Oh yeah...I have to look at split page results because I actually just copied the MS2 split_page_results to my MS1 and made it split_page_results2 function. This way I can add those pesky MS2 contribs and only change the call to that function. Seems to work for me. Sorry but when I installed it I wasnt planning on doing this much to it so I didnt keep any notes. Thats really why I didnt want to add it until someone with MS2 tried it. Hopefully we can get things resolved fast and make a 2.1

Share this post


Link to post
Share on other sites

Ok - I have this running in Jayman2's MS2 installation.

 

The following need to be removed from the Wishlist files altogether as they are part of other contributions and will give everybody problems:

 

<? require(DIR_WS_INCLUDES . 'meta.php'); ?>

<!-- coolMenu //-->
<?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?>
<!-- coolMenu_eof //-->

 

The correct line in catalog/wishlist.php in MS2 for splitpageresults is:

 

 ?$wishlist_split = new splitPageResults($wishlist_query_raw, MAX_DISPLAY_WISHLIST_PRODUCTS);

 

There is a problem with the email - the links are as follows:

 

http://www.everythingnice.com/product_info.php/products_id/388

 

Search engine friendly URLs are turned off on this site, so that is not the problem.

 

This can be corrected in wishlist_email.php by changing:

 

$wishliststring .= $resultarray[1]."\n" . HTTP_SERVER ."/product_info.php/products_id/".$resultarray[0] . "\n\n";

 

to:

 

$wishliststring .= $resultarray[1]."\n" . HTTP_SERVER ."/product_info.php?products_id=".$resultarray[0] . "\n\n";

 

The emails still come in the following format, so there is still a little work to be done here:

 

My Wishlist is: 


http://www.everythingnice.com/product_info.php?products_id=388


http://www.everythingnice.com/product_info.php?products_id=388

Musical Windmill Metal Sculpture
http://www.everythingnice.com/product_info.php?products_id=388

 

I am too tired tonight to look at this further - these are not active links in the email - not sure if this has to do with the server mail settings or the script.

 

Filename and database defines should go in filenames.php and database_tables.php respectively.

 

HTH

 

One question - where should the link be for the customer to access wishlist_email.php?

 

Matti

Edited by Johnson

Matti Ressler

 

We were all once expert at...... nothing

_____

Share this post


Link to post
Share on other sites

Thanks so much for finding all the things that needed to be changed. I was in a hurry because I am swamped with projects at the moment.

 

the meta.php thing is something I created since I didnt like the contrib for dynamic metas...it seemed to have problems with html tags I use sometimes in descriptions

 

I assume most people use coolmenu but yeah...that should be removed too.

 

I purposely made the email plain text. I prefer not to send out HTML emails. Opera makes http:// a link anyways. But that could easily be changed if you want HTML email.

 

Also I am confused...you say the email was

My Wishlist is: 


http://www.everythingnice.com/product_info.php?products_id=388


http://www.everythingnice.com/product_info.php?products_id=388

Musical Windmill Metal Sculpture
http://www.everythingnice.com/product_info.php?products_id=388

 

so...is that a real example? Because all my test emails do work perfect as far in...Each product is named and then a link is under that. Your example shows 3 links to the same product and only one name. Please clarify that. And thanks a bunch for the extra work into the contrib.

Share this post


Link to post
Share on other sites

:blink:

 

 

table_background_wishlist.gif is missing

even after removing all the meta.php and coolmenustuff the wishlist is not working

php reports :

 

PHP Parse error: parse error, unexpected T_CASE in /catalog\includes\application_top.php on line 433

PHP Warning: main(DIR_WS_LANGUAGES/FILENAME_DEFAULT): failed to open stream: No such file or directory in \catalog\index.php on line 33

PHP Fatal error: main(): Failed opening required 'DIR_WS_LANGUAGES/FILENAME_DEFAULT' (include_path='.;') in \catalog\index.php on line 33

Share this post


Link to post
Share on other sites

All those errors stem from application_top

 

Just comb the page and make sure you add the extra functions properly...it took me a lot of work to get it in there and I am sorry I cant explain it better...

 

Maybe someone with a better knowledge of MS2 and a bare application_top can explain how to install the changes.

 

I will help all I can. PM me if you want me to FTP in and look at it.

 

As for the wishlist image...I never used it...you can just change it to read another background table like shopping cart or just info. Or go ahead and make one.

Edited by defender39

Share this post


Link to post
Share on other sites

When I try to download it I get the following message.

 

http://oscommerce.sunsite.dk/contributions/Wishlist-2.zip

 

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

 

If you think this is a server error, please contact the webmaster.

 

Error 404

oscommerce.sunsite.dk

Mon Nov 24 11:38:43 2003

Apache/2.0.45 (Unix)

 

so how do you download it then????

 

Cheers

 

Steve

Share this post


Link to post
Share on other sites

I agree the link from defender39 does indeed work fine and it does take you to the download page but when you click on the word [sunsite] to download it you get the error message I printed above.

 

Or at least I do !!!

 

New info, If you click [pair] you can download it.

Edited by steve.luther

Share this post


Link to post
Share on other sites
Also I am confused...you say the email was

My Wishlist is: 


http://www.everythingnice.com/product_info.php?products_id=388


http://www.everythingnice.com/product_info.php?products_id=388

Musical Windmill Metal Sculpture
http://www.everythingnice.com/product_info.php?products_id=388

 

so...is that a real example? Because all my test emails do work perfect as far in...Each product is named and then a link is under that. Your example shows 3 links to the same product and only one name. Please clarify that. And thanks a bunch for the extra work into the contrib.

No problem B)

 

Yes, that was how I got the mail - twice, both before and after I made changes to the file.

 

Matti


Matti Ressler

 

We were all once expert at...... nothing

_____

Share this post


Link to post
Share on other sites

hi people

 

I am getting an error on line 447 of the app top file

 

the line is highlighted in red below

 

//beginning of wishlist

      case 'cust_order' :    if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) {

                                if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) {

                                  tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid']));

                                } else {

                                  tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['pid'] . "' and customers_id = '" . $customer_id . "'");

  $cart->add_cart($HTTP_GET_VARS['pid'], $cart->get_quantity($HTTP_GET_VARS['pid'])+1);

                                }

                              }

                              tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));

 

// Add product to the wishlist

 

any ideas appreciated

 

thanks


Regards

 

Mark A Reynolds

Share this post


Link to post
Share on other sites
I am getting an error

 

What is the error message?

 

Matti


Matti Ressler

 

We were all once expert at...... nothing

_____

Share this post


Link to post
Share on other sites

hi matt

 

Parse error: parse error in /homepages/34/d84309762/htdocs/catalog/includes/application_top.php on line 447

regards

 

mark


Regards

 

Mark A Reynolds

Share this post


Link to post
Share on other sites

Make sure that you do not have another instance of case 'cust_order' : etc. before the wishlist mod.

 

Matti


Matti Ressler

 

We were all once expert at...... nothing

_____

Share this post


Link to post
Share on other sites

yes that could be it...I had some of the functions twice. Make sure that any function in wishlist is the one to use and delete the other function.

PLEASE BE CAREFUL AND BACKUP YOUR APPLICATION_TOP

Share this post


Link to post
Share on other sites

thanks guys i have resolved it i think - i deleted the two } } prior to the wish list code

 

I now have a problem that says

 

Error!

 

Unable to determine the page link

 

I guess it is ttrying to call the link for the wishlist but not having any success??

 

what do you think?

 

here is the column right box code

 

 

  require(DIR_WS_BOXES . 'shopping_cart.php');

  if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'wishlist.php');

  require(DIR_WS_BOXES . 'live_support.php');

  require(DIR_WS_BOXES . 'search.php');

  require(DIR_WS_BOXES . 'reviews.php');

 

regards

 

mark


Regards

 

Mark A Reynolds

Share this post


Link to post
Share on other sites

For problems please post your site link. It might be helpful, if you can create a test account like test@test.com with a simple pass like "password".

 

Do you have /catalog/includes/modules/wishlist/ ???

 

For some reason the original maker of Wishlist put the sidebar function into a /modules directory and its called from /catalog/includes/boxes/wishlist.php

 

Also try to just enter your URL /wishlist.php to see if at least the wishlist page is working.

 

someone has asked me about a demo

 

http://www.videogamedeals.com/

test@test.com and test1 to login

Edited by defender39

Share this post


Link to post
Share on other sites

thanks jesse

i have the wishlist folder under modules...

 

i don't understand about the path like you said earlier...

 

For some reason the original maker of Wishlist put the sidebar function into a /modules directory and its called from /catalog/includes/boxes/wishlist.php

 

Also try to just enter your URL /wishlist.php to see if at least the wishlist page is working

 

also i am unable to get the wishlist page up as it returns the same error

 

My website is in my signature.

I seem to be the only one not getting it to work in Ms2 :(

 

regards

 

mark


Regards

 

Mark A Reynolds

Share this post


Link to post
Share on other sites

I have Wishlist v2 running perfecly on my M2 site thanks to Matti. My problem is that when I go to the product_info.php page and click on "reviews" I get this error:

 

1054 - Unknown column 'products_head_desc_tag' in 'field list'

 

select products_head_desc_tag from products_description where language_id = '1' and products_id = '389'

 

Am I the only one receiving this error? And does anyone know how I can fix this?

 

Thanks in advance.

Share this post


Link to post
Share on other sites
For problems please post your site link.  It might be helpful, if you can create a test account like test@test.com with a simple pass like "password".

 

Do you have /catalog/includes/modules/wishlist/  ???

 

For some reason the original maker of Wishlist put the sidebar function into a /modules directory and its called from /catalog/includes/boxes/wishlist.php

 

Also try to just enter your URL /wishlist.php to see if at least the wishlist page is working.

 

someone has asked me about a demo

 

http://www.videogamedeals.com/

test@test.com and test1 to login

Well for some reason when I add this code to the application_top.php

//beginning of wishlist
? ? ?case 'cust_order' : ? ? if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid']));
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} else {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['pid'] . "' and customers_id = '" . $customer_id . "'");
?$cart->add_cart($HTTP_GET_VARS['pid'], $cart->get_quantity($HTTP_GET_VARS['pid'])+1);
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));

// Add product to the wishlist 

? ? ?case 'add_wishlist' : ?if (ereg('^[0-9]+$', $HTTP_POST_VARS['products_id'])) {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?if ?($HTTP_POST_VARS['products_id']) { 
? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'");
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("insert into " . TABLE_WISHLIST . " (customers_id, products_id, products_model, products_name, products_price) values ('" . $customer_id . "', '" . $products_id . "', '" . $products_model . "', '" . $products_name . "', '" . $products_price . "' )"); 
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} 
? ? ? ? ? ? ? ? ? ? ? ? ? ?} 

tep_redirect(tep_href_link(FILENAME_WISHLIST));
? ? ? ?break;
? ? 
? ? // Add wishlist item to the cart
case 'wishlist_add_cart': reset ($lvnr);
? ? ? ? ? ? ? ? ? ? ? ? ? reset ($lvanz);
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? while (list($key,$elem) =each ($lvnr))
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?(list($key1,$elem1) =each ($lvanz));
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("update " . TABLE_WISHLIST . " SET products_quantity=$elem1 WHERE customers_id=$customer_id AND products_id=$elem");
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_db_query("delete from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_quantity='999'");
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$produkte_mit_anzahl=tep_db_query("select * from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_id=$elem AND products_quantity<>'0'");

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?while ($HTTP_POST_VARS=mysql_fetch_array($produkte_mit_anzahl))
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?{
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? $cart->add_cart($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['products_quantity']);
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?reset ($lvanz);
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_WISHLIST));
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break;


// remove item from the wishlist
///// CHANGES TO case 'remove_wishlist' BY DREAMSCAPE /////
? ? ?case 'remove_wishlist' :
? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_db_query("delete from " . TABLE_WISHLIST . " where products_id = '" . $HTTP_GET_VARS['pid'] . "' and customers_id = '" . $customer_id . "'");
? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_WISHLIST));
? ? ? ? ? ? ? ? ? ? ? ? ? ? break; ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ?// performed by the 'buy now' button in product listings and review page
? ? ?case 'buy_now' : ? ? ? ?if (tep_session_is_registered('customer_id')) { tep_db_query("delete from " . TABLE_WISHLIST . " WHERE customers_id=$customer_id AND products_id=$products_id"); }
? ? ? ? if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'], 'NONSSL'));
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?} else {
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1);

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tep_redirect(tep_href_link(FILENAME_WISHLIST));
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ? ? ? ? ? ? ?break;
? ? ? ? ? ? ? ? ? ? 
? ? ? ? ? ? ? ? ? ? ? ? ?

? ?}
?}

//end of wishlist

 

I get an error Fatal error: Call to undefined function: tep_not_null() in xxxxxxxxxx\catalog\index.php on line 17

 

I'M using MS2 :(

Edited by beardeddone

Best Regards

Share this post


Link to post
Share on other sites

In the wishlist_help.php and wishlist.php, I see a line <? require(DIR_WS_INCLUDES . 'meta.php'); ?>

 

I don't seem to have this filename meta.php, hows it created?

Edited by beardeddone

Best Regards

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×