Hi,
Phoenix 1.0.8.0
PWA 4.3.6.rl
I got this in the error_log, may be the data below will help.
[09-Apr-2021 16:45:21 America/New_York] PHP Notice: Undefined variable: cart in /home/lamastus/public_html/create_account_pwa.php on line 27
[09-Apr-2021 16:45:21 America/New_York] PHP Fatal error: Uncaught Error: Call to a member function count_contents() on null in /home/lamastus/public_html/create_account_pwa.php:27
Stack trace:
#0 {main}
thrown in /home/lamastus/public_html/create_account_pwa.php on line 27
Purchase without Account
Thrown in create_account_pwa - Purchase without Account
Thrown in create_account_pwa
patrick
-
- VIP Member
- Posts: 83
- Joined: Fri Mar 12, 2021 2:09 am
- Contact:
Re: Thrown in create_account_pwa
Please explain what exact you did to get this error.
Please post also always your PHP version.
Even I load this page typing the URL with an empty cart, I get correct redirected to shopping_cart.php and have no error logged.
The only way I could reproduce this error, is deleting the session and loading the page by URL. It shows only on first time page load, on reload the global cart variable is available. So it's not a real live problem, which real user would do this?
However the fix should be in line 27 and is already sheduled for the next code modernization update:
Thank you for the report.
Meanwhile I'm still waiting for your answers here:
app.php/addons/free_addon/discount_code ... /topic/172
Please post also always your PHP version.
Even I load this page typing the URL with an empty cart, I get correct redirected to shopping_cart.php and have no error logged.
The only way I could reproduce this error, is deleting the session and loading the page by URL. It shows only on first time page load, on reload the global cart variable is available. So it's not a real live problem, which real user would do this?
However the fix should be in line 27 and is already sheduled for the next code modernization update:
Code: Select all
if ($_SESSION['cart']->count_contents() < 1) tep_redirect(tep_href_link('shopping_cart.php'));
Meanwhile I'm still waiting for your answers here:
app.php/addons/free_addon/discount_code ... /topic/172
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
- PhoenixCart Developer
- Posts: 1212
- Joined: Sat Dec 21, 2019 8:08 am
- : Buy Me A Beverage
- Contact:
Re: Thrown in create_account_pwa
I have php 7.4 , pwa v 4.5.3 and the pwa is generated but when follow the continue as guest button , it opens a clear page
https://opensooq-jo.com/create_account_pwa.php
I followed all instructions on the pdf document
Please advise
https://opensooq-jo.com/create_account_pwa.php
I followed all instructions on the pdf document
Please advise
-
- Posts: 13
- Joined: Wed Jan 05, 2022 2:15 pm
- Contact:
Re: Thrown in create_account_pwa
Please check you error log or switch error reporting on and post the related error.
Please post also your Phoenix version, see the Need Help link in my signature.
Please post also your Phoenix version, see the Need Help link in my signature.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
https://docs.google.com/spreadsheets/d/ ... sp=sharing
Need Help?viewtopic.php?f=10&t=27
-
- PhoenixCart Developer
- Posts: 1212
- Joined: Sat Dec 21, 2019 8:08 am
- : Buy Me A Beverage
- Contact: