s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Open to all! Ask other shopowners for help.
frankl
Builder
Posts: 159
Joined: Tue Feb 23, 2021 8:39 pm
Phoenix Version: v1.1.0.4
Has thanked: 17 times
Been thanked: 25 times

Re: s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Post by frankl »

Getting errors in the log:

Code: Select all

PHP Deprecated:  Creation of dynamic property wishlist::$listID is deprecated in /includes/system/versioned/1.0.8.3/session.php on line 55

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Post by burt »

You'll need to set it in the construct so that it's useable...
I recall doing this same thing across core code, but don't recall the details.
I am not here to build for you.
I am here to build with you. Let's help each other.
frankl
Builder
Posts: 159
Joined: Tue Feb 23, 2021 8:39 pm
Phoenix Version: v1.1.0.4
Has thanked: 17 times
Been thanked: 25 times

Re: s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Post by frankl »

I thought it was?

Code: Select all

  class wishlist {

    public $contents, $total, $wishlistID, $content_type, $listID;

    public function __construct() {
      $this->reset();
    }
Omar_one
Senior Contributor
Posts: 676
Joined: Fri Oct 25, 2019 5:06 pm
Phoenix Version: v1.0.8.16
Has thanked: 100 times
Been thanked: 56 times

Re: s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Post by Omar_one »

Hello,
we have this on error_log file

Code: Select all

PHP Warning:  Undefined array key "wishlist" in /home/XXXX/public_html/includes/actions/wishlist_all_to_cart.php on line 21
PHP Fatal error:  Uncaught Error: Call to a member function get_products() on null in /home/XXXX/public_html/includes/actions/wishlist_all_to_cart.php:21
Stack trace:
#0 /home/XXXX/public_html/includes/classes/actions.php(19): Phoenix\Actions\wishlist_all_to_cart::execute()
#1 /home/XXXX/public_html/includes/system/segments/application/parse_actions.php(32): Actions::parse('wishlist_all_to...')
#2 /home/XXXX/public_html/includes/application_top.php(42): require('/home/XXXX/p...')
#3 /home/XXXX/public_html/wishlist.php(12): require('/home/XXXX/p...')
#4 {main}
  thrown in /home/XXXX/public_html/includes/actions/wishlist_all_to_cart.php on line 21
it maybe come from out of stock products which there are on the wishlist ??

Br
Omar
14Steve14
Senior Contributor
Posts: 920
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Post by 14Steve14 »

Omar_one wrote: Fri Nov 22, 2024 10:09 am Hello,
we have this on error_log file

Code: Select all

PHP Warning:  Undefined array key "wishlist" in /home/XXXX/public_html/includes/actions/wishlist_all_to_cart.php on line 21
PHP Fatal error:  Uncaught Error: Call to a member function get_products() on null in /home/XXXX/public_html/includes/actions/wishlist_all_to_cart.php:21
Stack trace:
#0 /home/XXXX/public_html/includes/classes/actions.php(19): Phoenix\Actions\wishlist_all_to_cart::execute()
#1 /home/XXXX/public_html/includes/system/segments/application/parse_actions.php(32): Actions::parse('wishlist_all_to...')
#2 /home/XXXX/public_html/includes/application_top.php(42): require('/home/XXXX/p...')
#3 /home/XXXX/public_html/wishlist.php(12): require('/home/XXXX/p...')
#4 {main}
  thrown in /home/XXXX/public_html/includes/actions/wishlist_all_to_cart.php on line 21
it maybe come from out of stock products which there are on the wishlist ??

Br
Omar
We are getting the exact same error.
BatteryTrader
Contributor
Posts: 153
Joined: Thu Apr 11, 2024 7:18 am
Phoenix Version: 1.1.0.3
Has thanked: 3 times
Been thanked: 17 times

Wish list s07e01 installed on 1.1.0.2 issue

Post by BatteryTrader »

Wish list s07e01 installed on 1.1.0.2

Think there is a typo

includes/system/versioned/1.0.7.other/1.0.7.12/wishlist.php

line number 119, breaks, think there is an extra customers_wish added for the date

Code: Select all

              $GLOBALS['db']->query("INSERT INTO customers_wishlist (customers_id, products_id, quantity, customers_wishlist_date_added) VALUES (" . (int)$_SESSION['customer_id'] . ", '" . $GLOBALS['db']->escape($products_id_string) . "', " . (int)$qty . ", '" . date('Ymd') . "')");
I changed to

Code: Select all

      $GLOBALS['db']->query("INSERT INTO customers_wishlist (customers_id, products_id, quantity, date_added) VALUES (" . (int)$_SESSION['customer_id'] . ", '" . $GLOBALS['db']->escape($products_id_string) . "', " . (int)$qty . ", '" . date('Ymd') . "')");
and all seems now to be working

Kindest regards

David
artfulweb
Contributor
Posts: 184
Joined: Thu Oct 29, 2020 12:34 pm
Phoenix Version: v1.1.0.6
Has thanked: 29 times
Been thanked: 14 times

Re: s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Post by artfulweb »

Hello,
On Phoenix 1.1.0.1, using the updated addon for that version, the login broke with this error as I tried to login as a customer after doing the db changes and installing all the lodules as per the README :

PHP Fatal error: Uncaught mysqli_sql_exception: Unknown column 'quantity' in 'field list' in /xx/xx/xx/xx/includes/system/versioned/1.0.8.1/database_core.php:67
Stack trace:
#0 /xx/xx/xx/xx/includes/system/versioned/1.0.8.1/database_core.php(67): mysqli->query()
#1 /xx/xx/xx/xx/includes/system/versioned/1.0.7.other/1.0.7.12/wishlist.php(53): database_core->query()
#2 /xx/xx/xx/xx/includes/hooks/shop/login/wishlist.php(16): wishlist->restore_contents()
#3 /xx/xx/xx/xx/includes/system/versioned/1.0.8.1/hooks.php(150): hook_shop_login_wishlist->listen_postLogin()
#4 /xx/xx/xx/xx/login.php(29): hooks->cat()
#5 {main}
thrown in /xx/xx/xx/xx/includes/system/versioned/1.0.8.1/database_core.php on line 67
=======================
Uninstalled the addon in admin (content and pi), uninstalled the db changes, deleted ALL the files from the addon and now have the error which keeps the product info from showing:[/b]

PHP Fatal error: Uncaught Error: Class "pi_wishlist" not found in /xx/xx/xx/xx/includes/modules/content/product_info/cm_pi_modular.php:40
Stack trace:
#0 [internal function]: cm_pi_modular->{closure}()
#1 /xx/xx/xx/xx/includes/modules/content/product_info/cm_pi_modular.php(37): array_map()
#2 /xx/xx/xx/xx/includes/system/versioned/1.0.8.4/template.php(106): cm_pi_modular->execute()
#3 /xx/xx/xx/xx/templates/default/includes/pages/product_info.php(26): Template->get_content()
#4 /homepages/35/d567846515/htdocs/product_info.php(27): require('/homepages/35/d...')
#5 {main}
thrown in /xx/xx/xx/xx/includes/modules/content/product_info/cm_pi_modular.php on line 40

Any ideas on how to recover my site with or without the addon? Would have liked the addon but know am totally blocked!
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Post by burt »

You deleted files without turning off the PI product_info module.
That is, I think, the only way such an error would show.

You need to reupload the files.
Then turn off the PI module.

Or do it direct in the database if you are confident enough.

--

As for the quantity error, that is telling you that data is trying to be written to the Database, but the Database is not correct. What does your `customers_wishlist` DB schema look like?
I am not here to build for you.
I am here to build with you. Let's help each other.
User avatar
burt
Core Team
Posts: 4546
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Post by burt »

See what is in the DB;

1. SELECT * FROM configuration WHERE LOWER(configuration_key) LIKE '%wishlist%';

This will show what modules are still installed.

and

2. SELECT * FROM configuration WHERE LOWER(configuration_value) LIKE '%wishlist%';

This will show where those modules are installed.
I am not here to build for you.
I am here to build with you. Let's help each other.
artfulweb
Contributor
Posts: 184
Joined: Thu Oct 29, 2020 12:34 pm
Phoenix Version: v1.1.0.6
Has thanked: 29 times
Been thanked: 14 times

Re: s07e01 - Wishlist / Faves QUESTIONS/SUPPORT

Post by artfulweb »

burt wrote: Tue May 06, 2025 12:00 pm See what is in the DB;

1. SELECT * FROM configuration WHERE LOWER(configuration_key) LIKE '%wishlist%';

This will show what modules are still installed.

and

2. SELECT * FROM configuration WHERE LOWER(configuration_value) LIKE '%wishlist%';

This will show where those modules are installed.

Tried the above and there is no wishlist in the database, confirming that I did succeed in uninstallin all I imagine.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply