Page 1 of 1

upgrade 1.0.9.1 - cart page blank when populated

Posted: Wed Apr 17, 2024 11:05 pm
by kudos
hi
upgrading my store to latest 1.0.9.1
php is 8.0

have afew addons, guest check out is one

site apears to work ok untill you go to shopping cart, and just a blank page happens no errors just blank

shopping_cart.php

when loged in a customer or not. clicking shopping cart from any page delivers a blank page
i have php error reporting on.

i have found out that:
if the cart is empty, then the page will load and show a empty cart
but if i have any item in it, then the page will fail to load and just be blank.

what can cause this?

rob

Re: upgrading to 1.0.9.1

Posted: Wed Apr 17, 2024 11:07 pm
by kudos
sorry can an admin upgrade title of post to more meaningfull,
upgrade 1.0.9.1 - cart page blank when populated

Re: upgrading to 1.0.9.1

Posted: Wed Apr 17, 2024 11:13 pm
by kudos
ok i seem to have found this logged in a log file

Code: Select all

[18-Apr-2024 00:11:35 Europe/London] PHP Fatal error:  Uncaught Error: Call to undefined function tep_href_link() in public_html/includes/modules/content/shopping_cart/templates/tpl_cm_sc_empty_cart.php:2
Stack trace:
#0 public_html/includes/modules/content/cm_template.php(14): include()
#1 public_html/includes/modules/content/shopping_cart/cm_sc_empty_cart.php(25): include('/home/innovativ...')
#2 public_html/includes/system/versioned/1.0.8.4/template.php(106): cm_sc_empty_cart->execute()
#3 public_html/templates/default/includes/pages/shopping_cart.php(13): Template->get_content('shopping_cart')
#4 public_html/shopping_cart.php(17): require('/home/innovativ...')
#5 {main}
  thrown in public_html/includes/modules/content/shopping_cart/templates/tpl_cm_sc_empty_cart.php on line 2

Re: upgrade 1.0.9.1 - cart page blank when populated

Posted: Thu Apr 18, 2024 6:19 am
by Kofod95
cm_sc_empty_cart

This add-on calls a legacy function and needs updating. Either manually or by downloading an update if available.
It's not difficult to do it yourself - hints found in Raiwas signature.

//Daniel

Re: upgrade 1.0.9.1 - cart page blank when populated

Posted: Thu Apr 18, 2024 5:47 pm
by kudos
thanks, replaced all the empty cart related files updated them,
working as exspected now
thanks