Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Attention users of X-Cart vv.4.0.x - 4.7.1

 
Reply
   X-Cart forums > News and Announcements
 
Thread Tools
  #61  
Old 05-07-2015, 02:38 AM
 
herber@wirehub.nl herber@wirehub.nl is offline
 

eXpert
  
Join Date: Nov 2002
Posts: 305
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Quote:
Originally Posted by aim
Thanks, the bug seems to be the following:

The payment processor Cardgate (cardgate.com) has payment methods for X-Cart which we've asked them to update for 4.6, which they did. However, they do not have the following files:

Quote:
customer/main/payment_cgp_mistercash.tpl
customer/main/payment_cgp_directebanking.tpl
customer/main/payment_cgp_giropay.tpl
These errors always existed since Cardgate did not create these files for their payment methods, but now only with the new Smart Engine does the entire site stop on this error with your patch:
Quote:
[07-May-2015 11:35:34 UTC] PHP Fatal error: Uncaught --> Smarty: Unable to load template file 'customer/main/payment_cgp_giropay.tpl' in 'modules/One_Page_Checkout/payment_methods.tpl'
Backtrace:Array
(
[0] => Array
(
[function] => __toString
[class] => SmartyException
[type] => ->
[args] => Array
(
)

)

)
<--
thrown in /var/www/include/lib/smarty3/sysplugins/smarty_internal_templatebase.php on line 129

The payment methods work just fine without these files, but now smarty stops since the files do not exist. Replacing the template files with customer/main/payment_offline.tpl in the database does the trick & fixes it.

In the end, it seems to be a problem with these payment methods & this is not a bug in the update.
__________________
X-Cart 4.7.12
Reply With Quote

The following user thanks herber@wirehub.nl for this useful post:
aim (05-07-2015)
  #62  
Old 05-08-2015, 11:07 AM
 
deepblue_tiano deepblue_tiano is offline
 

Advanced Member
  
Join Date: Nov 2010
Posts: 50
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

One of my websites I am working on are using X-CART 4.2.1. I don't see any patch available on that version. What does it mean? The patch available on 4.2.3 applies to all versions on branch 4.2.X?
__________________
christian
Reply With Quote
  #63  
Old 05-08-2015, 12:27 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Yes. They release patches like this for the last version of every branch only, unless there is significant difference in the branch versions.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
deepblue_tiano (05-08-2015)
  #64  
Old 05-08-2015, 02:48 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Quote:
Originally Posted by cflsystems
Yes. They release patches like this for the last version of every branch only, unless there is significant difference in the branch versions.

Steve is absolutely correct as usual, but keep in mind that these situations require you grasp what the patch is trying to accomplish, and then manually apply this to your files. Don't just replace the files.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #65  
Old 05-08-2015, 02:55 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

I have not encountered a store yet that cannot be upgraded. Upgrade to the latest version in your branch because you should anyway then apply the patches for that version.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote

The following user thanks cherie for this useful post:
totaltec (05-08-2015)
  #66  
Old 05-08-2015, 06:54 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Quote:
Originally Posted by deepblue_tiano
One of my websites I am working on are using X-CART 4.2.1. I don't see any patch available on that version. What does it mean? The patch available on 4.2.3 applies to all versions on branch 4.2.X?


With care it will work, but you have to understand the code. If you don't know how to do it I'd recommend you get some help from X-cart or one of us 3rd party developers.

I manually patched a 4.5.4 site today that only has a 4.5.5 patch available and you had to understand the code to patch that one. It was easy to 'guess' wrong as the code was pretty different for 2 of the files.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #67  
Old 05-09-2015, 03:40 AM
 
gblair gblair is offline
 

Advanced Member
  
Join Date: Jul 2008
Posts: 69
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

I'm patching 4.1.10 with the 4.1.12 (no need to judge, it works fine

Patching the files thought that all but on file was already updated. Which was odd, since they aren't. So I updated manually. All very easy except for one file.

The only file that didn't think it was updated was func.core.php
Which it said "could not patch" so I try to do that manually. We have had some work done, so I'm not amazingly surprised it can't do it automatically.

The first part of the change file is:

@header("Refresh: 0; URL=".$location);
}

- if ($show_note)
- echo "<br /><br />".func_get_langvar_by_name("txt_header_location_n ote", array("time" => 2, "location" => $location), false, true, true);
- echo "<meta http-equiv=\"Refresh\" content=\"0;URL=$location\" />";

however if ($show_note) doesn't exist in the file at all.

I could just insert the + lines into the correct place, replacing the echo lines. But I was a little concerned about the difference.

Any advice?


Also further down in the file I need to look for:

$url = preg_replace('/[\x00-\x1f].*$/sm', '', $url);

and insert:

+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv="Refresh" content="<?php echo $time; ?>;URL=<?php echo str_replace(array('"', "'", '<', '>'), array('&quot;',''', '&lt;', '&gt;'), $url); ?>" />
+</head>
+<body>
+<br /><br />
+<?php
+ echo func_get_langvar_by_name('txt_header_location_note ', array('time' => $time, 'location' => str_replace(array('"', "'", '<', '>'), array('&quot;',''', '&lt;', '&gt;'), ($url))), false, true);
+?>
+</body>
+</html>
+<?php



Which looks really odd to my untrained eye.

Any and all advice as to what that last part is doing, and confirmation that it is correct is most welcome.
__________________
paperwhimsy.com
Gale Blair
4.1.10
Reply With Quote
  #68  
Old 05-09-2015, 07:19 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

You will ignore the

- if ($show_note)

part and just remove the other 2 lines which more or less should be there.

The rest should be as it says in the patch
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
gblair (05-09-2015)
  #69  
Old 05-09-2015, 07:54 AM
 
gblair gblair is offline
 

Advanced Member
  
Join Date: Jul 2008
Posts: 69
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Thanks, I was standing at the edge and just needed a friendly push.

All seems to be working just fine.
__________________
paperwhimsy.com
Gale Blair
4.1.10
Reply With Quote
  #70  
Old 05-11-2015, 04:39 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,091
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

Note you may break shipping in the 4.1.x sites if you add this line in the func.user.php file:

Code:
$user = abs(intval($user));


Thanks,

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote

The following 2 users thank BCSE for this useful post:
aim (05-11-2015), totaltec (05-11-2015)
Reply
   X-Cart forums > News and Announcements



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:40 PM.

   

 
X-Cart forums © 2001-2020