X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   News and Announcements (https://forum.x-cart.com/forumdisplay.php?f=28)
-   -   X-Cart v4.4.3 released (https://forum.x-cart.com/showthread.php?t=59213)

seyfin 05-12-2011 10:23 PM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by cflsystems
An answer to my previous post #38 above:

A warning to everyone doing an upgrade to 4.4.3 - the upgrade script (at least 4.4.2-4.4.3 one) will set permissions on all php files modified by the script to 600 (read/write owner of the file only) which on some systems may result in non-working stores. Make sure to check and setup permissions to all php files to 644 after the upgrade

QT is there a reason for this?


I have forwarded this issue to our maintenance team, they will check if there are any issues with the upgrade pack.

seyfin 05-12-2011 11:12 PM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by cflsystems
Ok next - let's start with the bugs - 4.4.3

http://forum.x-cart.com/showpost.php?p=312270&postcount=195

Reported on March 10 and here we are 2 months later this is not fixed. I am still to check with fake order if the userid=0 is fixed or not but looking at the code seems it's not fixed. Then the second part about the Advanced Statistics / Recommended Products is carried to 4.4.3 again. Am I reading this wrong or QT just ignores some reports?

This is how the upgrade "fixes" these bugs

Code:


-            'userid'            => $userinfo['id'] ? $userinfo['id'] : 0,
-            'membershipid'      => $userinfo['membershipid'],
-            'membership'        => addslashes($userinfo['membership']),
+            'userid'            => !empty($userinfo['id']) ? $userinfo['id'] : 0,
+            'membershipid'      => @$userinfo['membershipid'],
+            'membership'        => addslashes(@$userinfo['membership']),


Again I think the 0 userid will still happen.

Code:


-                if (!empty($active_modules['Recommended_Products'])) {
+                if (
+                    !empty($active_modules['Recommended_Products'])
+                    && !empty($userinfo["id"])
+                ) {


Again - why "Recommended Products"? Are they pulled off of the stats table?

So QT - does this fixes the bugs or not? Do I need to again report in the bugtracker? Or these are not bugs?


Answering to your above questions:

1) The 0 userid is added to the "xcart_orders" table:

Code:

        // Insert into orders

        $insert_data = array (
            'userid'            => !empty($userinfo['id']) ? $userinfo['id'] : 0,


It's OK, as the 0 userid means "anonymous" customer.

However, there was a bug - the 0 userid was added to the "xcart_stats_customers_products" table. That bug has been fixed in 4.4.3 as follows:

Code:


-                if (!empty($active_modules['Recommended_Products'])) {
+                if (
+                    !empty($active_modules['Recommended_Products'])
+                    && !empty($userinfo["id"])
+                ) {


2) The "xcart_stats_customers_products" table is used by the 'Recommended_Products' module to get statistics about products purchased by customers in the past. The stats is used when the module's option 'Select recommended products randomly' is turned OFF.

cflsystems 05-13-2011 02:56 AM

Re: X-Cart v4.4.3 released
 
I was not aware the Recommended products is using the stats table to pull off products. Thanks for this explanation

Peter @ Jans-AV 05-13-2011 07:41 AM

Re: X-Cart v4.4.3 released
 
During our tests it seems v4.4.3 is not calculating payment surcharge.
We tried in 'fastlane' and in the OPC.
Does anybody has the same problem?
Bug or are we missing a setting?
In the payment methods we set the extra charge.

cflsystems 05-13-2011 07:56 AM

Re: X-Cart v4.4.3 released
 
Please report to bugtracker if you think it is a bug

BCSE 05-13-2011 08:07 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by seyfin
The module initialization routine has been changed and optimized in 4.4.3. Here are the patch which describes the main changes: DIFF_55111.patch.txt

Basically, to initialize your module in X-Cart 4.4.3, you should modify your module's configuration file, for example:

modules/Your_Addon_Module/config.php

and add the following code:



before this line:


Thanks for this information but the problem is that X-cart in 4.4.2 and prior used to load all the config.php and func.php files first in each module directory, then they loaded the init.php files in each module directory. So once you get to init.php all of the other modules config settings and functions are loaded and ready to use. Now this is not the case which is breaking a lot of mods out there.

I hope that explains what we're seeing.

Thank you,

Carrie

moonslice 05-13-2011 11:26 AM

How does patching work?
 
I've just moved from LiteCommerce ASPE to X-cart, so I don't know a lot yet.

It sounds like from the posts, that the updated files are 'patches' that do not overwrite the old files (with custom code or added text in them), but instead take that old file and merge it with the new one; adding any new changes in the update to the existing modified files?

Might anyone be able to clarify how this works?

Thanks!

cflsystems 05-13-2011 12:57 PM

Re: X-Cart v4.4.3 released
 
files are not overwritten, instead the patch files (diff) have '-' in front of lines to be removed and '+' in front of lines to be added. If original files were modified in any way prior to upgrade you may need to patch them manually

moonslice 05-13-2011 01:16 PM

Re: X-Cart v4.4.3 released
 
Thanks Steve for your help - I'm a little confused.
Quote:

Originally Posted by cflsystems
files are not overwritten, instead the patch files (diff) have '-' in front of lines to be removed and '+' in front of lines to be added. If original files were modified in any way prior to upgrade you may need to patch them manually

If all the upgrade does is add/remove some lines from the existing files, then I'm not sure why I would have to do anything to my custom existing files.

The only thing I can think of that you mean is if I had modified the specific lines of code that were being altered in the upgrade maybe? But if I merely added some additional text to a page or added a table or something that would still be fine after the upgrade?

Thanks!

gb2world 05-13-2011 04:53 PM

Re: X-Cart v4.4.3 released
 
Quote:

I'm not sure why I would have to do anything to my custom existing files

When you run the upgrade, it attempts to patch all the files based upon the diff files. If you have custom edits to a file that needs to be patched, it probably will be unable to patch it, and will report that file as "could not patch". Those files need to be patched manually. You have to review the changes that need to be applied vs. the custom changes in the file. They could be changes you made, or 3rd party mods that you applied. See point #4 of this post - it covers it well.


---

moonslice 05-13-2011 05:04 PM

Re: X-Cart v4.4.3 released
 
Thanks! That was great help.

minfinger 05-15-2011 07:39 PM

Re: X-Cart v4.4.3 released
 
At this point I wouldn't upgrade my 4.4.2 to 4.4.3. I'm going to wait until 4.4.4

swijaya0101 05-17-2011 09:38 AM

Re: X-Cart v4.4.3 released
 
How do I upgrade from 4.3.1 to 4.4.3?

minfinger 05-17-2011 10:05 AM

Re: X-Cart v4.4.3 released
 
Backup
Upgrade pack to 4.3.2
Upgrade the DB to 4.4.2
Install 4.4.2 Full
Use the number thing so you can use the original DB, don't install any new data.
Then do the upgrade from 4.4.2 to 4.4.3.

I upgraded one of my sites to 4.4.2 that way. I'm just not going to 4.4.3. I'm waiting on 4.4.4

moonslice 05-17-2011 10:29 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by minfinger
At this point I wouldn't upgrade my 4.4.2 to 4.4.3. I'm going to wait until 4.4.4

What is the reasoning for waiting until 4.4.4? I have an existing customer who needs upgrading, and also a new customer about ready to install.

Is it a big problem to go from 443 to 444?

Or is 444 coming out very soon?

Or are there problems with 443 that make it worth waiting for 444?

Thanks so much.

swijaya0101 05-17-2011 10:50 AM

Re: X-Cart v4.4.3 released
 
I can only find upgrade pack from 4.3.1 to 4.3.2 and 4.4.0 to 4.4.3

How do I upgrade from 4.3.2 to 4.4.0?

Thanks

kustomrides 05-17-2011 09:29 PM

Re: X-Cart v4.4.3 released
 
Just did the upgrade from 4.4.2 - 4.4.3

Only issue found was checksum errors on modules/Recently_Viewed/config.php and the entire folder contents of skin/common_files/modules/HTML_Editor/editors/ckeditor/ ... which is a lot of files.

To fix just upload the new files from the 4.4.3 distributive and edit them out of file.lst (and upload), rerun the upgrade.

Otherwise no problems so far except usual manual patches of my modified files. Looking forward to seeing if Amazon checkout will now work.

seyfin 05-18-2011 12:28 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by swijaya0101
I can only find upgrade pack from 4.3.1 to 4.3.2 and 4.4.0 to 4.4.3

How do I upgrade from 4.3.2 to 4.4.0?


There is a special DB upgrade script available in the File Area:

DB upgrader 4.3.2->4.4.0 >> xcart_4_3_2-xcart_4_4_0_sql.tgz

For more information please refer to:

http://help.qtmsoft.com/index.php?title=X-Cart:Upgrade_procedure#Obtaining_database_upgrade_ scripts

If you want to upgrade from 4.1.10 (the version specified in your signature)

1) Upgrade pack from 4.1.10 to 4.1.12
2) DB upgrader 4.1.12->4.4.0
3) Upgrade pack from 4.4.0 to 4.4.3

swijaya0101 05-18-2011 01:02 AM

Re: X-Cart v4.4.3 released
 
I am on 4.4.3 PRO now. How do I switch layout?

When I go to http://mydomain/install.php, there is no option for me to switch layout.

swijaya0101 05-18-2011 01:30 AM

Re: X-Cart v4.4.3 released
 
and why do i get 4.4.3 failed integrity on files under include/func folder?

seyfin 05-18-2011 02:02 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by swijaya0101
I am on 4.4.3 PRO now. How do I switch layout?

When I go to http://mydomain/install.php, there is no option for me to switch layout.


General settings >> Appearance >> Select skin to use

seyfin 05-18-2011 02:07 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by kustomrides
Just did the upgrade from 4.4.2 - 4.4.3

Only issue found was checksum errors on modules/Recently_Viewed/config.php and the entire folder contents of skin/common_files/modules/HTML_Editor/editors/ckeditor/ ... which is a lot of files.

To fix just upload the new files from the 4.4.3 distributive and edit them out of file.lst (and upload), rerun the upgrade.

Otherwise no problems so far except usual manual patches of my modified files. Looking forward to seeing if Amazon checkout will now work.


Thank you for sharing your experience. I have forwarded this information to our maintenance team, they will double-check if there is something to do with the current upgrade packs.

cflsystems 05-18-2011 03:15 AM

Re: X-Cart v4.4.3 released
 
Yes I did saw this on one upgrade. Had to re-upload the files from my distribution pack and all was ok. I think though that the problem was with the zip file and/or Win server. Not sure though

cflsystems 05-18-2011 03:18 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by cflsystems
An answer to my previous post #38 above:

A warning to everyone doing an upgrade to 4.4.3 - the upgrade script (at least 4.4.2-4.4.3 one) will set permissions on all php files modified by the script to 600 (read/write owner of the file only) which on some systems may result in non-working stores. Make sure to check and setup permissions to all php files to 644 after the upgrade

QT is there a reason for this?


Sergey what's the status on this? It does happen and it is the upgrade script. And it is hard to fix when there is no SSH access for the site in question. The upgrade should NOT change any permissions no matter what.

seyfin 05-18-2011 04:53 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by cflsystems
Sergey what's the status on this? It does happen and it is the upgrade script. And it is hard to fix when there is no SSH access for the site in question. The upgrade should NOT change any permissions no matter what.


The upgrade script changes permissions, according on to the file permissions map specified in top.inc.php file and based on the result returned by the func_get_php_execution_mode function.

We have not manage to replicate the problem on our servers. So, the problem may be related to your specific web-server environment.

Our support engineers will contact you reading the problem in your personal Helpdesk area.

Thank you.

cflsystems 05-18-2011 04:59 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by seyfin
So, the problem may be related to your specific web-server environment.


NO. I did few upgrades already for different clients, different server environments, even one on Win server and they all end up with file permissions changed to 600 for the upgraded php files. So it is not my server environment. Also - this doesn't happen with any other upgrade packs, it happens with 4.4.x upgrade pack

cflsystems 05-18-2011 05:13 AM

Re: X-Cart v4.4.3 released
 
Ok thanks Sergey for pointing me how this is done.

top.inc.php has this

Code:

$xcart_fs_default_permissions = array(
    'dir' => array(
        'nonprivileged' => 0777,
        'privileged'    => 0711
    ),
    'file' => array(
        'nonprivileged' => 0644,
        'privileged'    => 0644
    ),
    'phpfile' => array(
        'nonprivileged' => 0644,
        'privileged'    => 0600
    )
);


and func_get_php_execution_mode

Quote:

/**
* Returns PHP engine execution mode.
* Possible values:
* - privileged if a PHP process has the same permissions as owner of current file;
* - nonprivileged if a PHP process does not have privileged permissions.

*
* @access public
* @return string Execution mode (privileged or nonprivileged).
* @since 4.1.10
*/

Even though it says "since 4.1.10" never happened to me before on any upgrade and I have done hundreds of them. And it doesn't happen with any other upgrade prior to 4.4.x. I personally would change "'privileged' => 0600" to 644 in top.inc.php

carlisleglass 05-18-2011 05:26 AM

Re: X-Cart v4.4.3 released
 
Since the upgrade, has anyone had a problem with the One Page Checkout?

My problem is sometimes when you update the address, and the payment and cart content go into 'Please Wait' mode, it stays in that mode.

Also when logging in from the one page checkout screen, the screen causes a 500 error.

seyfin 05-18-2011 11:54 PM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by carlisleglass
Since the upgrade, has anyone had a problem with the One Page Checkout?

My problem is sometimes when you update the address, and the payment and cart content go into 'Please Wait' mode, it stays in that mode.

Also when logging in from the one page checkout screen, the screen causes a 500 error.


Please create a support request in your personal Helpdesk area, our support engineers will help you to sort the issue out.

carlisleglass 05-19-2011 05:38 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by seyfin
Please create a support request in your personal Helpdesk area, our support engineers will help you to sort the issue out.


I found out the problem - there is a conflict with one of my third-party modules. I have disabled the module and contacted the developer.

Thanks

swijaya0101 05-19-2011 07:22 AM

Re: X-Cart v4.4.3 released
 
I can upload the product detail images, but I am unable to view them.

The error is: The image cannot be displayed because it contains error.

kustomrides 05-19-2011 08:26 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by cflsystems
NO. I did few upgrades already for different clients, different server environments, even one on Win server and they all end up with file permissions changed to 600 for the upgraded php files. So it is not my server environment. Also - this doesn't happen with any other upgrade packs, it happens with 4.4.x upgrade pack


At least in my case I didn't see this problem. Server info in my sig.

cflsystems 05-19-2011 08:46 AM

Re: X-Cart v4.4.3 released
 
It doesn't depend on the server but on


* - privileged if a PHP process has the same permissions as owner of current file;
* - nonprivileged if a PHP process does not have privileged permissions.

graffix 05-19-2011 09:12 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by swijaya0101
I can upload the product detail images, but I am unable to view them.

The error is: The image cannot be displayed because it contains error.


I have had this problem for a while, the thumbnail wont load inside the product listing, but I can see it on the main website.

minfinger 05-20-2011 07:22 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by moonslice
What is the reasoning for waiting until 4.4.4? I have an existing customer who needs upgrading, and also a new customer about ready to install.

Is it a big problem to go from 443 to 444?

Or is 444 coming out very soon?

Or are there problems with 443 that make it worth waiting for 444?

Thanks so much.

Because I have a perfectly good running client on 4.4.2 right now.

But when I install 4.4.3 Gold and Pro for testing, I'm running into all kinds of weird issues.

For one, discounts on payments are not being applied correctly. I have CC setup with a 2% discount and Check with a $25 discount. If I choose check the CC discount is removed, but the Check discount is not applied. If I remove the payment option for Check, then that leaves CC as the only option. Well then the 2% discount is not applied at all.

I created a ticket on this issue, but it really sucks!

I'm going to go download a 4.4.2 PRO today and see if it has the same issues.

That is why I'm waiting until 4.4.4 to upgrade my 4.4.2 site. 4.4.3 is not stable as far as I'm concerned.

I also just got off the phone with who ever it is that answers at the 800 # and she said that there's no ETA on the 4.4.4 release. BOO!

alinush 05-21-2011 06:04 AM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by BCSE
Thanks for this information but the problem is that X-cart in 4.4.2 and prior used to load all the config.php and func.php files first in each module directory, then they loaded the init.php files in each module directory. So once you get to init.php all of the other modules config settings and functions are loaded and ready to use. Now this is not the case which is breaking a lot of mods out there.

I hope that explains what we're seeing.

Thank you,

Carrie


I would sure appreciate a solution for the problem Carrie is explaining above.

Even after including the func and init files in the config file, the modules are still not initializing.

This version is breaking a lot of modules!

minfinger 05-21-2011 06:32 AM

Re: X-Cart v4.4.3 released
 
Again why I'm not upgrading my 4.4.2 site until 4.4.4 comes out.

BCSE 05-22-2011 06:24 PM

Re: X-Cart v4.4.3 released
 
Quote:

Originally Posted by alinush
I would sure appreciate a solution for the problem Carrie is explaining above.

Even after including the func and init files in the config file, the modules are still not initializing.

This version is breaking a lot of modules!



I think I counted up around 20 or so modules we are having to put time in to fix because of this basic changed on a 'bug fix' release. We have a prioritized list and are also doing them as reports are sent in. If you're referring to one of our modules, just drop us an email and we'll bump it up in the list.

Thanks,

Carrie

cherie 05-22-2011 07:38 PM

Re: X-Cart v4.4.3 released
 
Instead of breaking, the upgrade could have accounted for this change with compatibility code. The same can be said for upgrading after you've applied official patches. Upgrading is needlessly complicated.

](*,)

cflsystems 05-22-2011 07:56 PM

Re: X-Cart v4.4.3 released
 
In relation to the upgrade and previous posts in here about 4.4.3 upgrade script changing permissions QT admits it's a bug. Their response
Quote:

We're analyzing the code of the patch/upgrade procedure, and it seems that there is some issue in it which behaviour differs from the expected. We will make proper research and inform you about the results when they are ready


All times are GMT -8. The time now is 11:12 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.